﻿:root {
    --ink: #16282A;
    /*--sand: #F5EFDF;*/
    --sand-dark: #EAE0C7;
    --ocean: #0A3D42;
    --ocean-light: #14545C;
    --aqua: #2FBFA5;
    --coral: #F2793A;
    --gold: #C99A3D;
    --gold-dark: #8A6A24;
    --radius: 14px;
}


/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
   /* font-family: sans-serif;*/
    background: var(--sand);
    color: var(--ink);
    line-height: 1.55;
    overflow-x: hidden;
}


h1,
h2,
h3 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: 0;
    color: var(--ocean);
}


a {
    color: inherit;
}


img {
    max-width: 100%;
    display: block;
}


button,
input,
textarea,
select {
    font-family: inherit;
}


:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 2px;
}


/* =========================================
   TIPOGRAFÍA
========================================= */

.signature {
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
    color: var(--ocean-light);
}


.section-eyebrow {
    font-family: 'Caveat', cursive;
    color: var(--coral);
    font-size: 1.3rem;
    margin-bottom: 2px;
    display: block;
}


.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    margin-bottom: 36px;
}


/* =========================================
   HEADER / NAV
========================================= */

header {
    background: var(--ocean);
    position: sticky;
    top: 0;
    z-index: 50;
}


.nav-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}


.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}


    .brand img {
        height: 38px;
        width: auto;
    }


    .brand span {
        font-family: 'Anton', sans-serif;
        color: var(--sand);
        font-size: 1.1rem;
    }


.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}


    .nav-links a {
        color: var(--sand);
        text-decoration: none;
        font-size: .95rem;
        font-weight: 500;
        padding: 6px 2px;
        border-bottom: 2px solid transparent;
    }


        .nav-links a:hover {
            border-color: var(--aqua);
        }


        .nav-links a[aria-current="page"] {
            border-color: var(--coral);
            color: #fff;
        }


.lang-toggle {
    display: flex;
    gap: 6px;
}


.lang-btn {
    background: transparent;
    border: 1px solid var(--aqua);
    color: var(--sand);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .8rem;
    cursor: pointer;
}


    .lang-btn[aria-pressed="true"] {
        background: var(--aqua);
        color: var(--ocean);
        font-weight: 700;
    }


.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}


    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--sand);
        margin: 5px 0;
    }


/* =========================================
   HERO
========================================= */

.hero {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px 40px;
    display: flex;
    align-items: center;
    gap: 48px;
}


.hero-text {
    flex: 1;
    min-width: 0;
}


    .hero-text h1 {
        font-size: clamp(2.4rem, 5vw, 3.6rem);
        line-height: 1.1;
    }


    .hero-text p {
        max-width: 46ch;
        margin-top: 14px;
        font-size: 1.05rem;
    }


.hero-seal-wrap {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}


.hero-icon {
    width: 260px;
    height: 260px;
    max-width: 100%;
    object-fit: contain;
}


/* =========================================
   SELLOS
========================================= */

.seal {
    position: relative;
    border-radius: 50%;
    background: radial-gradient( circle at 32% 30%, #F0D7A0, var(--gold) 70% );
    border: 3px dashed var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


    .seal svg {
        stroke: var(--ocean);
    }


    .seal::before,
    .seal::after {
        content: "";
        position: absolute;
        top: 88%;
        width: 22%;
        height: 34%;
        background: var(--coral);
    }


    .seal::before {
        left: 30%;
        transform: skewX(-12deg) translateY(-4px);
    }


    .seal::after {
        right: 30%;
        transform: skewX(12deg) translateY(-4px);
    }


    .seal.big {
        width: 170px;
        height: 170px;
    }


        .seal.big svg {
            width: 74px;
            height: 74px;
        }


    .seal.small {
        width: 72px;
        height: 72px;
    }


        .seal.small svg {
            width: 32px;
            height: 32px;
        }


/* =========================================
   WAVE
========================================= */

.wave-divider {
    display: block;
    width: 100%;
    height: 60px;
    color: var(--ocean);
}


    .wave-divider path {
        fill: currentColor;
    }


/* =========================================
   SOL DECORATIVO
========================================= */

.contenedor-sol {
    display: flex;
    justify-content: center;
    margin-bottom: 10px; /* separa el sol del h2 */
}

.sol {
    width: 50px;
    height: 50px;
    animation: girar 4s linear infinite;
    transform-origin: center center;
}

@keyframes girar {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* =========================================
   TRUST
========================================= */

.trust {
    background: var(--ocean);
    color: var(--sand);
}


.trust-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 26px 24px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}


.trust p {
    margin: 0;
    max-width: 60ch;
    font-size: .98rem;
}


/* =========================================
   MAIN
========================================= */

main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px;
}


/* =========================================
   INSTRUCTORES
========================================= */

.instructor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    width: 100%;
}


.instructor-card {
    min-width: 0;
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 6px 24px rgba(10, 61, 66, .08);
}


.instructor-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    min-width: 0;
}


    .instructor-head img {
        width: 64px;
        height: 64px;
        min-width: 64px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid var(--aqua);
    }


    .instructor-head > div {
        min-width: 0;
    }


    .instructor-head h3 {
        font-size: 1.25rem;
        overflow-wrap: anywhere;
    }


    .instructor-head a {
        font-size: .85rem;
        color: var(--ocean-light);
        text-decoration: none;
        font-weight: 600;
    }


        .instructor-head a:hover {
            text-decoration: underline;
        }


/* =========================================
   CERTIFICADOS
========================================= */

.cert-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.cert-item {
    background: var(--sand);
    border-radius: 10px;
    overflow: hidden;
    min-width: 0;
}


.cert-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
    min-width: 0;
}


.cert-info {
    flex: 1;
    min-width: 0;
}


    .cert-info .cert-name {
        font-weight: 600;
        display: block;
        color: var(--ocean);
        overflow-wrap: anywhere;
    }


    .cert-info .cert-meta {
        font-size: .85rem;
        color: var(--ocean-light);
    }


.chevron {
    flex-shrink: 0;
    stroke: var(--ocean-light);
    transition: transform .2s ease;
}


.cert-toggle[aria-expanded="true"]
.chevron {
    transform: rotate(180deg);
}


.cert-panel-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .25s ease;
}


    .cert-panel-wrap.open {
        grid-template-rows: 1fr;
    }


.cert-panel-inner {
    overflow: hidden;
}


.cert-panel {
    padding: 0 16px 16px 98px;
    display: grid;
    gap: 10px;
    min-width: 0;
}


.cert-desc {
    margin: 0;
    font-size: .92rem;
    overflow-wrap: anywhere;
}


.cert-details {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 0;
}


    .cert-details div {
        display: flex;
        flex-direction: column;
    }


    .cert-details dt {
        margin: 0;
        font-size: .72rem;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--ocean-light);
    }


    .cert-details dd {
        margin: 0;
        font-weight: 600;
        color: var(--ocean);
    }


.cert-link {
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    background: var(--coral);
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    justify-self: start;
}


    .cert-link:hover {
        background: var(--ocean);
    }


/* =========================================
   IMÁGENES DE CERTIFICADOS
========================================= */

.contenedor-img {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
}


.miniatura {
    width: 180px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}


    .miniatura:hover {
        transform: scale(1.03);
        opacity: .9;
    }


/* =========================================
   MODAL
========================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .85);
    align-items: center;
    justify-content: center;
    padding: 20px;
}


.modal-contenido {
    display: block;
    width: auto;
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}


.cerrar {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 42px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
}


/* =========================================
   CTA
========================================= */

.cta {
    background: var(--aqua);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 56px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}


    .cta h2 {
        color: var(--ocean);
        font-size: 1.6rem;
    }


.cta-btn {
    background: #fff;
    color: var(--ocean);
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}


    .cta-btn:hover {
        background: var(--coral);
        color: #fff;
        transform: translateY(-2px);
    }

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .hero {
        gap: 30px;
    }

    .hero-icon {
        width: 210px;
        height: 210px;
    }

    .instructor-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 768px) {

    /* GENERAL */

    body {
        width: 100%;
        overflow-x: hidden;
    }


    /* HERO */

    .hero {
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 40px 20px 30px;
        gap: 25px;
    }


    .hero-text {
        width: 100%;
    }


        .hero-text h1 {
            font-size: 2.35rem;
            line-height: 1.1;
        }


        .hero-text p {
            width: 100%;
            max-width: none;
            font-size: 1rem;
        }


    .hero-seal-wrap {
        width: 100%;
    }


    .hero-icon {
        width: 180px;
        height: 180px;
    }


    /* MAIN */

    main {
        width: 100%;
        padding: 40px 16px;
    }


    .section-title {
        font-size: 1.8rem;
        margin-bottom: 28px;
    }


    /* GRID */

    .instructor-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 20px;
    }


    /* CARD */

    .instructor-card {
        width: 100%;
        padding: 20px;
        border-radius: 12px;
    }


    /* INSTRUCTOR */

    .instructor-head {
        gap: 12px;
        margin-bottom: 18px;
    }


        .instructor-head img {
            width: 56px;
            height: 56px;
            min-width: 56px;
        }


        .instructor-head h3 {
            font-size: 1.1rem;
        }


    /* CERTIFICATE BUTTON */

    .cert-toggle {
        padding: 12px 10px;
        gap: 10px;
    }


    .seal.small {
        width: 58px;
        height: 58px;
        min-width: 58px;
    }


        .seal.small svg {
            width: 26px;
            height: 26px;
        }


    .cert-info .cert-name {
        font-size: .93rem;
    }


    .cert-info .cert-meta {
        font-size: .78rem;
    }


    /* CERTIFICATE CONTENT */

    .cert-panel {
        padding: 0 12px 16px 12px;
    }


    .cert-desc {
        font-size: .88rem;
        line-height: 1.5;
    }


    .cert-details {
        gap: 14px;
    }


    .cert-link {
        font-size: .8rem;
    }


    /* CERTIFICATE IMAGE */

    .contenedor-img {
        width: 100%;
        justify-content: center;
    }


    .miniatura {
        width: 100%;
        max-width: 280px;
        height: auto;
    }


    /* SUN */

    .contenedor-sol {
        margin: 25px 0 15px;
    }


    /* CTA */

    .cta {
        width: 100%;
        padding: 28px 20px;
        margin-top: 36px;
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }


        .cta h2 {
            font-size: 1.4rem;
        }


    .cta-btn {
        width: 100%;
        text-align: center;
        padding: 13px 20px;
    }


    /* MODAL */

    .modal {
        padding: 15px;
    }


    .modal-contenido {
        max-width: 95vw;
        max-height: 80vh;
    }


    .cerrar {
        top: 10px;
        right: 15px;
        font-size: 38px;
    }
}


/* =========================================
   CELULARES PEQUEÑOS
========================================= */

@media (max-width: 480px) {

    .hero {
        padding: 30px 16px 25px;
    }


    .hero-text h1 {
        font-size: 2rem;
    }


    .hero-text p {
        font-size: .95rem;
    }


    .hero-icon {
        width: 150px;
        height: 150px;
    }


    main {
        padding: 30px 12px;
    }


    .section-eyebrow {
        font-size: 1.15rem;
    }


    .section-title {
        font-size: 1.6rem;
    }


    .instructor-card {
        padding: 16px;
    }


    .instructor-head {
        align-items: flex-start;
    }


        .instructor-head img {
            width: 52px;
            height: 52px;
            min-width: 52px;
        }


        .instructor-head h3 {
            font-size: 1rem;
        }


    .cert-toggle {
        padding: 10px 8px;
        gap: 8px;
    }


    .seal.small {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }


        .seal.small svg {
            width: 23px;
            height: 23px;
        }


    .cert-info .cert-name {
        font-size: .88rem;
    }


    .cert-info .cert-meta {
        font-size: .73rem;
    }


    .cert-panel {
        padding: 0 10px 14px 10px;
    }


    .cert-details {
        flex-direction: column;
        gap: 8px;
    }


    .cta {
        padding: 24px 16px;
    }


        .cta h2 {
            font-size: 1.3rem;
        }


    .modal-contenido {
        max-width: 94vw;
        max-height: 75vh;
    }
}


