﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');

/* ================= VARIABLES ================= */
:root {
    --blue: #061427;
    --blue-dark: #04101f;
    --blue-soft: #0b2a4a;
    --gold: #cfa348;
    --gold-strong: #d4af37;
    --gold-light: #e0b96b;
    --text-light: #f3f5f8;
    --text-dark: #16212e;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font-family: 'Inter', sans-serif;
}

/* ================= CONTENEDOR ================= */
.container {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 0 60px;
}

/* ================= NAVBAR ================= */
.topbar {
    background: var(--blue-dark);
    border-bottom: 1px solid rgba(207,163,72,0.2);
}

.top-menu a {
    color: #e6dcc7;
    font-weight: 600;
}

    .top-menu a:hover {
        color: var(--gold);
    }

.wa-btn {
    border: 1px solid var(--gold);
    color: var(--gold);
    margin-right: 36px;
}

/* ================= HERO ================= */
.hero-legal {
    background: radial-gradient(circle at left, #0b2a4a 0%, #061427 60%, #04101f 100%);
    color: white;
}

.hero-legal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    min-height: 90vh;
}

.hero-kicker {
    color: var(--gold);
    letter-spacing: 2px;
}

.hero-left h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
}

    .hero-left h1 span {
        color: var(--gold);
    }

.hero-subtitle {
    color: #dbe3ec;
    line-height: 1.6;
    text-align: justify;
}

/* ================= HERO CARDS ================= */
.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.service-card {
    border: 1px solid rgba(207,163,72,0.4);
    padding: 20px;
    text-align: center;
    color: white;
    border-radius: 10px;
    transition: 0.3s;
}

    .service-card:hover {
        background: rgba(207,163,72,0.1);
    }

.service-icon {
    color: var(--gold);
    font-size: 2rem;
}

/* ================= IMAGEN HERO ================= */
.hero-image-wrap {
    height: 500px;
    overflow: hidden;
    border-top-left-radius: 200px;
}

    .hero-image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* ================= CTA ================= */
.cta-bar {
    background: linear-gradient(90deg, #d7ad56, #c5963c);
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-phone {
    font-size: 1.6rem;
    font-weight: bold;
}

.cta-btn {
    background: #0b1c2c;
    color: #f3e2bd;
    padding: 12px 25px;
    border-radius: 6px;
}

/* ================= SOBRE MI ================= */
.sobre-mi {
    background: linear-gradient(90deg, #071c33, #0b2a4a);
    color: white;
}

.sobre-mi-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding: 60px;
}

.sobre-mi-right h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
}

.sobre-mi-right p {
    text-align: justify;
    line-height: 1.7;
}

/* ================= AREAS ================= */
.areas {
    background: #f3efe6;
    padding: 60px 0;
    text-align: center;
}

    .areas h2 {
        font-family: 'Playfair Display', serif;
        margin-bottom: 30px;
    }

.areas-subtitle {
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* GRID 4x2 */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* TARJETAS */
.area-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: #1c2a3b;
    transition: 0.3s;
    aspect-ratio: 1/1;
}

    .area-card:hover {
        transform: translateY(-6px);
        border: 1px solid var(--gold);
    }

    .area-card i {
        color: var(--gold);
        font-size: 2rem;
    }

/* ================= WHY ================= */
.why-panel {
    background: #f3efe6;
    padding: 50px;
    text-align: center;
}

.why-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

    .why-section i {
        color: #0b1c2c;
    }

/* ================= PANEL DERECHO ================= */
.side-section {
    background: radial-gradient(circle at top right, #0b2a4a, #04101f);
    color: white;
    padding: 40px;
}

    .side-section h3 {
        color: var(--gold);
    }

/* ================= FOOTER ================= */
.footer {
    background: #04101f;
    color: #e1e7ee;
    padding: 60px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 60px; /* 👈 esto lo separa del borde */
}

.footer h3,
.footer h4 {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
}

.footer p {
    display: flex;
    gap: 8px;
    text-align: left;
}

.footer i {
    color: var(--gold);
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .footer-links a {
        display: inline-block;
        padding: 8px 12px;
        border-radius: 6px;
        text-decoration: none;
        color: #e6dcc7;
        font-weight: 500;
        transition: all 0.25s ease;
    }

        /* 🔥 HOVER elegante */
        .footer-links a:hover {
            background: rgba(207, 163, 72, 0.15);
            color: var(--gold);
            transform: translateX(4px); /* pequeño movimiento */
        }

/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {

    .hero-legal-grid {
        grid-template-columns: 1fr;
    }

    .services {
        grid-template-columns: 2fr 2fr;
    }

    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* ================= LAYOUT ================= */

.layout-shell {
    width: 100%;
}

/* ================= HEADER ================= */

.topbar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #051224 0%, #07182d 100%);
    border-bottom: 1px solid rgba(207,163,72,0.25);
}

.topbar-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 90px;
    width: 100%;
}

/* ================= BRAND ================= */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-shrink: 0;
    text-decoration: none;
    color: #f5e9cb;
}

.brand-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #cfa348;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cfa348;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

/* ================= MENU ================= */

.top-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex: 1;
    min-width: 0;
}

    .top-menu a {
        color: #ece2cc;
        text-decoration: none;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 600;
        transition: color 0.2s ease;
    }

        .top-menu a:hover {
            color: #cfa348;
        }

/* ================= BOTON WHATSAPP ================= */

.wa-btn {
    border: 1px solid #cfa348;
    background: transparent;
    color: #cfa348;
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

    .wa-btn:hover {
        background: rgba(207,163,72,0.15);
    }

/* ================= MENU MOBILE ================= */

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 40px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(207,163,72,0.5);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 999px;
        background: #cfa348;
    }

/* ================= CONTENIDO ================= */

.page-content {
    width: 100%;
}

/* ================= HEADER RESPONSIVE ================= */

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .topbar-content {
        min-height: 76px;
        gap: 16px;
    }

    .brand {
        flex: 1;
    }

    .brand-text {
        font-size: 0.92rem;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .wa-btn {
        display: none;
    }

    .top-menu {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
        padding: 0;
        background: #07182d;
        border-top: 1px solid rgba(207,163,72,0.25);
        box-shadow: 0 14px 28px rgba(0,0,0,0.24);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

        .top-menu a {
            display: block;
            width: 100%;
            padding: 16px 20px;
            border-bottom: 1px solid rgba(207,163,72,0.12);
            font-size: 0.9rem;
        }

        .top-menu a:last-child {
            border-bottom: 0;
        }

        .top-menu.open {
            max-height: 360px;
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(0);
        }
}

@media (min-width: 769px) {
    .top-menu {
        position: static;
        max-height: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        overflow: visible;
    }
}

/* ================= BARRA ASESORIA ================= */

.barra-asesoria {
    width: 100%;
    background: linear-gradient(90deg, #d7ad56 0%, #c5963c 100%);
    border-top: 1px solid rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(0,0,0,0.15);
    font-family: 'Montserrat', sans-serif;
}

.barra-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* IZQUIERDA */
.barra-left {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-right: 30px;
    border-right: 1px solid rgba(0,0,0,0.2);
    flex: 1;
    min-width: 0;
}

.icono-whatsapp {
    width: 68px;
    height: 68px;
    background: #071c33;
    color: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
    flex-shrink: 0;
}

.texto h4 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0b1c2c;
}

.texto p {
    margin: 5px 0 0;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.75);
    max-width: 420px;
    line-height: 1.5;
}

/* CENTRO (TELÉFONO) */
.barra-center {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 700;
    color: #0b1c2c;
    padding: 0 28px;
    border-left: 1px solid rgba(0,0,0,0.2);
    border-right: 1px solid rgba(0,0,0,0.2);
    white-space: nowrap;
}

    .barra-center i {
        font-size: 22px;
    }

/* DERECHA (BOTÓN) */
.barra-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.btn-agenda {
    background: #0b1c2c;
    color: #f3e2bd;
    padding: 16px 34px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(207,163,72,0.25);
    text-decoration: none;
}

    .btn-agenda:hover {
        background: #16344f;
        transform: translateY(-2px);
    }

/* ================= BARRA ASESORIA RESPONSIVE ================= */
@media (max-width: 1100px) {
    .barra-container {
        padding: 20px 30px;
        gap: 16px;
    }

    .barra-left {
        padding-right: 16px;
        gap: 12px;
    }

    .barra-center {
        padding: 0 16px;
        font-size: 1.3rem;
    }

    .btn-agenda {
        padding: 14px 20px;
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .barra-container {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 22px 20px;
    }

    .barra-left {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.18);
        padding-right: 0;
        padding-bottom: 12px;
    }

    .barra-center {
        border-left: none;
        border-right: none;
        justify-content: flex-start;
        padding: 0;
        font-size: 1.5rem;
        white-space: normal;
    }

    .barra-right {
        justify-content: stretch;
    }

    .barra-right .btn-agenda {
        width: 100%;
        text-align: center;
        padding: 15px 18px;
    }
}

@media (max-width: 560px) {
    .icono-whatsapp {
        width: 56px;
        height: 56px;
        font-size: 23px;
    }

    .texto h4 {
        font-size: 15px;
        letter-spacing: 0.04em;
    }

    .texto p {
        font-size: 13px;
    }

    .barra-center {
        font-size: 1.25rem;
        gap: 10px;
    }

    .barra-center i {
        font-size: 18px;
    }
}