/* ==========================================================================
   1. VARIABLES Y BASE
   ========================================================================== */
:root {
    --bg-color: #f4eee0;
    --card-bg: #faf7f0;
    --accent-color: #a68a6d;
    --text-dark: #4a3f35;
    --white: #ffffff;
    --gold: #c5a059;
    --silver: #bdc3c7;
    --brown: #4a3f35;
    --beige-light: #f9f6f1;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden; /* Evita scroll horizontal por animaciones */
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

/* ==========================================================================
   2. HEADER & NAVBAR (Efecto Fijo al bajar la página)
   ========================================================================== */
header {
    background-color: var(--white);
    position: sticky; /* Cambiado de relative a sticky */
    top: 0;           /* Se queda pegado justo al borde superior de la pantalla */
    left: 0;
    width: 100%;
    z-index: 1100;    /* Mantiene la barra por encima de las secciones del formulario */
    box-shadow: 0 2px 10px rgba(74, 63, 53, 0.05); /* Sutil sombra para dar profundidad al hacer scroll */
}

.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 5%; 
    height: 80px;
    background: var(--white); 
    position: relative;
    z-index: 1100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brown);
    text-decoration: none;
}

.logo span {
    color: var(--gold);
    font-weight: 400;
}

/* Contenedor Desktop */
.nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--brown);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}
.nav-links a.active { color: var(--gold); }

/* Botón Hamburguesa (Oculto en PC) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1200;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--brown);
    transition: 0.3s;
}

/* Overlay Dinámico */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 999;
    backdrop-filter: blur(3px);
}

.menu-overlay.is-active {
    display: block;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
    display: flex;
    justify-content: center;
    padding: 50px 5%;
}

.hero-container {
    display: flex;
    align-items: center;
    max-width: 1100px;
    gap: 50px;
}

.hero-image img {
    width: 400px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* ==========================================================================
   4. INFO GRID & CARDS (RELIEVE)
   ========================================================================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 100px 8%;
    background-color: var(--bg-color);
}

.info-card {
    background: var(--beige-light);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(197, 160, 89, 0.1);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.02), -5px -5px 15px rgba(255, 255, 255, 0.8);
    transition: all 0.5s ease;
}

.info-card:hover {
    transform: translateY(-15px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(74, 63, 53, 0.08);
}

.card-icon-header i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--gold);
    opacity: 0.3;
    transition: 0.4s;
}

.info-card:hover i {
    opacity: 0.8;
    transform: scale(1.1) rotate(5deg);
}

.info-card h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 10px auto 0;
    opacity: 0.5;
}

.info-card p {
    color: #7a736c;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ==========================================================================
   FORMULARIO HORIZONTAL (HOME - OPTIMIZADO)
   ========================================================================== */
.contact-section.horizontal-layout {
    padding: 80px 0;
    background-color: var(--beige);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.contact-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-header {
    text-align: center;
}

.contact-header h3 {
    font-size: 2.5rem;
    color: var(--brown);
    margin-bottom: 10px;
}

.contact-header p {
    color: var(--text-soft, #6a5f55);
    font-size: 1.05rem;
}

/* --- El Contenedor Glassmorphism --- */
.glass-form-horizontal {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(197, 160, 89, 0.2); /* Borde dorado ultra sutil */
    border-radius: 50px; /* Forma de píldora estilizada */
    padding: 10px 15px 10px 30px; /* Más aire a la izquierda */
    box-shadow: 0 15px 35px rgba(74, 63, 53, 0.05);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.form-group {
    flex: 1; /* Distribuye el espacio equitativamente */
    display: flex;
    align-items: center;
}

/* El campo de mensaje gana un poco más de terreno horizontal */
.form-group.message-group {
    flex: 1.8; 
}

/* --- Estilizado de los Inputs --- */
.glass-form-horizontal input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--brown);
    border-bottom: 1px solid transparent; /* Para la animación de foco */
    transition: all 0.3s ease;
}

/* Placeholder elegante */
.glass-form-horizontal input::placeholder {
    color: var(--text-soft, #6a5f55);
    opacity: 0.65;
}

/* Animación sutil de enfoque */
.glass-form-horizontal input:focus {
    border-bottom: 1px solid var(--gold);
}

/* --- Botón Inline Premium --- */
.btn-submit-inline {
    background: var(--gold);
    color: #ffffff;
    border: none;
    outline: none;
    padding: 14px 35px;
    border-radius: 40px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.25);
    transition: all 0.3s ease;
}

.btn-submit-inline:hover {
    background: var(--brown); /* Cambia al tono café corporativo */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 63, 53, 0.3);
}

.btn-submit-inline:active {
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS SEGUROS)
   ========================================================================== */

/* Tablets y pantallas medianas: pasa de píldora a un grid más cómodo */
@media (max-width: 992px) {
    .glass-form-horizontal {
        border-radius: 24px;
        padding: 30px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 25px;
    }
    
    .form-group, .form-group.message-group {
        width: 100%;
        flex: none;
    }
    
    .glass-form-horizontal input {
        border-bottom: 1px solid rgba(74, 63, 53, 0.1);
        padding: 10px 5px;
    }
    
    .btn-submit-inline {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }
}

/* ==========================================================================
   6. BOTONES (RESERVA, MORE, SUBMIT)
   ========================================================================== */
.btn-reserva {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(166, 138, 109, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-reserva:hover {
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(166, 138, 109, 0.4);
    background-color: #8e735a;
}

.btn-more {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    border: 1.5px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

.btn-more::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background-color: var(--accent-color);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-more:hover { color: white; }
.btn-more:hover::before { width: 100%; }

.btn-submit-inline {
    background-color: var(--brown);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.4s;
    box-shadow: 0 4px 15px rgba(74, 63, 53, 0.15);
}

.btn-submit-inline:hover {
    background-color: var(--gold);
    transform: translateY(-2px);
}

/* ==========================================================================
   7. FOOTER & SOCIAL
   ========================================================================== */
footer {
    background-color: var(--bg-color);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(166, 138, 109, 0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-dark);
    opacity: 0.4; 
    transition: 0.4s;
}

.social-icon:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: translateY(-5px);
}

/* ==========================================================================
   8. RESPONSIVE (MÓVIL)
   ========================================================================== */
@media (max-width: 992px) {
    .menu-toggle { display: flex; }

    .nav-links-wrapper {
        position: fixed;
        top: 0;
        left: -110%;
        width: 100%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1000;
    }

    .nav-links-wrapper.is-active { left: 0; }
    .nav-links { flex-direction: column; align-items: center; gap: 25px; }
    .nav-links a { font-size: 1.3rem; }
    
    .hero-container { flex-direction: column; text-align: center; }
    .hero-image img { width: 90%; }
    .hero-text h1 { font-size: 2.5rem; }
    
    .info-grid { grid-template-columns: 1fr; }

    .form-row { flex-direction: column; gap: 15px; }
    .glass-form-horizontal { border-radius: 20px; padding: 30px 20px; }
    .btn-submit-inline { width: 100%; margin-left: 0; }
}
/* Estilos para el contenedor del logo */
.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
    max-height: 80px; /* Mantiene el límite estricto de la navbar */
    overflow: hidden; /* Corta cualquier excedente invisible */
}

.nav-logo {
    /* UN POCO MENOS DE TAMAÑO: Bajamos de 115px a 100px para darle más aire */
    height: 80px;       
    width: auto;         
    object-fit: contain;
    
    /* SUAVIZAMOS MÁRGENES: Reducimos el recorte de -18px a -10px para 
       compensar el nuevo tamaño más pequeño y mantenerlo centrado */
    margin-top: -5px;   
    margin-bottom: -5px;
    margin-left: -2px;   /* Alineación sutil con el borde izquierdo */
    
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

/* Ajuste proporcional para teléfonos y tablets */
@media (max-width: 992px) {
    .logo-container {
        max-height: 80px;
    }
    .nav-logo {
        /* Ajuste equivalente en móvil para mantener la misma proporción */
        height: 75px;
        margin-top: -2px;
        margin-bottom: -2px;
        margin-left: -0px;
    }
}
/* ==========================================================================
   CRÉDITOS DEL DESARROLLADOR (FIVERR & LINKEDIN)
   ========================================================================== */
.developer-credits {
    margin-top: 25px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.developer-credits:hover {
    opacity: 1; /* Se ilumina sutilmente al posar el cursor */
}

.developer-credits p {
    color: var(--text-soft, #6a5f55);
    margin: 0;
}

.developer-credits strong {
    color: var(--brown);
    font-weight: 600;
}

/* Separadores visuales */
.dev-sep {
    color: var(--gold);
    margin: 0 6px;
    opacity: 0.5;
}

/* Enlaces a tus perfiles */
.dev-link {
    color: var(--brown);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.dev-link:hover {
    color: var(--gold); /* Cambia al dorado de la web */
}

/* Animación de línea inferior minimalista al hacer hover */
.dev-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -1px;
    left: 0;
    background-color: var(--gold);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.dev-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Ajuste sutil para que en móviles no se amontone */
@media (max-width: 480px) {
    .developer-credits {
        font-size: 0.8rem;
    }
    .dev-sep {
        margin: 0 3px;
    }
}
/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP (CON ANIMACIÓN)
   ========================================================================== */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366; /* El color verde oficial de WhatsApp */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 2000; /* Lo mantiene por encima de la navbar fija y del modal */
    transition: all 0.3s ease;
}

/* El icono SVG interno */
.whatsapp-floating-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Efecto Hover: Se eleva un poquito y brilla más */
.whatsapp-floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    background-color: #20ba5a;
}

/* --- ANIMACIÓN DE PULSO --- */
/* Crea un anillo de ondas expansivas muy sutil alrededor del botón */
.whatsapp-floating-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.5;
    z-index: -1;
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Ajuste fino para pantallas móviles para que no estorbe al leer */
@media (max-width: 768px) {
    .whatsapp-floating-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-floating-btn svg {
        width: 26px;
        height: 26px;
    }
}
/* ==========================================================================
   SECCIÓN LEGAL DEL FOOTER
   ========================================================================== */
.footer-bottom-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.footer-bottom-info p {
    margin: 0;
    color: var(--text-soft, #6a5f55);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-legal a {
    color: var(--text-soft, #6a5f55);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-legal a:hover {
    color: var(--gold, #c5a059);
    opacity: 1;
}

.legal-sep {
    color: var(--gold, #c5a059);
    font-size: 0.7rem;
    opacity: 0.5;
}

/* Ajuste responsive para celulares */
@media (max-width: 576px) {
    .footer-legal {
        flex-direction: column;
        gap: 6px;
    }
    
    .legal-sep {
        display: none; /* Escondemos el punto separador en vertical */
    }
}
