/* Variables de Color */

:root {
    --primary-blue: #003366;
    --accent-blue: #00a8cc;
    --light-bg: #f8fafd;
    --white: #ffffff;
    --text-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
}


/* Navegación */

header {
    background: var(--white);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 2px;
}

.logo-icon {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.btn-contacto {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
}


/* Hero Section */

.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 51, 102, 0.5), rgba(0, 51, 102, 0.5)), url('https://images.unsplash.com/photo-1499793983690-e29da59ef1c2?auto=format&fit=crop&w=1500&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.btn-primary {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--accent-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}


/* Secciones Generales */

.container {
    padding: 4rem 5%;
}

.section-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
}


/* Grid de Casas */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-info {
    padding: 1.5rem;
}

.price {
    display: block;
    margin-top: 1rem;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.2rem;
}


/* Servicios */

.services {
    background: var(--light-bg);
}

.service-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 8px;
}


/* Footer */

footer {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 4rem 5%;
}


/* Responsivo */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    /* Aquí podrías agregar un menú hamburguesa */
    .hero-content h1 {
        font-size: 2.2rem;
    }
}


/* Animación suave para el Logo */

.logo {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
}


/* Efecto Reveal en imágenes de las casas */

.card-img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-img {
    transform: scale(1.1);
    /* La imagen se acerca suavemente al pasar el mouse */
}


/* Animación de "Pulso" para el botón de contacto */

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-contacto {
    animation: pulse 2s infinite;
    /* El botón siempre tendrá un movimiento sutil */
}

.btn-contacto:hover {
    animation: none;
    background: var(--accent-blue);
}


/* Línea animada bajo los enlaces del menú */

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero-content h1 {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}


/* Estilos del Preloader */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Siempre por encima de todo */
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-content {
    text-align: center;
    color: var(--white);
}

.wave-logo {
    font-size: 4rem;
    color: var(--accent-blue);
    animation: wave-animation 1.5s infinite ease-in-out;
    display: inline-block;
}

.loader-content h2 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 5px;
    margin-top: 10px;
}

.loading-bar {
    width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 100%;
    background: var(--accent-blue);
    left: -40px;
    animation: loading-slide 1s infinite linear;
}


/* Animaciones */

@keyframes wave-animation {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

@keyframes loading-slide {
    0% {
        left: -40px;
    }
    100% {
        left: 100px;
    }
}


/* Clase para ocultar el preloader */

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}


/* Sección de Contacto Moderno */

.contact-section {
    background: linear-gradient(135deg, #f8fafd 0%, #e0f7fa 100%);
    padding: 6rem 5%;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    /* Efecto de vidrio */
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.contact-details {
    list-style: none;
    margin-top: 2rem;
}

.contact-details li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}


/* Estilo de los Inputs Animados */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    outline: none;
    font-size: 1rem;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #999;
    pointer-events: none;
    transition: 0.3s;
}


/* Animación del label al escribir */

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -0.7rem;
    left: 0.8rem;
    font-size: 0.8rem;
    background: var(--accent-blue);
    color: white;
    padding: 0 0.5rem;
    border-radius: 4px;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(0, 168, 204, 0.2);
}

.btn-send {
    background: var(--primary-blue);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.btn-send:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}


/* Responsivo para el formulario */

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}


/* Sección Testimonios */

.testimonials {
    background-color: var(--white);
    padding: 5rem 0;
}

.swiper {
    width: 100%;
    padding-bottom: 3rem !important;
    /* Espacio para los puntos de paginación */
}

.testimonial-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 168, 204, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.05);
}

.stars {
    color: #f1c40f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.testimonial-card h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-blue);
    margin-bottom: 0.2rem;
}

.testimonial-card span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
}


/* Personalizar los puntos del carrusel */

.swiper-pagination-bullet-active {
    background: var(--accent-blue) !important;
}


/* Estilos Parallax */

.parallax-section {
    position: relative;
    height: 450px;
    /* Altura de la sección */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    /* La magia del Parallax */
    background-image: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1500&q=80');
    background-attachment: fixed;
    /* Mantiene la imagen fija mientras el contenido sube */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.4);
    /* Capa azulada para que el texto sea legible */
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    padding: 0 10%;
}

.parallax-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.parallax-content p {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 300;
}


/* Ajuste para dispositivos móviles (el parallax fixed suele desactivarse en móviles por rendimiento) */

@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
        /* Cambia a normal en móviles para suavidad */
        height: 300px;
    }
    .parallax-content h2 {
        font-size: 1.8rem;
    }
}


/* Botón Flotante WhatsApp */

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 15px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
    /* Animación de aparición con retraso */
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUpIn 0.8s forwards;
    animation-delay: 3s;
    /* Aparece 3 segundos después de cargar */
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    fill: white;
}

.whatsapp-text {
    margin-left: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
    animation: pulse-badge 2s infinite;
}


/* Animaciones */

@keyframes fadeUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-badge {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1) translateY(-5px);
}


/* Ocultar texto en móviles pequeños para que no estorbe */

@media (max-width: 480px) {
    .whatsapp-text {
        display: none;
    }
    .whatsapp-btn {
        padding: 15px;
        border-radius: 50%;
    }
}


/* Footer Estilizado */

.main-footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: #a0c4ff;
    max-width: 300px;
    margin-bottom: 2rem;
}

.footer-links h3,
.footer-newsletter h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #ddd;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}


/* Redes Sociales Animadas */

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
    transform: rotate(360deg) scale(1.2);
    background: var(--accent-blue);
}


/* Newsletter Form */

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    padding: 0.8rem;
    border-radius: 5px;
    border: none;
    flex: 1;
}

.newsletter-form button {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: white;
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #7a9cc6;
}


/* Responsivo */

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .footer-brand p {
        margin: 0 auto 2rem;
    }
    .social-links {
        justify-content: center;
    }
}


/* Estilos para la nueva sección de servicios */

.services {
    background: #f0f7ff;
    padding: 6rem 0;
    text-align: center;
}

.section-subtitle {
    margin-top: -2rem;
    margin-bottom: 3rem;
    color: #666;
    font-style: italic;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 5%;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.05);
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-15px);
    border-bottom: 4px solid var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}


/* Ajuste de colores para iconos específicos */

.service-card:nth-child(even) {
    background: #ffffff;
}

.btn-reserva {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.service-card:hover .btn-reserva {
    background: var(--accent-blue);
    color: white;
}


/* Centrar la última tarjeta si queda sola en una fila */

@media (min-width: 1024px) {
    .services-grid {
        justify-items: center;
    }
}


/* Estilos Página de Detalle */

.property-gallery {
    height: 60vh;
    background: #000;
}

.detailSwiper img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
}

.property-main {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.property-header {
    background: white;
    padding: 2rem;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-header h1 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-blue);
    font-size: 2.5rem;
}

.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
}

.feature-item {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid #eee;
}

.amenities-list {
    padding-left: 1.2rem;
    color: #555;
}

.ref-code {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #999;
    text-align: center;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .property-header {
        flex-direction: column;
        text-align: center;
    }
}

.detailSwiper .swiper-slide a {
    cursor: zoom-in;
    display: block;
    width: 100%;
    height: 100%;
}


/* Efecto sutil de oscurecimiento al pasar el mouse sobre la foto principal */

.detailSwiper .swiper-slide:hover img {
    filter: brightness(0.9);
    transition: 0.3s;
}

.property-location h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

#map-container iframe {
    display: block;
    filter: grayscale(0.2) contrast(1.1);
    /* Un toque sutil para que encaje con el diseño */
    transition: filter 0.3s ease;
}

#map-container:hover iframe {
    filter: grayscale(0);
    /* Se vuelve a color normal al interactuar */
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 1rem;
}

.mini-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}

.mini-grid img:hover {
    transform: scale(1.05);
}


/* --- Estilos Responsive --- */


/* Ocultar el botón de menú en pantallas grandes */

.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        /* Mostrar en móviles */
    }
    .nav-links {
        position: absolute;
        top: 70px;
        right: -100%;
        /* Escondido a la derecha */
        background: white;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    .nav-links.active {
        right: 0;
        /* Aparece al hacer clic */
    }
    .nav-links li {
        margin: 20px 0;
    }
    /* Animación X de la hamburguesa */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    /* Ajustes de secciones en móvil */
    .hero h1 {
        font-size: 2.2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .grid,
    .services-grid {
        grid-template-columns: 1fr !important;
        /* Una sola columna en móvil */
        padding: 0 20px;
    }
}


/* --- Estilos del Acordeón FAQ --- */

.faq-section {
    background: var(--white);
    padding: 4rem 0;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    transition: 0.3s;
    text-align: left;
}

.accordion-header:hover {
    color: var(--accent-blue);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--light-bg);
}

.accordion-body p {
    padding: 1.5rem;
    color: #666;
    line-height: 1.6;
}


/* Estado Activo */

.accordion-item.active .accordion-body {
    max-height: 200px;
    /* Ajusta según el largo del texto */
}

.accordion-item.active .icon {
    transform: rotate(45deg);
    color: var(--accent-blue);
}

.icon {
    font-size: 1.5rem;
    transition: 0.3s;
}

.map-section {
    padding-top: 2rem;
    background: var(--white);
}

.map-info {
    text-align: center;
    margin-bottom: 2rem;
}

.map-info h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.google-map-container {
    width: 100%;
    line-height: 0;
    /* Elimina espacio extra debajo del iframe */
}

.google-map-container iframe {
    filter: grayscale(0.1) contrast(1.1);
    /* Un estilo sutil para integrarlo mejor */
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .google-map-container iframe {
        height: 300px;
        /* Más pequeño en móviles para mejorar el scroll */
    }
}


/* --- Sección Casas Destacadas con Fondo Marino --- */

#casas {
    position: relative;
    padding: 6rem 0;
    /* Espaciado generoso arriba y abajo */
    /* Aquí está la magia:
       1. Primero, una capa degradada blanca semitransparente (rgba 0.85).
       2. Segundo, la imagen de las olas.
       El navegador apila las capas, por lo que el blanco queda encima de la foto.
    */
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95)), url('https://images.unsplash.com/photo-1505144808419-1957a94ca61e?auto=format&fit=crop&w=2000&q=80');
    /* Asegura que la imagen cubra todo el espacio sin deformarse */
    background-size: cover;
    /* Centra la imagen */
    background-position: center;
    /* OPCIONAL: Efecto Parallax.
       Si lo dejas en 'fixed', la imagen de fondo se queda quieta mientras haces scroll.
       Si prefieres que se mueva normal, cámbialo a 'scroll'. */
    background-attachment: fixed;
}


/* Aseguramos que el título y subtítulo resalten sobre el fondo claro */

#casas .section-title {
    color: var(--primary-blue);
    position: relative;
    z-index: 2;
    /* Asegura que el texto esté sobre el fondo */
}

#casas p {
    position: relative;
    z-index: 2;
}


/* Ajuste pequeño para que las tarjetas se sientan "flotando" sobre el agua */

#casas .grid {
    position: relative;
    z-index: 2;
    margin-top: 3rem;
}


/* Contenedor de la tarjeta (asegúrate de que tenga position relative) */

.service-card {
    position: relative;
    overflow: hidden;
    /* Esto es vital para que la arena no se salga de las esquinas */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 4rem;
    /* Espacio extra para que la arena no tape el botón */
}


/* Aseguramos que el contenido esté por encima de la arena */

.service-icon,
.service-card h3,
.service-card p,
.btn-reserva {
    position: relative;
    z-index: 2;
}


/* Forma de la Arena */

.sand-decoration {
    position: absolute;
    bottom: -10px;
    /* Un poco hundido para que se vea natural */
    left: 0;
    width: 100%;
    height: 60px;
    /* Altura de la duna */
    background-color: #f2e8cf;
    /* Color arena suave */
    opacity: 0.8;
    z-index: 1;
    /* Creamos una curva orgánica tipo duna */
    clip-path: ellipse(70% 100% at 50% 100%);
    transition: all 0.4s ease;
    background-image: url('https://www.transparenttextures.com/patterns/sandpaper.png');
}


/* Efecto al pasar el mouse */

.service-card:hover .sand-decoration {
    height: 80px;
    /* La arena "sube" un poco al interactuar */
    background-color: #ede0bc;
    /* Oscurece un poquito la arena */
    opacity: 1;
}


/* --- Decoraciones Playeras --- */


/* Palmeras */

.deco-palm {
    position: absolute;
    font-size: 5rem;
    opacity: 0.15;
    /* Muy sutil para no distraer */
    z-index: 1;
    pointer-events: none;
    /* Para que no interfieran con los clics */
    filter: sepia(0.5);
    /* Les da un toque más cálido/arena */
}

.palm-left {
    top: 50px;
    left: -20px;
    transform: rotate(-15deg);
}

.palm-right {
    top: 150px;
    right: -20px;
    transform: rotate(15deg);
}


/* Caracoles y Estrellas */

.deco-shell {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.5s ease;
}

.shell-1 {
    bottom: 10%;
    left: 5%;
    transform: rotate(20deg);
}

.shell-2 {
    top: 15%;
    right: 8%;
    transform: rotate(-10deg);
}


/* Animación sutil: que floten un poquito */

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.deco-shell {
    animation: float 6s ease-in-out infinite;
}


/* Ajuste para móviles: hacerlos más pequeños o quitarlos */

@media (max-width: 768px) {
    .deco-palm {
        font-size: 3rem;
        opacity: 0.1;
    }
    .deco-shell {
        display: none;
    }
    /* En móvil mejor quitamos los caracoles para limpiar espacio */
}


/* --- Estilos para el Logo en Imagen --- */

.logo-img {
    height: 90px;
    /* Ajusta esta altura según el diseño de tu logo */
    width: auto;
    /* Mantiene la proporción original */
    display: block;
    transition: transform 0.3s ease;
}


/* Efecto sutil al pasar el mouse */

.logo-img:hover {
    transform: scale(1.05);
}


/* Ajuste para el contenedor del logo */

.logo {
    display: flex;
    align-items: center;
    padding: 5px 0;
}


/* Ajuste para móviles: logo un poco más pequeño */

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
}


/* --- Estilos del Preloader --- */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    /* Fondo limpio */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Por encima de todo */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-content {
    text-align: center;
}

.loader-logo {
    width: 150px;
    /* Ajusta según tu logo */
    height: auto;
    animation: pulseLogo 2s ease-in-out infinite;
}


/* Barra de progreso sutil */

.loader-bar {
    width: 100px;
    height: 3px;
    background: #eee;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-blue);
    animation: loadingBar 1.5s infinite;
}


/* Animaciones */

@keyframes pulseLogo {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.7;
    }
}

@keyframes loadingBar {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}


/* Clase para ocultar el preloader */

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}


/* --- Forma de Onda Animada al fondo del Menú --- */

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 4px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path 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,3V0H0V49.75C51.26,72.1,136.12,86.06,211,76.44c58.21-7.47,79.1-14.5,110.39-20Z" fill="%230077be" opacity="0.3"></path></svg>');
    background-size: 50% 100%;
    animation: wave-move 15s linear infinite;
}

@keyframes wave-move {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.nav-links li a {
    position: relative;
    padding: 10px 15px;
    color: var(--primary-blue);
    font-weight: 500;
    z-index: 2;
}


/* --- Navbar Premium Animada --- */

.navbar {
    position: relative;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Efecto Cristal (Glassmorphism) */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Borde inferior con forma de onda sutil */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    overflow: hidden;
}


/* Brillo animado que recorre el menú (Efecto Reflejo de Agua) */

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100%;
    background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine-menu 8s infinite linear;
}

@keyframes shine-menu {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}


/* --- Forma de Onda Animada al fondo del Menú --- */

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 4px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path 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,3V0H0V49.75C51.26,72.1,136.12,86.06,211,76.44c58.21-7.47,79.1-14.5,110.39-20Z" fill="%230077be" opacity="0.3"></path></svg>');
    background-size: 50% 100%;
    animation: wave-move 15s linear infinite;
}

@keyframes wave-move {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}


/* Efecto de fondo animado para cada link */

.nav-links li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(0, 119, 190, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-links li a:hover::before {
    height: 100%;
    /* El fondo sube como una ola */
}

.nav-links li a:hover {
    color: var(--accent-blue);
}

.navbar.scrolled {
    padding: 0.5rem 5%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


/* --- Hero Slider Elegante --- */

.hero-slider-section {
    height: 100vh;
    /* Pantalla completa */
    width: 100%;
    position: relative;
}

.heroSwiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    /* Centra el contenido verticalmente */
    justify-content: center;
    /* Centra horizontalmente */
    position: relative;
}


/* Capa oscura superpuesta para mejorar la lectura del texto */

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 40, 0.6);
    /* Azul oscuro semi-transparente */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* El texto debe estar sobre el overlay */
    text-align: center;
    max-width: 800px;
    color: var(--white);
}


/* --- Animaciones de Entrada del Texto --- */


/* Inicialmente, el texto está oculto y desplazado hacia abajo */

.hero-title,
.hero-subtitle,
.hero-btns {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}


/* Cuando el slide está ACTIVO, el texto aparece */

.swiper-slide-active .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
    /* El título aparece primero */
}

.swiper-slide-active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
    /* El subtítulo después */
}

.swiper-slide-active .hero-btns {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
    /* El botón al final */
}


/* Estilos de Títulos (Ajusta según tus preferencias previas) */

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}


/* Personalización de los puntos de paginación */

.hero-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--white);
    opacity: 0.5;
    transition: 0.3s;
}

.hero-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-blue);
    /* Color de acento cuando está activo */
    transform: scale(1.2);
}


/* Ajuste Móvil */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
}


/* --- Transparencia Interactiva en Imágenes de Contenido --- */


/* Aplica a las imágenes dentro de las tarjetas de casas y la mini galería */

.property-card img,
.mini-grid img {
    opacity: 0.85;
    /* Inicialmente al 85% de opacidad (un poco transparentes) */
    transition: opacity 0.4s ease, transform 0.4s ease;
    /* Suavizamos la transición */
}


/* Al pasar el mouse, vuelven a la normalidad */

.property-card:hover img,
.mini-grid img:hover {
    opacity: 1;
    /* Opacidad total */
    /* Si ya tenías un efecto de 'scale' (zoom) al hover, asegúrate de mantenerlo aquí */
    transform: scale(1.05);
}


/* --- Estilos del Botón del Slider --- */

.hero-btns .btn-main {
    display: inline-block;
    padding: 16px 40px;
    /* Color principal: Azul Océano Profundo */
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    /* Bordes redondeados muy elegantes */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 119, 190, 0.3);
    position: relative;
    overflow: hidden;
}


/* Efecto de Brillo (Glow) al pasar el mouse */

.hero-btns .btn-main:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-5px);
    /* El botón sube ligeramente */
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}


/* El efecto de "lleno" que aparece al hacer hover */

.hero-btns .btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s;
}

.hero-btns .btn-main:hover::before {
    left: 100%;
}

@keyframes pulse-white {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}


/* Aplicamos el pulso solo cuando el slide está activo */

.swiper-slide-active .btn-main {
    animation: pulse-white 2s infinite;
}
/* Paleta de colores BlueHaven */
:root {
    --primary-blue: #0056b3;
    --light-blue: #e3f2fd;
    --dark-blue: #003366;
    --text-color: #333;
    --white: #ffffff;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    background-color: var(--bg-light);
}

/* Contenedor Principal */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section (Cabecera de la página) */
.about-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    border-radius: 0 0 50px 50px;
    margin-bottom: 50px;
}

.about-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Sección Misión y Visión (Tarjetas) */
.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-blue);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    color: var(--primary-blue);
    margin-top: 0;
}

/* Sección de Valores */
.values {
    background: var(--light-blue);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.values h2 {
    color: var(--dark-blue);
}

.values ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.values li {
    background: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    color: var(--primary-blue);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .about-hero h2 { font-size: 2rem; }
    .values ul { flex-direction: column; }
}
/* --- Ajustes de Layout para Imágenes --- */

/* Contenedor flexible para secciones con imagen y texto */
.section-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 80px;
}

/* Invierte el orden para un diseño en "Zig-Zag" */
.section-flex.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
}

.image-container {
    flex: 1;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.02);
}

/* --- Mejoras en Misión y Visión con iconos/imágenes pequeñas --- */
.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.card img {
    width: 60px;
    margin-bottom: 15px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section-flex, .section-flex.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .image-container {
        width: 100%;
    }
}
/* Animación de aparición suave */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-flex {
    animation: fadeInUp 1s ease-out forwards;
}

/* Efecto especial para las imágenes al pasar el mouse */
.image-container img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%); /* Un toque sutil de sobriedad */
}

.image-container img:hover {
    transform: scale(1.05) rotate(1deg);
    filter: grayscale(0%);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.3); /* Sombra azulada */
}
/* --- Sección Nosotros: Estilos Unificados --- */

#nosotros {
    padding: 6rem 5%;
    background-color: var(--white);
    overflow: hidden;
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Diseño de dos columnas para escritorio */
    gap: 4rem;
    align-items: center;
}

/* Contenedor del Slider de Imágenes */
.nosotrosSwiper {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.1);
    position: relative;
}

.nosotrosSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Contenido de Texto */
.nosotros-texto h2.section-title {
    text-align: left; /* Alineación a la izquierda para balancear con la imagen */
    margin-bottom: 1.5rem;
}

.nosotros-texto p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Cuadrícula de Características/Iconos */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas de iconos */
    gap: 1.5rem;
}

.val-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.val-item:hover {
    background: var(--white);
    border-left: 4px solid var(--accent-blue); /* Efecto de borde al pasar el mouse */
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.val-item i {
    font-size: 1.5rem;
    color: var(--accent-blue);
}

/* --- Ajustes Responsivos (Móviles) --- */

@media (max-width: 992px) {
    .nosotros-grid {
        grid-template-columns: 1fr; /* Una sola columna en tablets y móviles */
        gap: 3rem;
    }
    
    .nosotros-texto {
        text-align: center;
    }

    .nosotros-texto h2.section-title {
        text-align: center;
    }
    
    .nosotrosSwiper {
        height: 350px; /* Reducción de altura en móviles */
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr; /* Una sola columna de iconos en móviles pequeños */
    }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    #nosotros .grid {
        grid-template-columns: 1fr !important; /* Una sola columna en móvil */
        text-align: center;
    }
    
    .features {
        justify-items: start;
        display: inline-grid !important;
    }
}
/* Animación suave al pasar el mouse por la imagen */
.nosotros-img .img-wrapper {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nosotros-img:hover .img-wrapper {
    transform: translateY(-10px) scale(1.02);
}

/* Efecto en los items de valor */
.val-item {
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 0px solid var(--accent-blue);
}

.val-item:hover {
    background: var(--light-bg);
    border-left: 4px solid var(--accent-blue);
    padding-left: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
/* Personalización de los botones del slider de nosotros */
.nosotrosSwiper .swiper-button-next, 
.nosotrosSwiper .swiper-button-prev {
    background: rgba(0, 51, 102, 0.4); /* Fondo azul marino semitransparente */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nosotrosSwiper .swiper-button-next:hover, 
.nosotrosSwiper .swiper-button-prev:hover {
    background: var(--accent-blue);
}

.nosotrosSwiper .swiper-pagination-bullet-active {
    background: var(--accent-blue) !important;
}
/* --- Ajustes Responsivos Nosotros --- */

/* Base del Grid para escritorio */
.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.nosotrosSwiper {
    border-radius: 20px;
    height: 450px; /* Altura en escritorio */
}

/* Ajustes para Móviles (Pantallas menores a 768px) */
@media (max-width: 768px) {
    .nosotros-grid {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 2rem;
        text-align: center; /* Centramos el texto para mejor lectura */
    }

    .nosotrosSwiper {
        height: 300px; /* Reducimos la altura del slider en móvil */
        margin-bottom: 1rem;
    }

    .nosotros-texto h2.section-title {
        text-align: center;
        margin: 0 auto 1rem;
    }

    .nosotros-texto h3 {
        font-size: 1.5rem; /* Título un poco más pequeño */
    }

    .features-grid {
        grid-template-columns: 1fr 1fr; /* Mantenemos 2 columnas de iconos */
        gap: 1rem;
        text-align: left;
        display: inline-grid; /* Centra el bloque de iconos */
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
}

/* Ajuste para móviles muy pequeños */
@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr; /* Una sola columna de iconos si es muy angosto */
    }
    
    #nosotros {
        padding: 40px 15px; /* Menos espacio lateral */
    }
}
/* Barra Lateral de Redes Sociales */
.social-side-bar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999; /* Asegura que esté por encima de todo */
    display: flex;
    flex-direction: column;
}

.icon-social {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 12px;
    width: 45px; /* Tamaño inicial (solo icono) */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--primary-blue);
    color: white;
    margin-bottom: 2px;
    border-radius: 0 5px 5px 0; /* Bordes redondeados solo a la derecha */
}

/* Colores específicos */
.icon-social.fb { background-color: #3b5998; }
.icon-social.ig { background-color: #e4405f; }
.icon-social.wa { background-color: #25d366; }
.icon-social.em { background-color: var(--accent-blue); }

.icon-social i {
    font-size: 1.2rem;
    min-width: 25px;
    text-align: center;
}

.icon-social .label {
    margin-left: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

/* Efecto Hover: Se expande y muestra el texto */
.icon-social:hover {
    width: 140px; /* Se ensancha al pasar el mouse */
    box-shadow: 4px 0 15px rgba(0,0,0,0.2);
}

.icon-social:hover .label {
    opacity: 1;
}

/* Ocultar en móviles muy pequeños para no estorbar el contenido */
@media (max-width: 600px) {
    .social-side-bar {
        display: none; 
    }
}
/* Color específico para TikTok */
.icon-social.tt {
    background-color: #010101; /* Negro puro de TikTok */
    border-bottom: none;
}

/* Efecto de color al pasar el mouse (opcional para darle más vida) */
.icon-social.tt:hover {
    background-color: #25F4EE; /* El cian característico de TikTok */
    color: #fe2c55; /* El magenta característico de TikTok en el icono */
}
/* Contenedor principal flotante */
.social-side-bar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999; /* Por encima de todo */
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Estilo base de los botones */
.ss-icon {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 12px;
    width: 46px; /* Solo se ve el icono inicialmente */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    border-radius: 0 8px 8px 0; /* Redondeado solo a la derecha */
    background: var(--primary-blue);
}

/* Colores de marca */
.ss-icon.fb { background-color: #3b5998; }
.ss-icon.ig { background-color: #e4405f; }
.ss-icon.tt { background-color: #000000; }

/* Iconos */
.ss-icon i {
    font-size: 1.2rem;
    min-width: 22px;
    text-align: center;
}

/* Texto oculto */
.ss-label {
    margin-left: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

/* Efecto Hover: expansión lateral */
.ss-icon:hover {
    width: 150px; /* Se expande para mostrar el nombre */
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
}

.ss-icon:hover .ss-label {
    opacity: 1;
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    .social-side-bar {
        /* En móvil los hacemos más pequeños o los movemos si estorban */
        top: auto;
        bottom: 20px;
        transform: none;
    }
    .ss-icon {
        width: 40px;
        padding: 10px;
    }
    .ss-icon:hover {
        width: 40px; /* Desactivamos expansión en móvil para evitar toques accidentales */
    }
    .ss-label {
        display: none;
    }
}
/* Estilo del Botón Airbnb */
.btn-airbnb {
    background-color: #FF5A5F; /* Color oficial de Airbnb */
    color: white !important;
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s, background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-airbnb:hover {
    background-color: #e34c51;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 90, 95, 0.3);
}

/* Ajuste de margen para la tarjeta de acción */
.action-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
