/* === CSS Variables: CONIC Digital Strategy & Growth Agency === */
/* Brand Identity Guidelines v1.0 - Mi Casita Tlaquepaque */
:root {
    /* Paleta Cromática Estricta */
    --color-primary: #C4622D; /* Terracota */
    --color-base: #F5EDD8; /* Crema (Fondo) */
    --color-white: #FFFFFF; /* Blanco */
    --color-ochre: #D4A843; /* Ocre artesanal */
    --color-accent-green: #6B8F71; /* Verde sage */
    --color-adobe: #8B5E3C; /* Adobe tierra */
    --color-accent-blue: #2E5FA3; /* Azul talavera */
    --color-turquoise: #4A9B8E; /* Turquesa */
    
    /* Neutros */
    --color-text: #1C1C1A; /* Carbón */
    --color-gray: #6B6B65; /* Gris medio */
    --color-border: #EDE4CF; /* Arena */

    /* Animaciones & UI */
    --shadow-warm: 0 12px 24px rgba(196, 98, 45, 0.08); /* 8% terracota opacity */
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Tipografía */
    --font-heading: 'Playfair Display', serif; 
    --font-body: 'Inter', sans-serif; 
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Escala Tipográfica (Brand Book) */
.display-text { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 700; line-height: 1.1; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--color-text); margin-bottom: 1rem; }
h2 { font-size: clamp(2.5rem, 4vw, 3rem); }
h3 { font-weight: 400; font-size: 1.75rem; margin-bottom: 0.8rem; }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.25rem; margin-bottom: 0.5rem; }

.body-l { font-size: 1.125rem; }
.caption-text { font-size: 0.8125rem; font-weight: 500; color: var(--color-gray); }

.adobe-text { color: var(--color-adobe); }

a { text-decoration: none; color: inherit; transition: var(--transition); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.center { text-align: center; }

/* === Texturas Visuales & Patrones === */
.franja-artesanal {
    height: 10px;
    width: 100%;
    background: linear-gradient(90deg, 
        var(--color-primary) 0%, var(--color-primary) 25%, 
        var(--color-ochre) 25%, var(--color-ochre) 50%, 
        var(--color-accent-green) 50%, var(--color-accent-green) 75%, 
        var(--color-accent-blue) 75%, var(--color-accent-blue) 100%);
    display: block;
}

.textura-barro {
    position: relative;
}
.textura-barro::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Pattern de SVG online genérico que simula ruido / barro */
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.04"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 1;
}

/* Tipografía Auxiliar & Tags */
.en-tag { font-size: 0.85em; opacity: 0.8; font-style: italic; }
.en-text { font-size: 0.95rem; opacity: 0.85; display: block; margin-top: 8px; font-weight: 400; }
.fomo-text { display: block; margin-top: 8px; color: var(--color-primary); font-weight: 600; font-size: 0.9rem; }

/* === Buttons === */
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 0.8rem 1.6rem; border-radius: var(--radius-lg);
    font-family: var(--font-body); font-size: 1rem; font-weight: 500;
    cursor: pointer; transition: var(--transition); border: 2px solid transparent;
}
.btn-primary { background-color: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background-color: #A35023; transform: translateY(-2px); box-shadow: var(--shadow-warm); }
.btn-outline { background-color: transparent; border-color: var(--color-white); color: var(--color-white); }
.btn-outline:hover { background-color: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn-ochre { background-color: var(--color-ochre); color: var(--color-text); padding: 1rem 2.5rem; font-weight: 600; box-shadow: var(--shadow-soft); }
.btn-ochre:hover { background-color: #BE9435; transform: scale(1.05); }

/* === Sticky Header === */
header {
    position: fixed; top: 10px; left: 0; width: 100%;
    background-color: var(--color-white); z-index: 1000; transition: var(--transition);
}
header.scrolled { top: 0; box-shadow: var(--shadow-soft); }
header.scrolled .nav-container { height: 70px; }
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 5%;
    display: flex; justify-content: space-between; align-items: center;
    height: 90px; transition: var(--transition);
}
.logo { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--color-primary); }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { font-weight: 500; color: var(--color-text); }
.nav-links a:hover { color: var(--color-primary); }
@media (max-width: 900px) { .nav-links { display: none; } }

@media (max-width: 600px) {
    header { top: 0; }
    .nav-container { height: 58px; padding: 0 4%; gap: 0.5rem; }
    .logo { font-size: 1.25rem; white-space: nowrap; }
    .cta-btn { display: none; }
}

/* === Hero Section === */
.hero {
    position: relative; height: 100vh; min-height: 650px;
    display: flex; align-items: center;
    background-image: url('https://images.unsplash.com/photo-1518105779142-d975f22f1b0a?q=80&w=2000&auto=format&fit=crop'); 
    background-size: cover; background-position: center;
    color: var(--color-white); padding-top: 90px;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(28, 28, 26, 0.85) 0%, rgba(196, 98, 45, 0.2) 100%);
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 2; max-width: 850px; margin: 0 auto;
    text-align: center; padding: 0 5%;
}
.badge {
    display: inline-block; padding: 0.4rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.4); border-radius: 30px;
    font-size: 0.85rem; margin-bottom: 1.5rem; background: rgba(0, 0, 0, 0.25); backdrop-filter: blur(4px);
}
.hero-content p { font-size: 1.2rem; margin-bottom: 2.5rem; color: #F8F8F8; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-bottom: 4rem; }
@media (max-width: 600px) { 
    .hero-actions { flex-direction: column; }
    .hero { padding-top: 58px; }
    .hero-content p { font-size: 1rem; }
    .badge { display: none; }
}
.social-proof-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 1.5rem; }
.proof-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 500; }
.proof-item svg { width: 1.2rem; height: 1.2rem; stroke-width: 1.5px; }

/* === Layout & Alternating Sections === */
.esencia-section, .rooms-section, .community-section { padding: 7rem 0; position: relative; z-index: 2; }

/* === Esencia (Fondo Crema) === */
.section-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 900px) { .section-layout { grid-template-columns: 1fr; } }
.esencia-text p { font-size: 1.1rem; color: var(--color-gray); margin-bottom: 2rem; }
.usp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.usp-item h4 { color: var(--color-text); }
.usp-item .icon-adobe { color: var(--color-adobe); margin-bottom: 0.5rem; width: 32px; height: 32px; stroke-width: 1.5px; }
.usp-item .icon-ocre { color: var(--color-ochre); margin-bottom: 0.5rem; width: 32px; height: 32px; stroke-width: 1.5px; }
.radius-img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-warm); object-fit: cover; aspect-ratio: 4/5; }

/* === Rooms Section (Fondo Blanco) === */
.rooms-section { background-color: var(--color-white); }
.section-header { margin-bottom: 4rem; }
.section-header p { color: var(--color-gray); font-size: 1.1rem; max-width: 650px; margin: 0 auto; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 3rem; }
.room-card {
    background: var(--color-white); border-radius: var(--radius-lg);
    border: 1px solid var(--color-border); overflow: hidden;
    box-shadow: var(--shadow-warm); transition: var(--transition);
    display: flex; flex-direction: column;
}
.room-card:hover { transform: translateY(-8px); box-shadow: 0 22px 40px rgba(196, 98, 45, 0.15); }
.room-img-container { position: relative; overflow: hidden; aspect-ratio: 3/2; width: 100%; }
.room-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.room-card:hover .room-img-container img { transform: scale(1.08); }
.room-hover-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(212, 168, 67, 0.85); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.4s ease; z-index: 2;
}
.room-card:hover .room-hover-overlay { opacity: 1; }
.room-info { padding: 2.5rem 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.room-info h3 { color: var(--color-primary); }
.room-info p { color: var(--color-gray); margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.6; flex-grow: 1; }
.room-features {
    list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem;
    border-top: 1px solid var(--color-border); padding-top: 1.5rem; margin-top: auto;
}
.room-features li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 500; }
.room-features li svg { width: 22px; height: 22px; color: var(--color-accent-green); stroke-width: 1.5px; }

/* === Community Section === */
.community-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; position:relative; z-index: 2;}
@media (max-width: 900px) { .community-layout { grid-template-columns: 1fr; } }
.community-text p { font-size: 1.15rem; color: var(--color-gray); line-height: 1.7; }
.accordion-container { display: flex; flex-direction: column; gap: 1rem; }
.accordion-item {
    background: var(--color-white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft); border: 1px solid var(--color-border); transition: var(--transition);
}
.accordion-item:hover { box-shadow: var(--shadow-warm); border-color: rgba(196, 98, 45, 0.3); }
.accordion-header {
    width: 100%; text-align: left; padding: 1.5rem 2rem; background: transparent; border: none;
    font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; color: var(--color-text);
    cursor: pointer; display: flex; align-items: center; transition: var(--transition);
}
.accordion-header:hover { background-color: rgba(245, 237, 216, 0.5); }
.accordion-header.active { color: var(--color-primary); }
.accordion-header .icon {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; background-color: rgba(46, 95, 163, 0.08);
    color: var(--color-accent-blue); border-radius: 50%; margin-right: 1.2rem;
}
.world-cup-icon { background-color: rgba(196, 98, 45, 0.1) !important; color: var(--color-primary) !important; }
.accordion-header .chevron { margin-left: auto; transition: transform 0.4s ease; color: var(--color-primary); }
.accordion-header.active .chevron { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; background-color: var(--color-white); }
.accordion-content p { padding: 0 2rem 2rem 5.2rem; color: var(--color-gray); margin: 0; }
@media (max-width: 600px) {
    .accordion-header { padding: 1.2rem; }
    .accordion-header .icon { width: 40px; height: 40px; margin-right: 0.8rem; }
    .accordion-content p { padding: 0 1.2rem 1.5rem 1.2rem; }
}

/* === Footer === */
footer { background-color: #1C1C1A; color: var(--color-border); padding: 5rem 0 2rem; font-family: var(--font-body); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
@media (max-width: 768px) { .footer-content { grid-template-columns: 1fr; gap: 2.5rem; } }
.footer-brand h2 { font-size: 2rem; color: var(--color-white); margin-bottom: 0.8rem; }
.footer-brand p { opacity: 0.8; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 1.2rem; }
.footer-links h4, .footer-contact h4 { color: var(--color-white); font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-links a, .footer-contact a { color: var(--color-turquoise); font-weight: 500; }
.footer-links a:hover, .footer-contact a:hover { color: var(--color-white); text-decoration: underline; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(237, 228, 207, 0.15); font-size: 0.9rem; color: rgba(237, 228, 207, 0.6); }
.agency-credit { color: var(--color-turquoise); font-weight: 500; }


/* === Selector de reserva Airbnb === */
.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.booking-modal.open {
    display: flex;
}

.booking-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 28, 26, 0.72);
    backdrop-filter: blur(4px);
}

.booking-modal-panel {
    position: relative;
    width: min(920px, 100%);
    max-height: 88vh;
    overflow: auto;
    background: var(--color-base);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.booking-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-adobe);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.booking-modal-close:hover {
    transform: scale(1.05);
    color: var(--color-primary);
}

.booking-modal-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 1.75rem;
}

.booking-modal-header h2 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.booking-modal-header p {
    color: var(--color-gray);
}

.booking-room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.booking-room-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    color: var(--color-text);
    transition: var(--transition);
}

.booking-room-link span {
    font-weight: 700;
}

.booking-room-link small {
    color: var(--color-primary);
    font-weight: 700;
    white-space: nowrap;
}

.booking-room-link:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-warm);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .booking-modal {
        padding: 0.75rem;
    }

    .booking-modal-panel {
        padding: 1.5rem 1rem;
        border-radius: 18px;
    }

    .booking-room-grid {
        grid-template-columns: 1fr;
    }

    .booking-room-link {
        padding: 0.9rem 1rem;
    }
}

/* === Botón flotante móvil === */
.mobile-book-bar {
    display: none;
}

@media (max-width: 600px) {
    .mobile-book-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1rem;
        background: var(--color-white);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
        z-index: 999;
    }
    .mobile-book-btn {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 0.9rem;
        border-radius: var(--radius-lg);
    }
    footer { padding-bottom: 6rem; }
}
