/* =====================================================
VARIABLES — cambia aquí toda la paleta de colores
===================================================== */
:root {
    --c-bg: #f4f2ff;
    --c-bg2: #e8e5ff;
    --c-primary: #6b72e8;
    --c-dark: #2a2570;
    --c-accent: #c2c5fa;
    --c-accent2: #dda9fe;
    --c-pink: #fee3f6;
    --c-blue: #86e1ff;
    --c-text: #2a2570;
    --c-muted: #7b78b0;
    --c-white: #ffffff;
}

/* =====================================================
RESET & BASE
===================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "DM Sans", sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
}
img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
a {
    text-decoration: none;
}

/* =====================================================
NAV
===================================================== */
.nav {
    background: var(--c-white);
    padding: 0 48px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 20px rgba(107, 114, 232, 0.1);
    border-bottom: 1px solid var(--c-bg2);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.8);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    overflow: hidden;
    cursor: default;
}
/* Para usar logo real: <img src="logo.png" alt="Logo"> dentro de .nav-logo-img */
.nav-name {
    display: flex;
    flex-direction: column;
}
.nav-title {
    font-family: "Playfair Display", serif;
    font-size: 16px;
    color: var(--c-dark);
    letter-spacing: 2px;
    line-height: 1.2;
}
.nav-subtitle {
    font-size: 10px;
    color: var(--c-muted);
    font-style: italic;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links a {
    font-size: 13px;
    color: var(--c-muted);
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--c-primary);
}

.nav-hours {
    font-size: 11px;
    color: var(--c-primary);
    background: var(--c-bg2);
    padding: 5px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-cta {
    background: var(--c-primary);
    color: var(--c-white);
    padding: 9px 22px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    transition:
        opacity 0.2s,
        transform 0.15s;
}
.nav-cta:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
    gap: 5px;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-dark);
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--c-white);
    padding: 20px 32px 28px;
    z-index: 199;
    box-shadow: 0 8px 24px rgba(107, 114, 232, 0.12);
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--c-bg2);
}
.nav-mobile.open {
    display: flex;
}
.nav-mobile a {
    font-size: 15px;
    color: var(--c-text);
    padding: 12px 0;
    border-bottom: 1px solid var(--c-bg2);
    display: block;
}
.nav-mobile a:last-of-type {
    border-bottom: none;
}
.nav-mobile .cta-m {
    margin-top: 8px;
    background: var(--c-primary);
    color: var(--c-white);
    padding: 12px;
    border-radius: 24px;
    text-align: center;
    font-weight: 500;
}
.nav-mobile .hours-m {
    font-size: 12px;
    color: var(--c-muted);
    text-align: center;
    padding-top: 4px;
}

/* =====================================================
HERO + CARRUSEL DE FONDO
===================================================== */
.hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* --- Carrusel como fondo --- */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-track {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
/*
Cuando tengas fotos reales, reemplaza estos gradientes por:
.hero-slide:nth-child(N) { background-image: url('tu-foto-N.jpg'); }
*/
.hero-slide:nth-child(1) {
    /*background: linear-gradient(135deg, #2a2570 0%, #6b72e8 100%);*/
    background-image: url("/assets/img/IMG_0741.png");
}
.hero-slide:nth-child(2) {
    /*background: linear-gradient(135deg, #1e1a5e 0%, #9b6fe8 100%);*/
    background-image: url("/assets/img/Document.png");
}
.hero-slide:nth-child(3) {
    /*background: linear-gradient(135deg, #3a2e80 0%, #7b8be8 100%);*/
    background-image: url("/assets/img/IMG_0748.jpg");
}
/*.hero-slide:nth-child(4) {
    background: linear-gradient(135deg, #251e6a 0%, #c2c5fa 100%);
}*/

/* Overlay para legibilidad del texto */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        160deg,
        rgba(42, 37, 112, 0.8) 0%,
        rgba(107, 114, 232, 0.55) 100%
    );
}

/* Controles carrusel */
.hero-btn {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(6px);
}
.hero-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}
.hero-btn.prev {
    left: 20px;
}
.hero-btn.next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}
.hdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition:
        background 0.25s,
        transform 0.25s;
}
.hdot.active {
    background: var(--c-blue);
    transform: scale(1.4);
}

/* Contenido del hero */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 72px 24px 80px;
    max-width: 640px;
    width: 100%;
}
.hero-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}
/* Para usar logo real: <img src="logo.png" alt="Logo"> dentro de .hero-logo */
.hero-content h1 {
    font-family: "Playfair Display", serif;
    font-size: 52px;
    font-weight: 400;
    letter-spacing: 5px;
    color: var(--c-white);
    margin-bottom: 10px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}
.hero-sub {
    font-family: "Playfair Display", serif;
    font-size: 16px;
    font-style: italic;
    color: var(--c-blue);
    margin-bottom: 22px;
}
.hero-divider {
    width: 48px;
    height: 1.5px;
    background: var(--c-accent2);
    margin: 0 auto 24px;
}
.hero-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.85;
    margin-bottom: 34px;
}
.hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-wa {
    background: #25d366;
    color: white;
    padding: 12px 26px;
    border-radius: 28px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}
.btn-fb {
    background: #1877f2;
    color: white;
    padding: 12px 26px;
    border-radius: 28px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.3);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.btn-fb:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.4);
}
.btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 11px 22px;
    border-radius: 28px;
    font-size: 13px;
    transition: background 0.2s;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* =====================================================
ADDRESS BAR
===================================================== */
.address-bar {
    background: var(--c-dark);
    padding: 10px 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.address-bar span {
    font-size: 12px;
    color: var(--c-accent);
}

/* =====================================================
TRUST BAR
===================================================== */
.trust {
    display: flex;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-bg2);
}
.trust-item {
    flex: 1;
    text-align: center;
    padding: 22px 8px;
    border-right: 1px solid var(--c-bg2);
}
.trust-item:last-child {
    border-right: none;
}
.trust-num {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    color: var(--c-primary);
}
.trust-label {
    font-size: 11px;
    color: var(--c-muted);
    margin-top: 3px;
}

/* =====================================================
SERVICIOS
===================================================== */
.section {
    padding: 64px 48px;
}
.section-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--c-accent2);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section h2 {
    font-family: "Playfair Display", serif;
    font-size: 30px;
    color: var(--c-dark);
    font-weight: 400;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--c-white);
    box-shadow: 0 2px 14px rgba(107, 114, 232, 0.08);
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s;
    cursor: default;
}
.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 36px rgba(107, 114, 232, 0.18);
}

/* Imagen del servicio */
.svc-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.svc-img img,
.svc-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.svc-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card:hover .svc-img img,
.service-card:hover .svc-placeholder {
    transform: scale(1.07);
}

/* Overlay hover */
.svc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 25%,
        rgba(107, 114, 232, 0.78) 100%
    );
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 14px;
}
.service-card:hover .svc-overlay {
    opacity: 1;
}
.svc-overlay span {
    color: white;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

/* Info */
.svc-info {
    padding: 14px 16px;
    border-top: 1px solid var(--c-bg2);
}
.svc-info h3 {
    font-size: 13px;
    color: var(--c-dark);
    font-weight: 500;
    line-height: 1.4;
}
.svc-info small {
    font-size: 11px;
    color: var(--c-accent2);
    font-style: italic;
    display: block;
    margin-top: 2px;
}

/* Gradientes únicos por tarjeta usando colores de la paleta */
.g1 {
    background: linear-gradient(135deg, #86e1ff 0%, #c2c5fa 100%);
}
.g2 {
    background: linear-gradient(135deg, #c2c5fa 0%, #dda9fe 100%);
}
.g3 {
    background: linear-gradient(135deg, #dda9fe 0%, #fee3f6 100%);
}
.g4 {
    background: linear-gradient(135deg, #fee3f6 0%, #b1e1ff 100%);
}
.g5 {
    background: linear-gradient(135deg, #86c1fc 0%, #c2c5fa 100%);
}
.g6 {
    background: linear-gradient(135deg, #e8e5ff 0%, #dda9fe 100%);
}
.g7 {
    background: linear-gradient(135deg, #b1e1ff 0%, #86c1fc 100%);
}
.g8 {
    background: linear-gradient(135deg, #c2c5fa 0%, #86e1ff 100%);
}
.g9 {
    background: linear-gradient(135deg, #dda9fe 0%, #b1e1ff 100%);
}
.g10 {
    background: linear-gradient(135deg, #fee3f6 0%, #c2c5fa 100%);
}
.g11 {
    background: linear-gradient(135deg, #86e1ff 0%, #dda9fe 100%);
}

/* =====================================================
CONTACTO
===================================================== */
.contact-section {
    background: var(--c-white);
    border-top: 1px solid var(--c-bg2);
    padding: 64px 48px;
}
.contact-inner {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}
.contact-inner h2 {
    font-family: "Playfair Display", serif;
    font-size: 30px;
    color: var(--c-dark);
    font-weight: 400;
    margin-bottom: 10px;
}
.contact-inner .desc {
    font-size: 14px;
    color: var(--c-muted);
    margin-bottom: 32px;
    line-height: 1.75;
}
.contact-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.c-btn {
    padding: 14px 32px;
    border-radius: 32px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.c-btn:hover {
    transform: translateY(-3px);
}
.c-btn-wa {
    background: #25d366;
    color: white;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}
.c-btn-wa:hover {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}
.c-btn-fb {
    background: #1877f2;
    color: white;
    box-shadow: 0 4px 16px rgba(24, 119, 242, 0.3);
}
.c-btn-fb:hover {
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.45);
}

.hours-card {
    background: var(--c-bg);
    border: 1px solid var(--c-bg2);
    border-radius: 20px;
    padding: 24px 32px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
}
.hours-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-accent);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hours-info {
    text-align: left;
}
.hours-tag {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 4px;
}
.hours-time {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    color: var(--c-dark);
}
.hours-days {
    font-size: 12px;
    color: var(--c-muted);
    margin-top: 2px;
}

/* =====================================================
MAPA
===================================================== */
.map-section {
    border-top: 1px solid var(--c-bg2);
}
.map-header {
    background: var(--c-dark);
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.map-header-left p {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--c-accent);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.map-header-left h2 {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    color: var(--c-white);
    font-weight: 400;
    margin-bottom: 8px;
}
.map-header-left address {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    font-style: normal;
}
.map-gmaps-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 11px 22px;
    border-radius: 24px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.2s;
}
.map-gmaps-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}
.map-section iframe {
    width: 100%;
    height: 380px;
    border: none;
    display: block;
}

/* =====================================================
FOOTER
===================================================== */
footer {
    background: var(--c-dark);
    padding: 28px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-brand .ft {
    font-family: "Playfair Display", serif;
    font-size: 17px;
    color: var(--c-accent);
    letter-spacing: 3px;
}
.footer-brand .fs {
    font-size: 11px;
    color: var(--c-muted);
    font-style: italic;
    margin-top: 3px;
}
.footer-right {
    text-align: right;
}
.footer-right p {
    font-size: 12px;
    color: var(--c-muted);
    line-height: 1.7;
}
.footer-right span {
    font-size: 10px;
    color: rgba(194, 197, 250, 0.4);
}

/* =====================================================
RESPONSIVE
===================================================== */

/* --- Tablet --- */
@media (max-width: 1024px) {
    .nav {
        padding: 0 24px;
    }
    .nav-links,
    .nav-hours {
        display: none;
    }
    .nav-cta {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }
    .section {
        padding: 48px 24px;
    }
    .address-bar {
        padding: 10px 24px;
    }
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .map-header {
        padding: 24px;
    }
    .contact-section {
        padding: 48px 24px;
    }
    footer {
        padding: 24px;
    }
}

/* --- Mobile grande --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 38px;
        letter-spacing: 3px;
    }
    .hero-content p {
        font-size: 13px;
    }
    .hero-btn {
        display: none;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .trust {
        flex-wrap: wrap;
    }
    .trust-item {
        flex: 1 1 45%;
    }
    .trust-item:nth-child(2) {
        border-right: none;
    }
    .trust-item:nth-child(3) {
        border-top: 1px solid var(--c-bg2);
    }
    .trust-item:nth-child(4) {
        border-top: 1px solid var(--c-bg2);
        border-right: none;
    }
    .map-header {
        flex-direction: column;
        gap: 16px;
    }
    .map-gmaps-btn {
        width: 100%;
        justify-content: center;
    }
    .map-section iframe {
        height: 280px;
    }
    footer {
        flex-direction: column;
        text-align: center;
    }
    .footer-right {
        text-align: center;
    }
    .hours-card {
        flex-direction: column;
        text-align: center;
    }
    .hours-info {
        text-align: center;
    }
}

/* --- Mobile pequeño --- */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 30px;
        letter-spacing: 2px;
    }
    .hero-sub {
        font-size: 14px;
    }
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .hero-btns a {
        width: 100%;
        justify-content: center;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .contact-btns {
        flex-direction: column;
        align-items: stretch;
    }
    .c-btn {
        justify-content: center;
    }
    .address-bar {
        gap: 6px;
    }
    .address-bar span {
        font-size: 11px;
    }
    .section h2 {
        font-size: 24px;
    }
}

/* =====================================================
UTILITY
===================================================== */
.icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
