* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

html, body {
    margin: 0;
    height: 100%;
    overflow-x: hidden;
}

header {
    background-color: black;
    height: 20vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
    z-index: 222;
    overflow: hidden;
}

#logo {
    height: 120px;
    width: auto;
}

.navbar {
    text-align: center;
}

.navbar ul {
    display: inline-block;
}

.navbar a {
    text-decoration: none;
    font-family: Overpass, sans-serif;
    color: white;
    margin: 0 10px;
}

.navbar a.active {
    color: #5afff8;
    padding-bottom: 15px;
    border-bottom: 1.8px solid #5afff8;
}

.navbar a:hover:not(.active) {
    color: #5afff8;
    transition: 0.5s;
}

header #access {
    color: white;
    background-color: #009899;
    border: none;
    cursor: pointer;
    border-radius: 7px;
    font-weight: 500;
    padding: 11px 26px;
    display: flex;
    position: relative;
    top: 0;
}

header #access:hover, #store-btn:hover {
    background-color: #00c5bb;
    color: white;
    transition: 0.5s;
}

header a {
    text-decoration: none;
}

img {
    width: 100%;
    height: auto;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(to right, #020d1f 45%, #0a1628 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    right: 0; top: 0;
    width: 40%;
}

.hero-bg .hero-img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg .hero-img.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    right: 0; top: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, #020d1f 0%, #020d1f 10%, rgba(2,13,31,0.6) 60%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 6%;
}

.hero-content h1 {
    font-family: 'Overpass', sans-serif;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: #5afff8;
    display: block;
}

.hero-content p {
    color: rgba(255,255,255,0.82);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 420px;
}

.hero-icons {
    display: flex;
    gap: 28px;
    margin-bottom: 38px;
    flex-wrap: wrap;
}

.hero-icon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.hero-icon-item .icon-circle {
    width: 44px;
    height: 44px;
    border: 2px solid #5afff8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-icon-item .icon-circle svg {
    width: 20px;
    height: 20px;
    stroke: #5afff8;
}

.hero-icon-item .icon-text .label {
    font-weight: 700;
    font-size: 13px;
    font-family: 'Overpass', sans-serif;
    color: white;
}

.hero-icon-item .icon-text .sublabel {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.btn-primary {
    background-color: #009899;
    color: white;
    border: none;
    padding: 13px 32px;
    font-family: 'Overpass', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-radius: 7px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover { background-color: #00c5bb; }
.btn-outline {
    background: transparent;
    color: #009899;
    border: 2px solid #009899;
    padding: 11px 28px;
    font-family: 'Overpass', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-radius: 7px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}
.btn-outline:hover {
    background-color: #009899;
    color: white;
}

/* ===== QUÉ ES CERTIFIT ===== */
.que-es {
    background: white;
    padding: 70px 6%;
}
.section-title {
    font-family: 'Overpass', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #020d1f;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-underline {
    width: 50px;
    height: 3px;
    background: #009899;
    margin-bottom: 32px;
}
.que-es-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.que-es-text p {
    color: #444;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 28px;
}
.que-es-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}
.value-icon {
    width: 56px;
    height: 56px;
    border: 2px solid #009899;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.value-icon svg {
    width: 26px; height: 26px;
    stroke: #009899;
}
.value-item .val-title {
    font-family: 'Overpass', sans-serif;
    font-weight: 800;
    font-size: 13px;
    color: #020d1f;
    text-transform: uppercase;
}
.value-item .val-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* ===== QUÉ OFRECEMOS ===== */
.que-ofrecemos {
    background: #020d1f;
    padding: 70px 6%;
}
.que-ofrecemos .section-title { color: white; }
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 10px;
}
.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #1a2a3a;
}
/* Placeholder gradient images */
.card-img-placeholder {
    width: 100%;
    height: 180px;
    display: block;
}
.card-img-1 { background: linear-gradient(135deg, #1a3a2a 0%, #2d5a3d 100%); }
.card-img-2 { background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 100%); }
.card-img-3 { background: linear-gradient(135deg, #1a2a1a 0%, #2a3a2a 100%); }
.card-body {
    padding: 22px 22px 26px;
    position: relative;
}
.card-icon {
    width: 44px;
    height: 44px;
    background: #009899;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.card-icon svg { width: 22px; height: 22px; stroke: white; }
.card-body h3 {
    font-family: 'Overpass', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #020d1f;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.card-body p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 18px;
}
.card-link {
    color: #009899;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    font-family: 'Overpass', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.card-link:hover { gap: 10px; }
.card-link::after { content: '→'; }

/* ===== ESTÁNDAR 1071 ===== */
.estandar {
    background: #f5f7fa;
    padding: 70px 6%;
}
.estandar-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 50px;
    align-items: center;
}
.estandar-badge {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, #009899, #006f70);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 4px solid #007879;
    box-shadow: 0 0 0 6px rgba(0,152,153,0.15);
}
.estandar-badge .badge-num {
    font-family: 'Overpass', sans-serif;
    font-weight: 900;
    font-size: 36px;
    color: white;
    line-height: 1;
}
.estandar-badge .badge-sub {
    font-size: 9px;
    color: rgba(255,255,255,0.85);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}
.estandar-text h2 {
    font-family: 'Overpass', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #020d1f;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.estandar-text p {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 22px;
}
.estandar-text p strong { color: #020d1f; }
.estandar-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.est-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.est-icon svg { width: 36px; height: 36px; stroke: #009899; }
.est-icon span {
    font-size: 12px;
    color: #444;
    font-weight: 500;
    line-height: 1.4;
}

/* ===== TESTIMONIOS ===== */
.testimonios {
    background: #020d1f;
    padding: 70px 6%;
}
.testimonios .section-title { color: white; }
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonio-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 28px;
    position: relative;
}
.testimonio-card::before {
    content: '"';
    position: absolute;
    top: 16px; left: 24px;
    font-size: 80px;
    color: #009899;
    line-height: 1;
    font-family: Georgia, serif;
    opacity: 0.4;
}
.testimonio-text {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 22px;
    margin-top: 30px;
}
.testimonio-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #009899, #006f70);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    color: white;
    font-size: 16px;
}
.author-name {
    font-weight: 600;
    color: white;
    font-size: 14px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: #009899;
    padding: 36px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
.cta-banner.center {
    justify-content: center;
}
.cta-banner-text h3 {
    font-family: 'Overpass', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: white;
    text-transform: uppercase;
}
.cta-banner-text p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin-top: 4px;
}
.cta-banner-right {
    display: flex;
    align-items: center;
    gap: 40px;
}
.btn-white {
    background: white;
    color: #009899;
    border: none;
    padding: 13px 30px;
    font-family: 'Overpass', sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-radius: 7px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
    white-space: nowrap;
}
.btn-white:hover { background: #e0fffe; }
.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}
.social-links span {
    color: white;
    font-weight: 700;
    font-size: 13px;
    font-family: 'Overpass', sans-serif;
    margin-right: 6px;
}
.social-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s;
}
.social-icon:hover { background: rgba(255,255,255,0.4); }
.social-icon svg { width: 18px; height: 18px; stroke: white; fill: white; }

/* Dropdown Content */

.dropdown {
    background-color: rgba(0,0,0,0.4);
    width: 100%;
    height: 100%;
    display: none;
    z-index: 555;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
}

.dropdown.active {
    display: block;
}

.dropdown-content {
    position: absolute;
    background-color: #3b3b3b;
    width: 80vw;
    height: 100vh;
    z-index: 333;
    border-radius: 5px;
    padding: 20px 0px;
    overflow-y: auto;
}

.dropdown-content p {
    text-align: center;
    font-size: 3vh;
    margin-bottom: 20px;
    color: white;
    font-weight: bold;
}

.dropdown-content a[href="/auth/login"] {
    background-color: #00c5bb;
    color: black;
    border: black;
}

.dropdown-content a:not(:has(> img)) {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 450;
    border-bottom: 1px solid lightgray;
}

.dropdown-content .contact-links p {
    padding: 0px;
}

.dropdown-content .contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.dropdown-content .contact-links div img {
    width: 8vh;
    padding: 5px;
}

.dropdown-content a:active {
    background-color: #494949;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

/* ===== FOOTER ===== */
.footer {
    background: white;
    display: grid;
    grid-template-columns: auto 1fr 1fr auto;
    gap: 50px;
    align-items: start;
    padding: 54px 6%;
    border-top: 1px solid #e8e8e8;
}

.footer .footer-logo,
.footer .footer-logo-wrap img {
    width: 250px;
    height: 250px;
}

.footer .title {
    font-family: 'Overpass', sans-serif;
    font-weight: 800;
    font-size: 13px;
    color: #020d1f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.footer .quick-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer .quick-links .columns {
    display: flex;
    gap: 40px;
}

.footer .quick-links .column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer .quick-links .column a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: color 0.2s;
    margin-bottom: 0;
}

.footer .quick-links .column a:hover {
    color: #009899;
}

.footer .contact-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer .contact-links .link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
}

.footer .contact-links .link span {
    color: #555;
    font-size: 14px;
}

.footer .conocer-logo,
.footer .conocer-logo-wrap img {
    width: 22rem;
    max-width: 100%;
}

.svg-icon {
    width: 18px;
    height: 18px;
    stroke: #009899;
}

.lower-footer {
    background-color: #020d1f;
    color: rgba(255,255,255,0.7);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    text-align: center;
    font-size: 13px;
}

/* ===== GLOBAL MOBILE FIXES ===== */
img {
    max-width: 100%;
    height: auto;
}

@media only screen and (min-width: 769px) {
    #burger-menu {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    #burger-menu {
        display: block;
        cursor: pointer;
        width: 28px;
        height: auto;
    }

    header {
        height: auto;
        min-height: 70px;
        justify-content: space-between;
        position: sticky;
        top: 0;
        padding: 0 16px;
    }

    #logo {
        height: 50px;
    }

    .navbar, header #access {
        display: none;
    }

    /* ----- Hero ----- */
    .hero {
        min-height: 100vh;
        flex-direction: column;
        align-items: stretch;
        background: #020d1f;
        padding-bottom: 0;
    }

    .hero-bg {
        position: relative;
        width: 100%;
        height: 50vh;
        flex-shrink: 0;
    }

    .hero-bg .hero-img {
        width: 100%;
        height: 100%;
        object-position: center center;
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        padding: 32px 6% 40px;
        max-width: 100%;
    }

    .hero-icons {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 30px;
    }

    .btn-primary, .btn-outline, .btn-white {
        width: 100%;
        text-align: center;
    }

    /* ----- Qué es Certifit ----- */
    .que-es {
        padding: 48px 6%;
    }
    .que-es-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .que-es-values {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    /* ----- Qué ofrecemos ----- */
    .que-ofrecemos {
        padding: 48px 6%;
    }
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* ----- Estándar 1071 ----- */
    .estandar {
        padding: 48px 6%;
    }
    .estandar-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }
    .estandar-badge {
        margin: 0 auto;
    }
    .estandar-icons {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    /* ----- Testimonios ----- */
    .testimonios {
        padding: 48px 6%;
    }
    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* ----- CTA Banner ----- */
    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 6%;
    }
    .cta-banner-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        width: 100%;
    }
    .cta-banner-right.center {
        align-items: center;
    }
    .cta-banner-right .btn-white {
        width: 100%;
    }
    .social-links {
        flex-wrap: wrap;
    }

    /* ----- Footer ----- */
    .footer {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 6%;
        text-align: center;
        justify-items: center;
    }
    .footer .quick-links {
        align-items: center;
    }
    .footer .quick-links .columns {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }
    .footer .quick-links .column {
        align-items: center;
    }
    .footer .contact-links .link {
        justify-content: center;
    }
    .footer .conocer-logo,
    .footer .conocer-logo-wrap img {
        width: 14rem;
    }

    .lower-footer {
        font-size: 12px;
        padding: 12px 16px;
    }
}

@media only screen and (max-width: 480px) {
    .que-es-values {
        grid-template-columns: 1fr;
    }
    .estandar-icons {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 26px;
    }
}