/* ============================================
   POSADA DE CAMPO SAN CONO — STYLESHEET
   Palette: Plum (#4A1942) + Amber (#D4A843)
   Fonts: Playfair Display + Inter
============================================ */

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

:root {
    --plum: #4A1942;
    --plum-dark: #351230;
    --plum-light: #6B2D5C;
    --amber: #D4A843;
    --amber-light: #E8C477;
    --amber-dark: #B8912E;
    --cream: #FAF6F0;
    --cream-dark: #F0E9DC;
    --text-dark: #1A1A1A;
    --text-mid: #4A4A4A;
    --text-light: #7A7A7A;
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(74, 25, 66, 0.08);
    --shadow-md: 0 8px 30px rgba(74, 25, 66, 0.12);
    --shadow-lg: 0 20px 60px rgba(74, 25, 66, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
    color: var(--plum);
}

.text-amber {
    color: var(--amber-dark);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 246, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 25, 66, 0.08);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(250, 246, 240, 0.97);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--plum);
}

.nav-logo-icon {
    color: var(--amber);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--plum);
}

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

.nav-cta {
    background: var(--plum);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background var(--transition), transform var(--transition);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--plum-dark);
    transform: translateY(-1px);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--plum);
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--plum);
    padding: 8px;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--plum);
    padding: 12px 0;
    transition: color var(--transition);
}

.mobile-menu-link:hover {
    color: var(--amber-dark);
}

.mobile-menu-cta {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--amber-dark);
    padding: 14px 28px;
    border: 2px solid var(--amber);
    border-radius: 100px;
    transition: var(--transition);
}

.mobile-menu-cta:hover {
    background: var(--amber);
    color: var(--white);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(74, 25, 66, 0.82) 0%,
        rgba(74, 25, 66, 0.65) 50%,
        rgba(74, 25, 66, 0.45) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero-card {
    max-width: 720px;
}

.hero-tag {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-headline em {
    font-style: italic;
    color: var(--amber-light);
    font-weight: 600;
}

.hero-subheadline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--amber);
    color: var(--plum-dark);
}

.btn-primary:hover {
    background: var(--amber-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.35);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Floating Stat Cards --- */
.hero-stats {
    position: absolute;
    bottom: 60px;
    right: 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-card {
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
    animation: floatIn 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.stat-card:nth-child(1) { animation-delay: 0.3s; }
.stat-card:nth-child(2) { animation-delay: 0.5s; }
.stat-card:nth-child(3) { animation-delay: 0.7s; }

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--plum);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

/* --- Section Divider --- */
.section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.divider-icon {
    color: var(--amber);
    flex-shrink: 0;
}

/* --- Sections --- */
.section {
    padding: 120px 0;
}

.section-header {
    max-width: 680px;
    margin-bottom: 64px;
}

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

.section-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-dark);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.75;
}

/* --- Rooms --- */
.rooms {
    background: var(--white);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.room-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.room-card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.room-card:hover .room-card-image img {
    transform: scale(1.05);
}

.room-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--amber);
    color: var(--plum-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.room-card-body {
    padding: 28px;
}

.room-card-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--plum);
}

.room-card-desc {
    font-size: 0.925rem;
    color: var(--text-mid);
    line-height: 1.65;
    margin-bottom: 20px;
}

.room-card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.room-card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-mid);
}

.room-card-features li svg {
    color: var(--amber-dark);
    flex-shrink: 0;
}

.btn-room {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.875rem;
}

/* --- Experience --- */
.experience {
    background: var(--cream);
}

.experience-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.experience-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 48px;
}

.exp-feature {
    display: flex;
    gap: 20px;
}

.exp-feature-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: var(--plum);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
}

.exp-feature-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--plum);
    margin-bottom: 4px;
}

.exp-feature-desc {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.experience-image-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 1fr;
    gap: 16px;
    height: 100%;
    min-height: 500px;
}

.exp-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.exp-img-large {
    grid-row: 1;
}

.exp-img-small {
    grid-row: 2;
}

.exp-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.exp-img:hover img {
    transform: scale(1.03);
}

/* --- Location --- */
.location {
    background: var(--white);
}

.location-content {
    max-width: 560px;
    margin-bottom: 48px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.location-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.location-detail-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--cream);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum);
}

.location-detail-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.location-detail-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-map iframe {
    width: 100%;
    height: 400px;
    display: block;
}

/* --- Quote Section --- */
.quote-section {
    background: var(--plum);
    padding: 100px 0;
}

.quote-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-mark {
    color: var(--amber);
    margin-bottom: 24px;
    opacity: 0.6;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 24px;
}

.quote-attr {
    font-size: 0.9rem;
    color: var(--amber-light);
    font-weight: 500;
}

/* --- Contact --- */
.contact {
    background: var(--cream);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
}

.contact-method:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-sm);
}

.contact-method-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: var(--plum);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
}

.contact-method-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-method-value {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form-title {
    font-size: 1.5rem;
    margin-bottom: 28px;
    color: var(--plum);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream);
    transition: border-color var(--transition), background var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--amber);
    background: var(--white);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #E8F5E9;
    border-radius: var(--radius);
    color: #2E7D32;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 16px;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    flex-shrink: 0;
    color: #2E7D32;
}

/* --- Footer --- */
.footer {
    background: var(--plum-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo-icon {
    color: var(--amber);
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-nav-title {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--amber);
    margin-bottom: 20px;
}

.footer nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer nav a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer nav a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--amber);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--amber);
}

/* --- Scroll to Top --- */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 100;
    width: 48px;
    height: 48px;
    background: var(--plum);
    color: var(--amber);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--plum-dark);
    transform: translateY(-2px);
}

/* --- Animations --- */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-aos][data-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-delay="400"] { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-layout {
        gap: 48px;
    }

    .contact-layout {
        gap: 48px;
    }

    .hero-stats {
        position: relative;
        bottom: auto;
        right: auto;
        flex-direction: row;
        justify-content: center;
        padding: 0 24px 60px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .stat-card {
        min-width: auto;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-bottom: 0;
    }

    .hero-content {
        padding: 120px 24px 40px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 10px;
        padding: 0 24px 40px;
    }

    .stat-card {
        min-width: 100%;
    }

    .section {
        padding: 80px 0;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .experience-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .experience-image-grid {
        min-height: 350px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .exp-img-large {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .exp-img img {
        height: 220px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .quote-section {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .experience-image-grid {
        grid-template-columns: 1fr;
    }

    .exp-img-small {
        display: none;
    }
}
