/* ============================================================
   Cabañas La Rua — Sistema de diseño "Rústico cálido premium"
   ============================================================ */

:root {
    --forest: #23402a;
    --forest-soft: #35543c;
    --sage: #6b7f5e;
    --terra: #c2703d;
    --terra-dark: #a65a2f;
    --cream: #f7f2e9;
    --cream-light: #fdfaf4;
    --charcoal: #26211d;
    --text: #3a3733;
    --muted: #6f6a63;
    --border: #e9e1d3;
    --shadow-sm: 0 4px 14px rgba(38, 33, 29, 0.08);
    --shadow: 0 12px 32px rgba(38, 33, 29, 0.12);
    --shadow-lg: 0 22px 48px rgba(38, 33, 29, 0.18);
    --radius: 18px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--cream-light);
}

.font-display {
    font-family: 'Playfair Display', serif;
}

img {
    max-width: 100%;
}

/* ============ Navegación ============ */
.navbar-custom {
    background: rgba(253, 250, 244, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(233, 225, 211, 0.8);
    transition: all 0.3s ease;
    padding: 0.6rem 0;
    z-index: 1020;
}

.navbar-custom.scrolled {
    background: rgba(253, 250, 244, 0.98);
    box-shadow: var(--shadow-sm);
    padding: 0.3rem 0;
}

.navbar-brand img {
    height: 52px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.04);
}

.nav-link {
    font-weight: 500;
    color: var(--charcoal) !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--terra) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: var(--terra);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 0.5rem;
    background: var(--cream-light);
}

.dropdown-item {
    border-radius: 10px;
    padding: 0.55rem 1rem;
    color: var(--text);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--cream);
    color: var(--terra-dark);
}

/* ============ Botones ============ */
.btn-reserve {
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-soft) 100%);
    border: none;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(35, 64, 42, 0.28);
}

.btn-reserve:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(35, 64, 42, 0.36);
    color: #fff;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--terra) 0%, var(--terra-dark) 100%);
    border: none;
    color: #fff;
    padding: 15px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 22px rgba(194, 112, 61, 0.32);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(194, 112, 61, 0.42);
    color: #fff;
}

.btn-outline-custom {
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
    color: #fff;
}

.btn-whatsapp-line {
    border: 2px solid #1fa855;
    color: #1fa855;
    background: transparent;
    padding: 15px 30px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-whatsapp-line:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}

.hero-buttons .btn,
.cta-buttons .btn {
    margin: 0 10px 10px 0;
}

/* ============ Hero ============ */
.hero-section {
    background: linear-gradient(rgba(38, 33, 29, 0.55), rgba(38, 33, 29, 0.55)), url('../img/bosque.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    padding-top: 120px;
    padding-bottom: 90px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-soft) 100%);
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.6rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.15;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.35);
}

.hero-content .lead {
    font-size: 1.25rem;
    margin-bottom: 1.75rem;
    opacity: 0.95;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #f0d9c4;
    margin-bottom: 1rem;
}

/* Badges de confianza */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.9rem;
    color: #fff;
}

.hero-badge i {
    color: #f4c98f;
}

/* ============ Tarjetas de formulario ============ */
.contact-card,
.reservation-card {
    background: rgba(253, 250, 244, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1010;
}

.form-control,
.form-select {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 12px 15px;
    background: #fff;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 0.2rem rgba(35, 64, 42, 0.18);
}

/* ============ Secciones ============ */
.section-pad {
    padding: 6rem 0;
}

.section-cream {
    background: var(--cream);
}

.section-white {
    background: #fff;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--terra);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 1rem;
}

.section-intro {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 640px;
}

.text-center .section-intro {
    margin-left: auto;
    margin-right: auto;
}

/* ============ Tarjetas de cabañas ============ */
.cabin-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    height: 100%;
    border: 1px solid var(--border);
}

.cabin-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.cabin-image {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: all 0.35s ease;
}

.cabin-card:hover .cabin-image {
    transform: scale(1.02);
}

.cabin-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(38, 33, 29, 0.35), transparent 55%);
}

.cabin-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cabin-badge {
    background: rgba(253, 250, 244, 0.94);
    color: var(--forest);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    padding: 5px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.cabin-badge i {
    color: var(--terra);
}

.cabin-content {
    padding: 1.75rem;
}

.cabin-title {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 0.4rem;
}

.cabin-guests {
    color: var(--terra);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}

.cabin-content p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1.1rem 0 1.4rem;
}

.amenity-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--cream);
    color: var(--forest);
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 50px;
    padding: 6px 14px;
    border: 1px solid var(--border);
}

.amenity-chip i {
    color: var(--terra);
}

/* Legacy: iconos redondos pequeños (compatibilidad) */
.amenity-icon {
    width: 40px;
    height: 40px;
    background: var(--cream);
    color: var(--forest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.cabin-cta {
    display: flex;
    gap: 10px;
}

.cabin-cta .btn {
    flex: 1;
    padding: 12px 10px;
    font-size: 0.95rem;
}

.btn-whatsapp-mini {
    border: 2px solid #1fa855;
    color: #1fa855;
    background: transparent;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-whatsapp-mini:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

/* ============ Tarjetas de beneficios / amenidades ============ */
.feature-card,
.amenity-card {
    text-align: center;
    padding: 2.25rem 1.75rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    height: 100%;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover,
.amenity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgba(194, 112, 61, 0.35);
}

.feature-icon,
.amenity-card .amenity-icon {
    width: 78px;
    height: 78px;
    background: linear-gradient(135deg, var(--forest), var(--sage));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.4rem;
    font-size: 1.9rem;
    box-shadow: 0 8px 20px rgba(35, 64, 42, 0.25);
}

.feature-card h5,
.amenity-card h5 {
    color: var(--forest);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.feature-card p,
.amenity-card p {
    color: var(--muted);
    margin-bottom: 0;
}

/* ============ Galería ============ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    padding: 2rem 0;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* Tira de galería (teaser en homepage) */
.gallery-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.gallery-strip img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.gallery-strip img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow);
}

/* ============ Collage (About / Experiencia) ============ */
.collage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.collage img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.collage img:nth-child(1) {
    grid-row: span 2;
    height: 100%;
    min-height: 414px;
}

.collage img:nth-child(4) {
    grid-column: span 2;
    height: 180px;
}

/* ============ Testimonios ============ */
.testimonials-section {
    background: linear-gradient(160deg, var(--forest) 0%, var(--charcoal) 100%);
    color: #fff;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 2.25rem;
    text-align: left;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-5px);
}

.testimonial-stars {
    color: #f4c98f;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 1.4rem;
    line-height: 1.8;
    opacity: 0.95;
}

.testimonial-author {
    font-weight: 600;
    color: #f4c98f;
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author::before {
    content: '';
    width: 34px;
    height: 2px;
    background: var(--terra);
    display: inline-block;
}

/* ============ Banner CTA ============ */
.cta-banner {
    background: linear-gradient(rgba(35, 64, 42, 0.82), rgba(35, 64, 42, 0.82)), url('../img/bosque.jpg') center/cover no-repeat;
    background-attachment: fixed;
    border-radius: var(--radius-lg);
    padding: 4.5rem 2.5rem;
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 1.8rem;
}

.cta-banner .phone-line {
    margin-top: 1.4rem;
    font-size: 1rem;
    opacity: 0.9;
}

.cta-banner .phone-line a {
    color: #f4c98f;
    font-weight: 600;
    text-decoration: none;
}

/* ============ Video ============ */
.video-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ============ Barra social flotante ============ */
.social-bar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1015;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.whatsapp-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.6);
    color: #fff;
}

/* ============ Footer ============ */
.footer {
    background: var(--charcoal);
    color: #efe9df;
    padding: 4rem 0 1.5rem;
}

.footer h5 {
    color: #f4c98f;
    margin-bottom: 1.4rem;
    font-weight: 600;
}

.footer p {
    color: rgba(239, 233, 223, 0.75);
}

.footer-link {
    color: rgba(239, 233, 223, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 3px 0;
}

.footer-link:hover {
    color: #f4c98f;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.12);
}

.social-icons a {
    display: inline-block;
    width: 42px;
    height: 42px;
    background: var(--forest);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 42px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--terra);
    transform: translateY(-4px);
}

/* ============ Formulario de reservación (prefijo +52 y mensajes) ============ */
.phone-input {
    position: relative;
}

.phone-input .form-control {
    padding-left: 60px;
}

.phone-prefix {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-weight: 500;
    z-index: 10;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #c3e6cb;
    margin: 15px 0;
    display: none;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #f5c6cb;
    margin: 15px 0;
    display: none;
}

/* ============ Responsive ============ */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 110px;
    }

    .btn-reserve {
        margin-top: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-pad {
        padding: 4rem 0;
    }

    .cta-banner {
        padding: 3rem 1.5rem;
    }

    .cta-banner h2 {
        font-size: 1.9rem;
    }

    .feature-card,
    .amenity-card {
        margin-bottom: 1.5rem;
    }

    .hero-section {
        background-attachment: scroll;
    }

    .cta-banner {
        background-attachment: scroll;
    }
}
