/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --verde-caribe: #2A9D8F;
    --azul-profundo: #264653;
    --arena-calida: #E9C46A;
    --coral: #F4A261;
    --blanco-roto: #F8F9FA;
    --madera: #8B4513;
    --gris-claro: #e0e0e0;
    --sombra: rgba(0, 0, 0, 0.1);
    --transicion: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--blanco-roto);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--azul-profundo);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--azul-profundo);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--verde-caribe);
    margin: 10px auto 30px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

/* Selector de idioma */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 20px;
    box-shadow: 0 3px 10px var(--sombra);
}

.lang-btn {
    background: none;
    border: 1px solid var(--verde-caribe);
    color: var(--verde-caribe);
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transicion);
}

.lang-btn.active {
    background: var(--verde-caribe);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: rgba(42, 157, 143, 0.1);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transicion);
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px var(--sombra);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--verde-caribe);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--azul-profundo);
    font-weight: 500;
    transition: var(--transicion);
    position: relative;
}

.nav-link:hover {
    color: var(--verde-caribe);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--verde-caribe);
    transition: var(--transicion);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-reserva {
    background: var(--coral);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transicion);
    border: none;
    cursor: pointer;
}

.btn-reserva:hover {
    background: var(--verde-caribe);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(244, 162, 97, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--azul-profundo);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('assets/images/hero-piscina.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 70px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-btn {
    display: inline-block;
    background: var(--verde-caribe);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transicion);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btn:hover {
    background: var(--coral);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, var(--azul-profundo));
    opacity: 0.3;
}

/* Sección La Casa */
.casa-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 2rem;
}

.casa-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Habitaciones */
.habitaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.habitacion-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--sombra);
    transition: var(--transicion);
}

.habitacion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.habitacion-info {
    padding: 25px;
}

.habitacion-info h3 {
    margin-bottom: 10px;
    color: var(--azul-profundo);
}

.habitacion-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.habitacion-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--verde-caribe);
}

.habitacion-features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-habitacion {
    display: inline-block;
    background: var(--verde-caribe);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transicion);
    text-align: center;
    width: 100%;
    border: none;
    cursor: pointer;
}

.btn-habitacion:hover {
    background: var(--coral);
}

.btn-primary {
    display: inline-block;
    background: var(--verde-caribe);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transicion);
    border: 2px solid var(--verde-caribe);
}

.btn-primary:hover {
    background: transparent;
    color: var(--verde-caribe);
}

/* Mapa Interactivo */
.mapa-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 2rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--sombra);
}

#mapa-villanueva {
    height: 400px;
    width: 100%;
}

.mapa-leyenda {
    padding: 25px;
    background: #f9f9f9;
}

.mapa-leyenda h3 {
    margin-bottom: 20px;
    color: var(--azul-profundo);
}

.mapa-leyenda ul {
    list-style: none;
    margin-bottom: 20px;
}

.mapa-leyenda li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leyenda-note {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Reservas */
.reservas-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 3rem;
}

.opcion-reserva {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--sombra);
    transition: var(--transicion);
}

.opcion-reserva:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.opcion-icon {
    font-size: 2.5rem;
    color: var(--verde-caribe);
}

.opcion-text h4 {
    margin-bottom: 10px;
    color: var(--azul-profundo);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: var(--transicion);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
}

.btn-googleform {
    display: inline-block;
    background: var(--coral);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: var(--transicion);
}

.btn-googleform:hover {
    background: var(--verde-caribe);
    transform: translateY(-3px);
}

/* =========================================== */
/* FOOTER - VERSIÓN CORREGIDA (BUENA ACCESIBILIDAD) */
/* =========================================== */

.footer {
    background: linear-gradient(135deg, #1e3c4e 0%, #2a5d7a 100%);
    color: #f0f8ff;
    padding: 60px 0 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--verde-caribe) 0%, 
        var(--arena-calida) 33%, 
        var(--coral) 66%, 
        var(--verde-caribe) 100%);
    z-index: 1;
}

.footer::after {
    content: '🏝️';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 2rem;
    opacity: 0.1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.footer-col h3 {
    color: var(--arena-calida);
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(233, 196, 106, 0.4);
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--verde-caribe);
}

/* TEXTO MEJORADO - MÁS CONTRASTE */
.footer-col p {
    margin-bottom: 12px;
    color: #e6f2ff; /* Azul muy claro para mejor contraste */
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-col a {
    color: #b3d9ff; /* Azul claro para enlaces */
    text-decoration: none;
    transition: var(--transicion);
}

.footer-col a:hover {
    color: var(--arena-calida);
    padding-left: 5px;
}

/* ICONOS MÁS VISIBLES */
.footer-col i {
    color: var(--arena-calida); /* Color arena para mejor visibilidad */
    margin-right: 10px;
    width: 20px;
}

/* Iconos sociales mejorados */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: var(--transicion);
}

.social-links a:hover {
    background: var(--verde-caribe);
    transform: translateY(-5px) rotate(5deg);
    color: white;
}

.social-links a:nth-child(2):hover {
    background: #4267B2; /* Facebook */
}

.social-links a:nth-child(1):hover {
    background: #E4405F; /* Instagram */
}

.social-links a:nth-child(3):hover {
    background: #000000; /* TikTok */
}

.social-links a:nth-child(4):hover {
    background: #FF5A5F; /* Airbnb */
}

/* HASHTAG MÁS VISIBLE */
.footer-note {
    margin-top: 20px;
    font-style: italic;
    color: var(--arena-calida);
    font-size: 0.95rem;
    background: rgba(233, 196, 106, 0.15);
    padding: 8px 15px;
    border-radius: 15px;
    display: inline-block;
}

/* FOOTER BOTTOM - CENTRADO Y CON MEJOR LEGIBILIDAD */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    position: relative;
    margin-top: 40px;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--arena-calida) 50%, 
        transparent 100%);
}

/* TEXTO DEL FOOTER BOTTOM MÁS LEGIBLE */
.footer-bottom p {
    color: #e6f2ff; /* Texto más claro */
    margin: 8px 0;
    font-size: 0.95rem;
    font-weight: 400;
}

.footer-bottom .credits {
    color: var(--arena-calida);
    font-size: 0.9rem;
    margin-top: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px 20px;
    background: rgba(233, 196, 106, 0.15);
    border-radius: 20px;
}

.footer-bottom .credits::before,
.footer-bottom .credits::after {
    content: '✨';
    color: var(--arena-calida);
    font-size: 1rem;
}

/* Ola decorativa más sutil */
.wave-decoration {
    position: absolute;
    bottom: 180px;
    left: 0;
    right: 0;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23E9C46A' opacity='0.15'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
}

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

@media (max-width: 768px) {
    /* Menú móvil */
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 40px;
        transition: var(--transicion);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    /* Hero responsive */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* Secciones responsive */
    .casa-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .mapa-container {
        grid-template-columns: 1fr;
    }
    
    .reservas-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Footer responsive */
    .footer {
        padding: 40px 0 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        padding: 25px 15px;
        min-height: 120px;
    }
    
    .footer-bottom::before {
        width: 150px;
    }
    
    .center-decoration {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .wave-decoration {
        bottom: 160px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .habitaciones-grid {
        grid-template-columns: 1fr;
    }
    
    .language-switcher {
        top: 15px;
        right: 15px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Animaciones para elementos al hacer scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation: fadeInUp 0.6s ease forwards;
}

/* Clases de utilidad */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Estilos para imágenes placeholder */
.image-placeholder {
    background: linear-gradient(45deg, var(--arena-calida), var(--coral));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-profundo);
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

/* Mejoras de accesibilidad para focus */
button:focus,
a:focus,
input:focus {
    outline: 2px solid var(--verde-caribe);
    outline-offset: 3px;
}

/* Estilos para modo de alto contraste */
@media (prefers-contrast: high) {
    .footer {
        background: #1a3340;
    }
    
    .footer-col p,
    .footer-bottom p {
        color: white;
    }
}