@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Allura&display=swap');
html{ scroll-behavior: smooth; }
body{ margin:0; padding-top:130px; overflow-x:hidden; background: white; font-family:'Caudex'; }

/* Espacio de respiro entre el header fijo y cada sección al hacer scroll o al llegar por enlace con # */
#Inicio, #Nosotros, #Productos, #Experiencias, #Contacto, #Testimonios {
    scroll-margin-top: 190px;
}
.topbar{ position:fixed; top:0; left:0; width:100%; height:50px; background:#ffcc9d; display:flex; justify-content:space-between; align-items:center; padding:0 40px; box-sizing:border-box; font-family: "Michroma", sans-serif; color:#666666; font-size:20px; z-index:10000; }
.hero{ position:relative; width:100%; height:550px; min-height:550px; overflow:hidden; }
.hero-overlay{ position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0) 70%); }
.main-header{ position:fixed; top:40px; left:0; width:100%; height:80px; background:#fffaf3; display:flex; justify-content:space-between; align-items:center; padding:0 40px; box-sizing:border-box; z-index:9999; box-shadow:0 2px 10px rgba(0,0,0,.08); }
.logo{ color:#fff; font-size:30px; font-weight:700; }
.logo-link{ display:flex; align-items:center; }
.logo-header{ height:55px; width:auto; display:block; }
.menu{ display:flex; align-items: center; gap:45px; }
.menu a{ color:#666666; text-decoration:none; font-size:20px; font-weight:bold; font-family: "Arial Narrow"; transition: color 0.6s ease, transform 0.6s ease; }
.menu a:hover{ color:#b6582c; transform: translateY(-2px); }
.btn-menu{ background:#b6582c; color:#f4f1ea; text-decoration:none; padding:14px 30px; border-radius:40px; font-weight:600; transition:0.6s; }
.btn-menu:hover{ background:#cda986; }
.hero-content{ position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; z-index:50; }
.hero-content h1{ color:#f4f1ea; font-size:70px; margin-bottom:5px; line-height:1.3; font-family: "Arial Bold", "Arial Black", Arial ,sans-serif;  font-weight: 900; letter-spacing: 4px }
.hero-content p{ color:#f4f1ea; font-size:50px; margin-bottom:30px; font-family: "Michroma", sans-serif; }
.hero-slider{ position:absolute; inset:0; overflow:hidden; display:flex; background: #f4f1ea;}
.slide{ min-width:100%; height:100%; background-size:cover; background-position:center; transition: transform 0.8s ease; position: absolute;}
.slide.active{ opacity:1; transform:scale(1); }
.btn-principal{ background:#b6582c; color:white; text-decoration:none; padding:18px 40px; font-weight:600; transition:0.6s; }
.btn-principal:hover{ background:#cda986; }
.arrow{ position:absolute; top:50%; transform:translateY(-50%); width:60px; height:60px; border-radius:50%; background:rgba(255,255,255,.25); display:flex; align-items:center; justify-content:center; color:white; font-size:30px; z-index:60; cursor:pointer; }
.arrow-left{ left:30px; }
.arrow-right{ right:30px; }
.section{ padding:100px 50px; max-width:1200px; margin:0 auto; overflow: hidden; }
.section-title{ text-align:center; margin-bottom:60px; }
.section-title h2{ font-size:42px; margin-top:0; }

.rooms{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.room{ position:relative; perspective: 1000px; border:2px solid white; border-radius:18px; overflow:hidden; background:white; cursor:pointer; height: 500px; transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease; }
.room:hover{ transform: translateY(-10px) scale(1.02); box-shadow:0 20px 40px rgba(0,0,0,0.25); }
.room-inner{ position:relative; width:100%; height:100%; transition: transform 0.8s; transform-style: preserve-3d;}
.room:hover .room-inner{ transform: rotateY(180deg); }
.room-front, .room-back{ position:absolute; width:100%; height:100%; text-align:center; backface-visibility:hidden; }
.room-front { display: flex; flex-direction: column; text-align: center; height: 100%;}
.room-front h3{ font-size:28px; margin:20px; }
.room-front img { width: 100%; height: 75%; object-fit: cover;}
.room-info {padding: 15px; display: flex; flex-direction: column; justify-content: center; flex-grow: 1;}
.room-info h3 {color: #bc4f3b; font-size: 35px; margin: 0; font-family: 'Michroma';}
.room-back {background: #bc4f3b; color: #f4f1ea; transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 30px; box-sizing: border-box;}
.room-back h3 { color: #f4f1ea; font-size: 28px; margin-bottom: 15px;}
.room-back p { font-size: 16px; margin-bottom: 20px; line-height: 1.5; font-family: 'Arial';}
.room-back button{ margin-top:15px; padding:10px 20px; border:none; border-radius:30px; background:#f4f1ea; color:#b6582c; font-weight:bold; cursor:pointer; text-align:center; font-size:16px; }

.scroll-bar{overflow: auto; overflow-y: scroll;}
.scroll-content {width: 100%; height: 100%; overflow-y: auto; padding: 30px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;}
.scroll-content::-webkit-scrollbar { width: 6px;}
.scroll-content::-webkit-scrollbar-thumb {background-color: #f4f1ea; border-radius: 10px;}
.scroll-content::-webkit-scrollbar-track {background: rgba(255, 255, 255, 0.1);}

.separator-overlay {position: absolute; top: 75.5%; left: 0; width: 100%; transform: translateY(-50%); z-index: 2; pointer-events: none; text-align: center;}
.separator-overlay img { width: 80%; height: auto; object-fit: contain; opacity: 0.9;}

.about-section { position: relative; padding: 100px 20px; overflow: hidden;}
.about-background-layer {position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(244, 241, 234, 0.8), #f4f1ea), url('https://casamariabonita.com.mx/inicio/wp-content/uploads/2026/06/LOFT1.avif'); background-size: cover; background-position: center; z-index: 0;}
.about-content {position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1000px; margin: 0 auto;}
.about-text p {color: #555;}
.about-section {padding: 80px 0; background-color: #f4f1ea;}
.about-content {display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px;}
.about-text .subtitle {color: #b6582c; font-weight: bold; letter-spacing: 1px; font-size: 14px;}
.about-text h2 {color: #845a3e; font-size: 40px; margin: 15px 0;}
.about-text .quote { font-style: italic; font-size: 24px; color: #555; margin-bottom: 20px;}

.phone-frame {width: 320px; height: 565px; background: #1a1a1a; border: 12px solid #845a3e; border-radius: 45px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.3); margin: 0 auto; position: relative;}
.phone-frame video {width: 100%; height: 100%; object-fit: cover; border-radius: 35px;}
.whatsapp-float{ position:fixed; bottom:25px; right:25px; width:60px; height:60px; background:#25D366; color:white; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:28px; text-decoration:none; box-shadow:0 10px 25px rgba(0,0,0,0.25); z-index:9999; transition:0.3s; }
.whatsapp-float:hover{ transform:scale(1.1); }
.whatsapp-float img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    display: block;
    object-fit: contain;
}

.details-link {color: #b6582c; font-weight: bold; margin-top: 5px; cursor: pointer; font-size:15px;}

.split-section{ display:flex; align-items:center; justify-content:center; gap:60px; padding:100px 60px; overflow: hidden; }
.split-image{ flex:1; display:flex; justify-content:center; }
.split-image img{ width:90%; max-width:500px; height:500px; object-fit:cover; border-radius:12px; }
.split-content{ flex:1; }
.split-line{ width:80px; height:3px; background:#bc4f3b; margin-bottom:20px; border-radius:10px; }
.split-content h2{ font-size:40px; margin-top:0; margin-bottom:20px; font-family: 'Arial Narrow';}
.split-content p{ color:#555; line-height:1.6; margin-bottom:30px; font-family: Arial;}
.split-content ul{ padding-left:18px; color:#666666; line-height:1.8; }
.split-btn{ display:inline-block; margin-top:25px; background:#b6582c; color:white; padding:14px 32px; border-radius:40px; text-decoration:none; font-weight:600; transition:0.6s; }
.split-btn:hover{ background:#cda986; }

.modal{ position:fixed; top:0; left:0; width:100%; height:100%; display:none; justify-content:center; align-items:center; background:rgba(0,0,0,0.7); backdrop-filter: blur(6px); z-index:9999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal.show { opacity: 1; pointer-events: auto; }
.modal-content{ background:#f4f1ea; width:90%; max-width:800px; border-radius:20px; overflow:hidden; animation:zoom .5s ease; position: relative; }
@keyframes zoom{ from{transform:scale(0.7); opacity:0;} to{transform:scale(1); opacity:1;} }
.modal-slider { position: relative; width: 100%; height: 350px; overflow: hidden; background: #000; }
.modal-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease-in-out; }
.modal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 45px; height: 45px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; cursor: pointer; z-index: 10; transition: 0.3s; user-select: none; }
.modal-arrow:hover { background: rgba(255, 255, 255, 0.6); }
.modal-arrow-left { left: 15px; }
.modal-arrow-right { right: 15px; }
.modal-info{ padding:25px; }
.modal-info h2{ margin:0 0 10px 0; color:#b6582c; }
.modal-info p{ color:#555; line-height:1.6; }

.close{ position:absolute; right:20px; top:15px; font-size:35px; cursor:pointer; color:white; z-index:100; background: rgba(0,0,0,0.4); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.line { width: 50px; height: 3px; background-color: #b6582c; margin-bottom: 20px;}

.video-wrapper { background: #333; border-radius: 40px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.3); height: 500px;}
.video-wrapper video { width: 100%;height: 100%; object-fit: cover;}
.video-hint { font-size: 13px; color: #845a3e; margin-top: 15px; text-align: center;}

.contact-full{ width:100%; background:#ffeed6; padding:110px 0; }
.contact-container{ max-width:1400px; margin:auto; display:grid; grid-template-columns:420px 1fr; gap:70px; padding:0 60px; box-sizing:border-box; }
.contact-left h2{ font-size:35px; margin-bottom:20px; color:#bc4f3b; font-family: 'Michroma';}
.contact-left p{ color:#666666; line-height:1.8; font-family: "Arial"; font-size: 20px;}
.contact-card{ margin-top:35px; }
.contact-card h4{ color:#bc4f3b; margin-bottom:8px; font-size:25px; font-family: 'Arial Black';}
.contact-right{ background:#fffaf3; padding:45px; border-radius:22px; box-shadow:0 20px 45px rgba(0,0,0,.08); }
.contact-right form{ display:flex; flex-direction:column; gap:20px; }
.contact-right input, .contact-right select, .contact-right textarea{ padding:18px 24px; border:2px solid #ed9133; border-radius:40px; background:transparent; font-family:'Arial Narrow'; font-size:16px; outline:none; transition:.3s; box-sizing:border-box; width:100%; }
.contact-right textarea{ min-height:180px; border-radius:25px; resize:vertical; }
.contact-right input:focus, .contact-right select:focus, .contact-right textarea:focus{ border-color:#b6582c; background:white; }
.contact-right input[readonly]{ cursor:pointer; background:#fff; }
.contact-right button{ background:#b6582c; color:#f4f1ea; border:none; padding:18px; border-radius:40px; font-family:'Arial Narrow'; font-weight: bold; font-size:20px; cursor:pointer; transition:.3s; }
.contact-right button:hover{ background:#ed9133; }
.contact-right button:disabled{ cursor:not-allowed; opacity:.6; }

.reviews-section{ padding:60px 50px; background:#f4f1ea; overflow:visible; }
.reviews-wrapper{ overflow:hidden; width:100%; padding:20px 0; }
.reviews-carousel{ display:flex; gap:25px; width:max-content; will-change: transform; }
.review-card{ min-width:320px; max-width:320px; background:white; border:2px solid #cda986; border-radius:18px; padding:25px; text-decoration:none; color:#333; display:flex; flex-direction:column; gap:10px; transition:0.3s; }
.review-card:hover{ transform: translateY(-6px) scale(1.02); }
.stars{ color:#b6582c; font-size:20px; }
.review-card p{ font-style:italic; line-height:1.5; }
.review-card strong{ color:#b6582c; }

.product-gallery-section { background: linear-gradient(to right, #ffcea6 0%, #ffffff 50%, #ffcea6 100%); padding: 80px 0px;}
.product-gallery-section .reviews-wrapper { padding: 0; overflow: hidden; width: 90%; max-width: 1200px; margin: 0 auto;}
.product-gallery-section .reviews-carousel { gap: 40px; justify-content: center; width: 100%; flex-wrap: wrap;}
.product-card { display: flex; flex-direction: column; align-items: center; width: 220px; background: transparent; border: none; padding: 0;}
.product-card:hover {transform: translateY(-5px); }
.product-image-container { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1);}
.product-image-container img { width: 100%; height: 100%; object-fit: cover;}
.product-title { font-family: 'Michroma'; font-size: 17px; font-weight: bold; color: #bc4f3b; text-transform: uppercase; margin-top: 10px; letter-spacing: 1px;}
.image-side-items { position: absolute; top: 0; right: 0; height: 100%; display: flex; flex-direction: column; justify-content: space-around; padding: 20px 0;}
.side-item { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.8); display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2);}
.side-item img { width: 60%; height: 60%; object-fit: contain;}

.flatpickr-calendar{ width:320px !important; font-family:'Caudex', serif !important; border-radius:18px !important; box-shadow:0 15px 40px rgba(132,90,62,.18) !important; border:2px solid #cda986 !important; }
.flatpickr-months .flatpickr-month{ color:#845a3e !important; fill:#845a3e !important; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month{ color:#b6582c !important; fill:#b6582c !important; }
span.flatpickr-weekday{ color:#845a3e !important; font-weight:700 !important; }
.flatpickr-day{ border-radius:8px !important; color:#845a3e !important; }
.flatpickr-day.today{ border-color:#b6582c !important; color:#b6582c !important; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange{ background:#b6582c !important; border-color:#b6582c !important; color:#fff !important; }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { background: #fde8e8 !important; color: #c0392b !important; text-decoration: line-through !important; opacity: 1 !important; cursor: not-allowed !important;}
.flatpickr-day.booked-day{ background: rgba(239,68,68,0.18) !important; color:#c0392b !important; border:1px solid rgba(239,68,68,.35) !important; text-decoration: line-through !important; cursor: not-allowed !important;}
.flatpickr-day.booked-day:hover{ background: rgba(239,68,68,.32) !important; }

.overlap-warning{ display:none; background:#fde8e8; border:1px solid #f0b4b4; color:#c0392b; padding:12px 18px; border-radius:16px; font-size:14px; font-weight:600;}
.overlap-warning.visible{ display:block; }
.cal-loading { display: none; align-items: center; gap: 10px; color: #845a3e; font-size: 15px;}
.cal-loading.visible { display: flex; }
.cal-spinner { width: 18px; height: 18px; border: 3px solid #cda986; border-top-color: #b6582c; border-radius: 50%; animation: spin 0.8s linear infinite;}

.modal-termometro {display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(4px); justify-content: center; align-items: center;}
.modal-termometro-content { position: relative; max-width: 90%; max-height: 85vh; transform: scale(0.75); opacity: 0; transition: transform 0.5s ease-out, opacity 0.5s ease-out; }
.modal-termometro.show .modal-termometro-content { transform: scale(1); opacity: 1;}
.modal-termometro-content img {max-width: 100%; max-height: 85vh; display: block; border-radius: 12px; background-color: #ffffff; padding: 15px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6); box-sizing: border-box;}
.close-termometro {position: absolute; top: -45px; right: 0; color: #ffffff; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.2s ease;}
.close-termometro:hover { color: #ff5252;}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==================================================================
  SOPORTE COMPLETO PARA DISPOSITIVOS MÓVILES (Celulares y Tablets)
  ==================================================================
*/
@media (max-width: 768px) {
    /* Ajuste estructural del body para compensar el menú en móviles */
    body { padding-top: 110px; }

    #Inicio, #Nosotros, #Productos, #Experiencias, #Contacto, #Testimonios {
        scroll-margin-top: 150px;
    }

    /* Reducción de la barra superior para pantallas pequeñas */
    .topbar { height: 40px; padding: 0 15px; font-size: 12px; justify-content: space-around; }

    /* Reajuste de la cabecera principal */
    .main-header { top: 40px; height: 70px; padding: 0 20px; justify-content: space-between; box-sizing: border-box; }
    .logo-header { height: 42px; }

    /* Se muestra el menú de manera vertical si se activa */
    .menu { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: #fffaf3; flex-direction: column; gap: 0; box-shadow: 0 8px 15px rgba(0,0,0,0.1); padding: 15px 0; }
    .menu.active { display: flex; }
    .menu a { width: 100%; padding: 12px 0; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.05); box-sizing: border-box; font-size: 18px; }
    .menu a:last-child { border-bottom: none; }
    .btn-menu { border-radius: 0; padding: 12px 0; width: 100%; text-align: center; }

    /* Botón de Hamburguesa para despliegue del menú */
    .menu-toggle { display: block !important; background: none; border: none; font-size: 28px; color: #666666; cursor: pointer; order: 2; }

    /* Adaptabilidad del Banner Principal (Hero) */
    .hero { height: 400px; min-height: 400px; }
    .hero-content h1 { font-size: 32px; padding: 0 15px; }
    .hero-content p { font-size: 22px; }
    .arrow { width: 45px; height: 45px; font-size: 20px; }
    .arrow-left { left: 10px; }
    .arrow-right { right: 10px; }

    /* Espaciados generales reducidos */
    .section { padding: 40px 20px; }
    .section-title h2 { font-size: 28px; margin-bottom: 30px; }

    /* Reestructuración de la cuadrícula de habitaciones/tarjetas */
    .rooms { grid-template-columns: 1fr; gap: 25px; }
    .room { height: 430px; }
    .room-front h3 { font-size: 22px; }
    .room-info h3 { font-size: 26px; }
    .room-back { padding: 20px; }
    .room-back h3 { font-size: 22px; }
    .room-back p { font-size: 14px; }

    /* Sección Quiénes Somos / Sobre Nosotros */
    .about-content { grid-template-columns: 1fr; gap: 40px; padding: 0 10px; }
    .about-text h2 { font-size: 28px; }
    .about-text .quote { font-size: 18px; }

    /* Ajuste de sección Dividida (split-section) */
    .split-section { flex-direction: column; gap: 30px; padding: 50px 20px; }
    .split-image img { width: 100%; height: 320px; max-width: 100%; }
    .split-content h2 { font-size: 28px; text-align: center; }
    .split-content p { font-size: 15px; text-align: justify; }

    /* Elemento simulador de celular (Phone Frame) */
    .phone-frame { width: 280px; height: 495px; border-width: 8px; }

    /* Reestructuración responsiva de Contacto y Reserva */
    .contact-container { grid-template-columns: 1fr; gap: 40px; padding: 0 20px; }
    .contact-left h2 { font-size: 28px; text-align: center; }
    .contact-left p { font-size: 16px; text-align: center; }
    .contact-card { text-align: center; margin-top: 20px; }
    .contact-card h4 { font-size: 20px; }
    .contact-right { padding: 25px 20px; border-radius: 15px; }
    .contact-right form { gap: 15px; }
    .contact-right input, .contact-right select, .contact-right textarea { padding: 14px 20px; font-size: 15px; }
    .contact-right button { padding: 15px; font-size: 18px; }

    /* Galería de productos */
    .product-gallery-section { padding: 40px 10px; }
    .product-gallery-section .reviews-carousel { gap: 20px; }
    .product-card { width: 160px; }
    .product-title { font-size: 14px; }

    /* Ajustes generales del modal adaptativo */
    .modal-content { width: 95%; max-height: 90vh; overflow-y: auto; }
    .modal-slider { height: 220px; }
    .modal-info { padding: 15px; }
    .modal-info h2 { font-size: 20px; }
    .modal-info p { font-size: 14px; }
    .close { width: 35px; height: 35px; font-size: 28px; right: 10px; top: 10px; }

    /* Termómetro del menú en tamaño móvil */
    .close-termometro { top: -35px; right: 5px; font-size: 32px; }
    .modal-termometro-content img { padding: 10px; }

   
}
    .whatsapp-float img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    display: block;
    object-fit: contain;
}