/* ------------------------- */
/*        BASE GLOBAL        */
/* ------------------------- */

body {
    background-color: #f1f4ff;
    font-family: 'Segoe UI', sans-serif;
    padding-top: 100px;
}

.center {
    text-align: center;
    align-items: center;
}

.separador {
    height: 10px;
    background-color: #f5f5f5;
    margin: 10px;
}

.parrafos,
.parrafosg {
    text-align: justify;
    font-family: Arial;
}

.parrafos {
    margin-top: 20px;
}

.parrafosg {
    font-size: 11px;
}

.negrita {
    font-weight: bold;
    font-size: 45px;
}

.colorazulfuerte {
    color: #0060c7;
    padding: 20px;
}


.imginiciodesc {

    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;


}

.descripcion1 {
    margin-top: 50px;
}


.info-card {
    background: white;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}


/* Cuadro qaci */
.cuadro {
    background-image: url('/img/valoress.png');
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 1 / 1;
    /* Hace el div cuadrado */
    margin: auto;
}

.item {
    padding: 10px;
    box-sizing: border-box;
}

.imagen-arriba-izquierda {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.parrafo-arriba-derecha {
    font-size: 22px;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: justify;
}

.parrafo-abajo-izquierda {
    margin-top: 15%;
    font-size: 22px;
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: justify;
}

.imagen-abajo-derecha {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

/* Empresas certificadas */

/* Contenedor general horizontal */
.divmapa-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 40px;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0 auto 50px;
    box-sizing: border-box;
}

/* Columna izquierda */
.certificados-left {
    padding-top: 100px;
    flex: 1;
    min-width: 500px;
    max-width: 500px;
    min-height: 500px;
    background-image: url('/img/mapa.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centra el contenido horizontalmente */
    gap: 20px;
}

/* Centramos el título */
.certificados-left .display-4 {
    text-align: center;
    font-size: 2.5rem;
    /* Ajusta si quieres */
    margin: 0;
    font-weight: bold;
}

/* Formulario de búsqueda */
.form-certificado {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}

/* Label, input y botón en una sola fila */
.form-certificado label.form-label {
    font-size: 16px;
    margin: 0;
    white-space: nowrap;
    /* Evita que el texto salte de línea */
}

.form-certificado input[type="text"] {
    flex: none;
    width: 200px;
    padding: 8px 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-certificado button {
    flex: none;
    padding: 8px 16px;
    font-size: 1rem;
}


/* Columna derecha (texto y mapa apilados) */
.mapa-right {
    padding-top: 30px;
    align-items: center;
    flex: 1;
    min-width: 600px;
    max-width: 600px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Texto descriptivo */
.txtmapa {
    max-width: 100%;
    text-align: justify;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 18px;
    margin: 0 auto;
}

/* Contenedor del mapa con ratio 16:9 */
.map-responsive {
    width: 100%;
    max-width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.map-responsive img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 550px;
    height: 100%;
    max-height: 450px;
    border: 0;
}


/* ------------------------- */
/*          LOGOS            */
/* ------------------------- */

.logop {
    height: 70px;
    margin-right: 30px;
}

.imgb {
    height: 30px;
    margin-right: 30px;
}

.logob {
    text-align: center;
}

.inge-img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}


/* ------------------------- */
/*      CLIENTES SECCIÓN     */
/* ------------------------- */

.clientes-section {
    background-color: #f8f9fa;
    padding: 50px 20px 30px;
    text-align: center;
    margin: 50px;
}

.clientes-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1c1c1c;
    border-bottom: 3px solid #007bff;
    display: inline-block;
    padding-bottom: 8px;
}


/* ------------------------- */
/*     CARRUSELES (Flickity) */
/* ------------------------- */

.carousel-container,
.carousel-container2 {
    width: 100%;
    max-width: 1300px;
    margin: 30px auto;
    align-items: center;
}

.carousel-container {
    height: 120px;
}

.carousel-container2 {
    height: auto;
}

.carousel-cell,
.carousel-cell2 {
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 150px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    filter: blur(1px);
    opacity: 0.6;
}

.carousel-cell2 {
    margin-right: 300px;
}

.carousel-cell img,
.carousel-cell2 img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
}

.carousel-cell2 img {
    max-height: 350px;
}

.carousel-cell.is-selected,
.carousel-cell2.is-selected {
    filter: none;
    opacity: 1;
}


/* ------------------------- */
/*        ACORDEÓN           */
/* ------------------------- */

.col-politica {
    font-size: 14px;
}

.col-politica .accordion-button {
    padding: 0.5rem 1rem;
    font-size: 14px;
}

.col-politica .accordion-body {
    max-height: 200px;
    overflow-y: auto;
    font-size: 13px;
    padding: 10px;
    line-height: 1.4;
}


/* ------------------------- */
/*     QUIÉNES SOMOS         */
/* ------------------------- */

.card-img-top,
.card .card-img-top {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.divvalores {
    position: relative;
    width: 1290px;
    height: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

.divvalores::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/fondovalores.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    /* Ajusta este valor según cuán opaco la quieres */
    z-index: -1;
    /* Para que quede detrás del contenido */
}


.imgvalores {
    width: 350px;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* Contenedores para textos a la izquierda y derecha */
.texts-left,
.texts-right {
    position: absolute;
    top: 50%;
    transform: translateY(-85%);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 350px;
    height: 350px;
    /* altura para distribuir los 3 textos verticalmente */
    z-index: 2;
}

.texts-left {
    text-align: left;
    left: 350px;
    /* posición inicial fuera del contenedor (ajusta al gusto) */
    align-items: flex-end;
}

.texts-right {
    text-align: right;
    right: 350px;
    align-items: flex-start;
}

/* Cada texto con animación */
.text {
    padding: 5px 10px;
    margin: 5px 0;
    opacity: 0;
}

/* Animaciones para izquierda - se moverán horizontalmente hacia la derecha */
.texts-left .text {
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

/* Animaciones para derecha - se moverán hacia la izquierda */
.texts-right .text {
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

/* Animaciones individuales con delays para escalonar la entrada */
.t1 {
    animation-name: leftIn;
    animation-duration: 1.2s;
    animation-delay: 0.2s;
}

.t2 {
    animation-name: leftIn;
    animation-duration: 1.2s;
    animation-delay: 0.6s;
}

.t3 {
    animation-name: leftIn;
    animation-duration: 1.2s;
    animation-delay: 1s;
}

.t4 {
    animation-name: rightIn;
    animation-duration: 1.2s;
    animation-delay: 0.2s;
}

.t5 {
    animation-name: rightIn;
    animation-duration: 1.2s;
    animation-delay: 0.6s;
}

.t6 {
    animation-name: rightIn;
    animation-duration: 1.2s;
    animation-delay: 1s;
}

/* Keyframes para izquierda */
@keyframes leftIn {
    0% {
        transform: translateX(-750px);
        opacity: 0;
        filter: blur(4px);
    }

    100% {
        transform: translateX(-250px);
        opacity: 1;
        filter: blur(0);
    }
}

/* Keyframes para derecha */
@keyframes rightIn {
    0% {
        transform: translateX(750px);
        opacity: 0;
        filter: blur(4px);
    }

    100% {
        transform: translateX(250px);
        opacity: 1;
        filter: blur(0);
    }
}

.divcalidad {
    width: 100%;
    padding: 2rem 1rem;
    margin: 50px auto;
}

.imgcalidad {
    width: 100%;
    max-width: 750px;
    height: auto;
}

.txtcalidad {
    width: 450px;
    margin: 20px;
}

.h5calidad {
    margin-left: 110px;
}

.divcimparcial {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    margin: 50px;
    margin-bottom: 150px;
}

.imgimparcial {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.txtimparcial {
    width: 100%;
    margin: 20px auto 0;
    text-align: justify;
}


/* ------------------------- */
/*        SECCIÓN DINÁMICA  */
/* ------------------------- */

/* Tarjetas animadas - Compatibles con tu sistema */
.card.card-dinamica {
    background: #ffffff;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card.card-dinamica:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

/* Gradientes para títulos */
.card.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff, #6610f2);
}

.card.bg-gradient-success {
    background: linear-gradient(135deg, #28a745, #218838);
}

.card.bg-gradient-primary,
.card.bg-gradient-success {
    color: #ffffff;
}

/* Animación de entrada suave */
.animated-section .animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease forwards;
}

.animated-section .animate-on-scroll:nth-child(2) {
    animation-delay: 0.2s;
}

.animated-section .animate-on-scroll:nth-child(3) {
    animation-delay: 0.4s;
}

/* Bootstrap iconos más destacados */
.card-title i {
    font-size: 1.8rem;
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {

    body {
        padding-top: 70px;
    }

    .card.card-dinamica {
        margin-bottom: 20px;
    }

    .card.card-dinamica .card-title {
        font-size: 1rem;
    }

    .imginiciodesc {
        max-width: 200px;
    }

    .parrafos {
        font-size: 14px;
    }

    .txtcalidad {
        width: 100%;
        margin: 0 auto;
        text-align: justify;
    }

    .h5calidad {
        margin-left: 0;
        text-align: center;
    }

    .imgcalidad {
        max-width: 100%;
    }

    .divimparcial {
        padding: 1rem;
    }

    .imgimparcial {
        max-width: 300px;
        margin-bottom: 20px;
    }

    .txtimparcial {
        font-size: 14px;
    }

    .divimparcial h5 {
        text-align: center;
        font-size: 1.2rem;
    }

    /* cuadro inicio */
    .cuadro {
        display: flex;
        flex-direction: column;
        aspect-ratio: unset;
        background-size: cover;
        padding: 10px;
    }

    .item {
        width: 100%;
        padding: 10px 5px;
    }

    .imagen-arriba-izquierda,
    .imagen-abajo-derecha {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .parrafo-arriba-derecha,
    .parrafo-abajo-izquierda {
        font-size: 16px;
        justify-content: center;
        align-items: center;
        text-align: justify;
        margin-top: 0;
    }

    /* Carta */
    .card-body h5 {
        font-size: 1.1rem;
    }

    .list-group-item {
        font-size: 0.9rem;
    }

    .responsive-pdf-container {
        padding-top: 160%;
    }
}


/* ------------------------- */
/*          ISO              */
/* ------------------------- */

.imgiso {
    margin-top: 10px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 10px;
}

.catalogod {
    background-color: #ffffff;
}

.colorisob {
    background-color: #f3f0b7;
    margin: 20px;
}


/* ------------------------- */
/*        ISO HEADER         */
/* ------------------------- */

.iso-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.iso-header img {
    max-width: 400px;
    animation: fadeInUp 1s ease-in-out;
}

.iso-header-text {
    max-width: 600px;
    margin-left: 30px;
    animation: fadeInRight 1s ease-in-out;
}

.iso-header-text h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.iso-header-text p {
    font-size: 1.1rem;
    color: #333;
}


/* Colores personalizados */

.colordegradadorojo {
    background: linear-gradient(135deg, #ffdada, #ff5a5a);
}

.colordegradadoazul {
    background: linear-gradient(135deg, #f5faff, #b9d6ff);
}

.colordegradadverde {
    background: linear-gradient(135deg, #f6fff9, #e1ffe7);
}

.colorazul {
    color: #004a99;
}

.colorverde {
    color: #009930;
}

.colorrojo {
    color: #990000;
}

.colorgrisfuerte {
    color: #464646;
}

.colornegro {
    color: #000000;
}


/* ------------------------- */
/*    BENEFICIOS ISOS    */
/* ------------------------- */

.benefits-section {
    padding: 50px 20px;
    text-align: center;
    background: #fff;
}

.benefits-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.benefits-grid {
    display: block;
    gap: 30px;
}

.benefit-card {
    background: #f9fbfd;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon,
.benefit-icon2,
.benefit-icon3 {
    width: 50px;
    height: 50px;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.benefit-icon {
    background: #004a99;
}

.benefit-icon2 {
    background: #009930;
}

.benefit-icon3 {
    background: #990000;
}

.benefit-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.benefit-text {
    font-size: 0.95rem;
    color: #555;
}


/* ------------------------- */
/*         FORMULARIO        */
/* ------------------------- */

.formulario {
    padding-top: 50px;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.form-wrapper {
    width: 100%;
    max-width: 850px;
    padding: 0 15px;
}


/* ------------------------- */
/*         NAVBAR            */
/* ------------------------- */

.navbar {
    background-color: rgb(232, 241, 255);
    border-radius: 12px;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 8px 15px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background-color: #0d6efd;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link:hover {
    color: #0d6efd;
    transform: scale(1.05);
}

.navbar-nav .nav-link.active {
    color: #0d6efd;
    font-weight: 700;
}

/* Dropdown en hover */
.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.navbar-nav .dropdown-menu {
    transition: all 0.2s ease-in-out;
}


/* ------------------------- */
/*       PROCESO AP          */
/* ------------------------- */

.proceso-header {
    background: linear-gradient(135deg, #f5faff, #e6efff);
    color: #004a99;
}

.pasos-section {
    background-color: #ffffff;
}

.paso-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.paso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
}

.paso-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    animation: fadeIn 1s ease-in-out;
}

.imgproceso {
    width: 600px;
    height: auto;
}

.imgproceso2 {
    width: 450px;
    height: auto;
    margin: 25px;
}

.imgproceso3 {
    width: 250px;
    height: auto;
    margin-left: 50px;
}

.espacioarriba {
    margin-top: 35px;
}


/* ------------------------- */
/*         PRELOADER         */
/* ------------------------- */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ddd;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


/* ------------------------- */
/*        ANIMACIONES        */
/* ------------------------- */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}




/* ------------------------- */
/*    RESPONSIVE (Media)     */
/* ------------------------- */

@media (max-width: 991px) {
    .navbar-nav {
        background-color: white;
        padding: 10px 0;
        border-radius: 10px;
        box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
    }

    .navbar-nav .nav-item {
        margin-bottom: 5px;
    }

    .imginiciodesc {
        width: 80%;
    }

    .divvalores {
        width: 100%;
        height: auto;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        position: relative;
    }

    .texts-left,
    .texts-right {
        position: relative;
        top: auto;
        transform: none;
        width: 100%;
        height: auto;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 20px;
    }

    .texts-left {
        left: auto;
    }

    .texts-right {
        right: auto;
    }

    .text {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .imgvalores {
        width: 80%;
        max-width: 250px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .logop {
        height: 50px;
        margin-right: 10px;
    }

    .clientes-title {
        font-size: 1.5rem;
        border-bottom-width: 2px;
    }

    .carousel-container {
        height: auto;
    }

    .carousel-cell {
        width: 40%;
        margin-right: 8px;
    }

    .carousel-cell img {
        max-height: 60px;
    }

    .imgb {
        height: 24px;
        margin-right: 15px;
    }

    .container,
    .clientes-section,
    footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .parrafos,
    .parrafosg {
        font-size: 12px;
    }

    .imginiciodesc {
        width: 70%;
    }

    /* Mapa */
    .divmapa-container {
        flex-direction: column;
        padding: 20px;
    }

    .certificados-left,
    .mapa-right {
        max-width: 100%;
        min-width: auto;
    }

    .map-responsive iframe {
        max-width: 100%;
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .col-politica .accordion-body {
        max-height: 150px;
        font-size: 12px;
    }

    .card-img-top {
        max-height: 150px;
    }

    .imgiso {
        max-height: 100px;
    }

    .card .card-body h5 {
        font-size: 16px;
    }

    .card .card-body p,
    .card .btn {
        font-size: 14px;
    }

    .card .btn {
        padding: 6px 12px;
    }

    h2 {
        font-size: 1.25rem;
    }

    .imgproceso,
    .imgproceso2 {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }

    .imginiciodesc {
        max-width: 150px;
    }

    .parrafos {
        font-size: 13px;
    }

    .text h5 {
        font-size: 16px;
    }

    .text p {
        font-size: 13px;
    }

    .divvalores {
        padding: 10px;
    }

    .txtmapa {
        font-size: 15px;
    }

    .form-certificado {
        flex-direction: column;
        align-items: center;
    }

    .form-certificado input[type="text"],
    .form-certificado button {
        width: 100%;
        max-width: 300px;
    }

}

@media (max-width: 480px) {
    .carousel-cell {
        width: 60%;
    }

    .carousel-cell img {
        max-height: 50px;
    }

    .clientes-title {
        font-size: 1.3rem;
    }

    footer h1 {
        font-size: 1.1rem;
    }

    .imginiciodesc {
        width: 40%;
    }

    .txtimparcial {
        font-size: 13px;
    }

    .imgimparcial {
        max-width: 250px;
    }
}


/*Sesion*/
.imgsesion {
    width: 550px;
}

.cascading-right {
    margin-right: -50px;
}

/* Menu */
.imgcardmenu {
    width: 100px;
}

.cardml {
    margin: 30px;
    padding-top: 40px;
    align-items: center;
    width: 250px;
    height: 250px;
    text-align: center;
}

.btnml {
    margin-top: 20px;
}

.menusistema {
    align-items: center;
    text-align: center;
    width: 100%;
}

.regresasistema {
    max-width: 80px;
}

.derechasistema {
    float: right;
}

/* Container PDF responsivo */
.responsive-pdf-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    padding-top: 140%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.responsive-pdf-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}



@media (max-width: 991.98px) {
    .cascading-right {
        margin-right: 0;
    }
}


/* Novedades */
.hero {
    background: url('/img/cambiofondo.png') center no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1,
.hero p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* imágenes en cards */
.imgnovedades {
    max-height: 200px;
    object-fit: cover;
    width: 100%;
}



/* Texto justificado */
.pno {
    text-align: justify;
}


.piml,
.pmid {
    margin: 30px;
    padding-left: 50px;
    padding-right: 50px;
}


@media (max-width: 768px) {
    .hero {
        height: 60vh;
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .piml,
    .pmid {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card img {
        max-height: 150px;
    }
}


/* Pasos para certificacion */
.espaciadopaso {
    margin: 30px;
}

/* Hero */
.cert-hero {
    background: url('/img/fondopasoscertificacion2.png') center/cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-hero h1,
.cert-hero h3,
.cert-hero p {
    text-shadow: 5px 5px 10px rgb(0, 0, 0);
    color: #ffffff;

}

/* Timeline */
.cert-timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 30px;
    border-left: 3px solid #198754;
}

.cert-step {
    margin-bottom: 3rem;
    position: relative;
}

.cert-step::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid #198754;
    border-radius: 50%;
    z-index: 1;
}

.cert-content {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Imágenes */
.cert-img {
    max-width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsividad */
@media (max-width: 768px) {
    .cert-hero {
        height: 40vh;
        padding: 1rem;
    }

    .cert-hero h1 {
        font-size: 1.6rem;
    }

    .cert-hero p {
        font-size: 1rem;
    }

    .cert-timeline {
        padding-left: 20px;
    }

    .cert-step::before {
        left: -11px;
        width: 16px;
        height: 16px;
    }

    .cert-img {
        max-height: 120px;
        margin-top: 1rem;
    }
}

/* Hero */
.sectores-hero {
    background: linear-gradient(rgba(0, 0, 50, 0.6), rgba(0, 0, 50, 0.6)), url('/img/sectores.png') center/cover no-repeat;
    height: 50vh;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
}

/* Tarjetas */
.sector-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.sector-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Badge IAF */
.iaf-badge {
    display: inline-block;
    background: #0d6efd;
    color: #fff;
    font-weight: bold;
    border-radius: 30px;
    padding: 5px 15px;
    font-size: 0.9rem;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}




/*  Formularios */
.sectionform1 {
    background: linear-gradient(150deg, #a19cff, #0400ff);
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.form-container1 {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 100%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-container1:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.form-container1 h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c2c2c;
    font-weight: 600;
    position: relative;
}

.form-container1 h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #6C63FF;
    margin: 0.5rem auto 1.5rem auto;
    border-radius: 2px;
}

.form-container1 p {
    color: #666;
    margin-bottom: 2rem;
}

.form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.btn-primary {
    background: #6C63FF;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-weight: 500;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #5848e5;
}

/* Animaciones suaves */
.fade-out {
    animation: fadeOut 0.4s forwards;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.98);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.oculto {
    display: none;
}

/* Certificados */
/* Generar */
.form-container {
    max-height: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.form-card {
    background-color: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
}


/* ==== USO DE MARCA ==== */
#divusomarca {
    background-color: #f9fafc;
    border-radius: 10px;
    padding: 2rem;
}

#titulo-usomarca {
    color: #004080;
    border-bottom: 2px solid #004080;
    display: inline-block;
    padding-bottom: 5px;
}

.texto-usomarca {
    text-align: justify;
}

.nota-usomarca {
    background-color: #f2f7ff;
    border-left: 5px solid #004080;
}

.lista-usomarca {
    margin-left: 2rem;
    list-style-type: disc;
}
