:root {
    --azul-marino: #1a2b48;
    --azul-profundo: #102037;
    --dorado: #b59461;
    --cian: #00d4ff;
    --blanco: #ffffff;
    --gris-claro: #f4f4f4;
    --gris-texto: #5f6b7a;
    --verde-ws: #25d366;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: var(--azul-marino);
    line-height: 1.6;
    background: var(--blanco);
}

/* HEADER COMPACTO */
header {
    background: var(--blanco);
    padding: 8px 24px;
    border-bottom: 2px solid var(--dorado);
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
}

.logo {
    max-width: 190px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.03);
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

nav a {
    color: var(--azul-marino);
    text-decoration: none;
    font-weight: 600;
    margin-left: 16px;
    font-size: 0.86rem;
    position: relative;
    padding-bottom: 3px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cian);
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.5);
}

nav a:hover {
    color: var(--azul-marino);
}

nav a:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    background: linear-gradient(rgba(16, 32, 55, 0.88), rgba(16, 32, 55, 0.88)),
        url('https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&q=80&w=1600');
    background-size: cover;
    background-position: center;
    color: var(--blanco);
    padding: 110px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: auto;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.15;
    margin: 0 0 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.18rem;
    max-width: 760px;
    margin: 0 auto 28px;
}

.badge {
    display: inline-block;
    border: 1px solid var(--cian);
    border-radius: 50px;
    padding: 8px 18px;
    margin-bottom: 22px;
    font-size: 0.9rem;
    color: var(--cian);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

/* BOTONES */
.btn-whatsapp,
.btn-secondary {
    display: inline-block;
    padding: 15px 28px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    margin: 8px;
}

.btn-whatsapp {
    background: var(--verde-ws);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--dorado);
}

/* SECCIONES */
section {
    padding: 70px 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 42px;
}

.section-title h2 {
    font-size: 2.1rem;
    margin: 0 0 12px;
}

.section-title p {
    color: var(--gris-texto);
    max-width: 760px;
    margin: auto;
}

.intro {
    background: var(--gris-claro);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.intro-box {
    background: white;
    border-left: 5px solid var(--dorado);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.intro-box h3 {
    margin-top: 0;
}

/* TARJETAS DE SERVICIOS */
.servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.card {
    background: var(--blanco);
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--cian);
    box-shadow: 0 8px 28px rgba(0, 212, 255, 0.15);
}

.card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #e8ecf1;
}

.card-content {
    padding: 24px;
    flex: 1;
}

.card-content h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

.card-content p {
    color: var(--gris-texto);
}

.card-content ul {
    padding-left: 20px;
    color: var(--gris-texto);
}

.tag {
    display: inline-block;
    background: rgba(181, 148, 97, 0.14);
    color: var(--azul-marino);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* EJEMPLOS */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.example-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e5ea;
}

.example-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #e8ecf1;
}

.example-card div {
    padding: 20px;
}

.example-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.example-card p {
    margin: 0;
    color: var(--gris-texto);
    font-size: 0.94rem;
}

.note-box {
    margin-top: 28px;
    padding: 22px;
    border-radius: 12px;
    background: rgba(181, 148, 97, 0.12);
    border-left: 5px solid var(--dorado);
    color: var(--azul-marino);
}

/* METODOLOGÍA */
.modalidad {
    background: var(--azul-marino);
    color: white;
}

.modalidad .section-title p {
    color: rgba(255, 255, 255, 0.78);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.step {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.06);
}

.step-number {
    color: var(--cian);
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* RELATOR */
.relator {
    background: var(--blanco);
}

.relator-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--gris-claro);
    border-radius: 16px;
    padding: 40px;
    border-left: 5px solid var(--dorado);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.relator-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid var(--cian);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15), 0 4px 20px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    background: #e8ecf1;
    object-fit: cover;
}

.relator-content h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 2rem;
}

.relator-content .cargo {
    color: var(--dorado);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: inline-block;
}

.relator-content p {
    color: var(--gris-texto);
    font-size: 0.95rem;
    margin-bottom: 12px;
    text-align: justify;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--azul-profundo), var(--azul-marino));
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.1rem;
    margin: 0 0 12px;
}

.cta p {
    max-width: 720px;
    margin: 0 auto 24px;
}

/* SEO LOCAL */
.seo-local {
    background: var(--gris-claro);
    text-align: center;
    padding: 45px 20px;
}

.seo-local h2 {
    font-size: 1.7rem;
    margin: 0 0 12px;
}

.seo-local p {
    color: var(--gris-texto);
    max-width: 760px;
    margin: auto;
}

/* FAQ */
.faq {
    background: var(--blanco);
}

.faq-item {
    max-width: 900px;
    margin: 0 auto 18px;
    padding: 20px 24px;
    background: var(--gris-claro);
    border-left: 4px solid var(--dorado);
    border-radius: 10px;
}

.faq-item h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.faq-item p {
    margin: 0;
    color: var(--gris-texto);
}

/* BOTÓN WHATSAPP FIJO */
.btn-fixed-ws {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--verde-ws);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
}

/* BOTÓN SUBIR */
.btn-top {
    position: fixed;
    bottom: 90px;
    right: 25px;
    background: var(--azul-marino);
    color: var(--cian);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.3), 2px 2px 12px rgba(0, 0, 0, 0.25);
    z-index: 999;
    text-decoration: none;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: background 0.3s, opacity 0.3s, box-shadow 0.3s;
    opacity: 0;
    pointer-events: none;
}

.btn-top:hover {
    background: var(--azul-profundo);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.btn-top svg {
    width: 24px;
    height: 24px;
}

/* FOOTER */
footer {
    background: var(--azul-profundo);
    color: white;
    text-align: center;
    padding: 38px 20px;
}

footer p {
    margin: 6px 0;
}

/* HAMBURGUESA */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--azul-marino);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    header {
        padding: 7px 14px;
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        position: relative;
        min-height: 50px;
    }

    .logo {
        max-width: 115px;
    }

    .hamburger {
        display: flex;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--blanco);
        border-top: 2px solid var(--dorado);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        padding: 8px 0;
        z-index: 800;
    }

    #nav-menu.nav-open {
        display: flex;
    }

    #nav-menu a {
        margin: 0;
        padding: 10px 20px;
        font-size: 0.9rem;
        border-bottom: 1px solid #f0f0f0;
    }

    #nav-menu a:last-child {
        border-bottom: none;
    }

    nav a::after {
        display: none;
    }

    .hero {
        padding: 70px 20px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 55px 18px;
    }

    .relator-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .relator-content p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 105px;
    }

    .hero {
        padding: 60px 18px;
    }

    .btn-whatsapp,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 13px 20px;
    }

    .section-title h2,
    .cta h2 {
        font-size: 1.7rem;
    }

    .btn-fixed-ws {
        width: 54px;
        height: 54px;
        bottom: 18px;
        right: 18px;
    }

    .btn-top {
        width: 46px;
        height: 46px;
        bottom: 82px;
        right: 22px;
    }
}