/* =====================================================
   GLOBAL VARIABLES & RESET
===================================================== */
:root {
    --main-color: #736454;
    --bg-color: #5a4d3e;
    --primary: #736454;
    --secondary: #8a7a68;
    --black: #222;
    --white: #fff;
    --gray: #717171;
    --yellow: #ffd700;
    --green: #90ee90;
    --light-bg: #f8f8f8;
    --box-shadow: 0 .5rem 1rem rgba(0,0,0,.10);
}


.container_reviews{
   
    padding-right: 30px;
    padding-left: 30px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    border: none;
}


.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: 0.3s ease;
}

.contact-item:hover {
    color: var(--green);
}

.contact-item ion-icon {
    font-size: 2rem;
    color: var(--green);
}


h1.paragraph-style {
  font-size: 2rem;      /* Resets to standard body text size (usually 16px) */
  font-weight: normal;  /* Removes the default bold heading weight */
  margin: 1em 0;        /* Applies standard paragraph top and bottom spacing */
  line-height: 1.5;     /* Sets a typical paragraph line height */
  font-style: italic;
  
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: #ffffff;
    color: var(--black);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
}

p {
    line-height: 1.7;
   font-family: 'Cormorant Garamond', serif;
}

/* =====================================================
   OFFERS BAR
===================================================== */
.offers {
    background: var(--yellow);
    text-align: center;
    padding: 1rem;
    position: relative;
    z-index: 1001;
}

.offers h4 {
    font-size: 2rem;
    color: var(--black);
}

.offers a {
    color: #d60000;
    font-weight: 700;
}

.parpadea {
    animation: parpadeo 1s infinite;
}

@keyframes parpadeo {
    0% { opacity: 1; }
    50% { opacity: .2; }
    100% { opacity: 1; }
}

/* =====================================================
   HEADER & NAVBAR
===================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(34,34,34,.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 7%;
    box-shadow: var(--box-shadow);
}

.logo img {
    height: 6rem;
    display: block;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar a {
    color: var(--white);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: .3s;
    position: relative; 
}

.navbar a:hover {
    color: var(--green);
    border-bottom: 1px solid green;
}

/* NEW: The Subtle Divider Line */
.navbar a:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1rem; 
    transform: translateY(-50%); 
    width: 1px; 
    height: 1.5rem; 
    background-color: rgba(255, 255, 255, 0.2); 
}

#menu-btn {
    display: none;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
}

/* =====================================================
   HERO VIDEO
===================================================== */
.hero-video {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.video-fondo {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* =====================================================
   EXPERIENCE SECTION (ANGLED SPLIT) - FIXED FOR TEXT
===================================================== */
#experience {
    width: 100%;
    position: relative;
    /* CAMBIO 1: Eliminado 'height: 700px' y 'overflow: hidden'.
       Ahora el alto es automático basado en el contenido. */
    background-color: #000; /* Fondo negro por seguridad si la imagen tarda */
}

.angled-split {
    position: relative;
    width: 100%;
    /* CAMBIO 2: Usamos Flexbox para asegurar que ambos paneles tengan
       LA MISMA altura, dictada por el panel con MÁS texto. */
    display: flex;
    align-items: stretch; /* Estira ambos paneles verticalmente */
    min-height: 600px; /* Un alto mínimo estético, pero crecerá si se necesita */
}

.panel {
    /* CAMBIO 3: Ya no son 'position: absolute'.
       Son elementos flex relativos para que empujen el alto del contenedor. */
    position: relative;
    flex: 1; /* Cada panel toma el 50% del ancho */
    overflow: hidden;
}

.panel img {
    position: absolute; /* La imagen sí es absoluta para cubrir el panel */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 1;
}

.panel:hover img {
    transform: scale(1.05);
}

.overlay {
    position: relative; /* Relativo para estar sobre la imagen */
    z-index: 2; /* Sobre la imagen */
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el contenido verticalmente si hay espacio extra */
    align-items: center;
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.5); /* Un poco más oscuro para asegurar legibilidad */
    /* CAMBIO 4: Padding vertical generoso para que el texto respire
       y no toque los bordes del clip-path. */
    padding: 80px 40px; 
}

/* Contenedor interno opcional para controlar el ancho máximo del texto */
.text-content {
    max-width: 500px;
}

.overlay h2 {
    font-size: 3.5rem; /* Un poco más grande para jerarquía */
    margin-bottom: 20px;
    /* CAMBIO 5: Sombra de texto para legibilidad extrema */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.overlay-text {
    text-align: justify;
    font-size: 1.8rem;
    line-height: 1.8;
    /* CAMBIO 5: Sombra de texto para legibilidad extrema */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* --- Lógica del Diseño Diagonal (Clip-Path) --- */

/* Panel Izquierdo */
.panel.left {
    z-index: 2;
    /* Mismo corte diagonal, pero ahora aplicado a un elemento flex */
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    /* CAMBIO 6: Margen negativo derecho para "encimar" el corte
       sobre el panel derecho y que no se vea hueco. */
    margin-right: -10%; 
}

/* Panel Derecho */
.panel.right {
    z-index: 1;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

/* =====================================================
   RESPONSIVE DESIGN (Correciones para Experiencia)
===================================================== */
/* Ya tiene un @media (max-width: 991px), asegúrese de que la parte
   de #experience se vea así: */

@media (max-width: 991px) {
    /* ... otros estilos de navbar ... */

    /* Fixed Angled Split for Mobile */
    .angled-split {
        height: auto;
        display: flex;
        flex-direction: column; /* Apilar en móvil */
    }
    
    .panel {
        /* Volver a ancho completo */
        width: 100%;
        min-height: 400px; /* Alto mínimo en móvil */
        height: auto; /* Permitir que crezca con el texto */
        clip-path: none !important; /* Eliminar cortes diagonales */
        margin-right: 0 !important; /* Resetear margen negativo */
    }
    
    .panel.left, .panel.right {
        left: auto;
        right: auto;
    }

    .overlay {
        padding: 60px 20px; /* Reducir padding en móvil */
        background: rgba(0,0,0,0.6); /* Más oscuro en móvil */
    }
}

/* =====================================================
   RENTALS SECTION
===================================================== */
.rentals-section {
    margin-bottom: 30px; 
    background: #fff;
    padding-top: 4rem;
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title h2 {
    font-size: 6rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 2.2rem;
    color: var(--gray);
}

.properties-container {
    max-width: 1600px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(280px, 1fr));
    gap: 3rem;
    padding: 0 2rem;
}

/* Property Cards */
.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
    transition: .3s ease;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,.15);
}

.slider {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform .5s ease;
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slider Controls */
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: #222;
    cursor: pointer;
    z-index: 50;
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-prev:hover, .slider-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.08);
}

.content {
    padding: 2rem;
}

.title {
    font-size: 2.8rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

.description {
    font-size: 1.7rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Calendar Button */
.calendar-btn {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--main-color);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

.calendar-btn:hover {
    background: var(--bg-color);
    transform: scale(1.08);
}

/* =====================================================
   MODAL & CALENDAR
===================================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 40%;
    max-width: 900px;
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    animation: modalFade .3s ease;
}

@keyframes modalFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 4rem;
    cursor: pointer;
    color: #666;
}

.close:hover { color: #000; }

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 4rem;
    color: var(--main-color);
    margin-bottom: .5rem;
}

.modal-header p {
    font-size: 1.8rem;
    color: var(--gray);
}

#calendar { width: 100%; }

.flatpickr-calendar.inline {
    width: 100% !important;
    box-shadow: none !important;
}

.flatpickr-day.selected {
    background: var(--main-color) !important;
    border-color: var(--main-color) !important;
}

.flatpickr-day.inRange {
    background: rgba(115,100,84,.20) !important;
    border-color: rgba(115,100,84,.20) !important;
}

/* Booking Cards */
.booking-info {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.booking-card {
    flex: 1;
    min-width: 220px;
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 12px;
}

.booking-card strong {
    display: block;
    font-size: 1.8rem;
    margin-bottom: .8rem;
    color: var(--main-color);
}

.booking-card span {
    font-size: 1.6rem;
    color: var(--black);
}

.booking-action {
    margin-top: 3rem;
    text-align: center;
}

.reserve-btn {
    padding: 1.4rem 3rem;
    background: var(--main-color);
    color: white;
    font-size: 1.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.reserve-btn:hover {
    background: var(--bg-color);
}

/* =====================================================
   FOOTER (Consolidated)
===================================================== */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    padding: 80px 8%;
    background: #111;
    color: white;
}

.footer-content {
    flex: 1;
}

.footer-content h3 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.footer-content p {
    font-size: 1.8rem;
    color: rgba(255,255,255,.7);
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    transition: .3s;
}

.footer-social a:hover {
    transform: translateY(-3px);
    color: var(--green);
}

.footer-map {
    flex: 1;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.3);
}

.footer-map iframe {
    width: 100%;
    height: 100%;
}
.overlay-text {
    /* Añadimos una sombra suave al texto para que resalte sobre cualquier imagen */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.overlay h2 {
    /* Reforzamos el título */
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9);
}
/* =====================================================
   RESPONSIVE DESIGN
===================================================== */
@media (max-width: 1200px) {
    .properties-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    #menu-btn {
        display: block;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(34,34,34,.98);
        display: none;
        flex-direction: column;
        padding: 2rem;
    }
    
    .navbar.active {
        display: flex;
    }
    
    .navbar a {
        margin: 1rem 0;
    }

    /* Fixed Angled Split for Mobile */
    .angled-split {
        height: auto;
        display: flex;
        flex-direction: column;
    }
    
    .panel {
        position: relative;
        width: 100%;
        height: 400px;
        clip-path: none !important; /* Removes the slant so panels stack perfectly on mobile */
    }
    
    .panel.left, .panel.right {
        left: auto;
        right: auto;
    }


    .overlay {
        /* Aumentamos el oscurecimiento en móviles para compensar la luz solar en pantallas pequeñas */
        background: rgba(0, 0, 0, 0.6) !important;
        padding: 40px 20px !important;
    }


    
}

@media (max-width: 768px) {
    .properties-container {
        grid-template-columns: 1fr;
    }
    
    .slider {
        height: 240px;
    }
    
    .booking-info {
        flex-direction: column;
    }
    
    .section-title h2 {
        font-size: 4rem;
    }
    
    .modal-content {
        padding: 2rem;
        width: 90%; /* Make modal fit screen on mobile */
    }

    .footer {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-map {
        width: 100%;
        height: 250px;
    }




    
}