@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; background: #f5f2ed; color: #2c2c2c; overflow-x: hidden; line-height: 1.7; }

:root {
    --verde:      #3d6b4f;
    --verde-mid:  #4e8a64;
    --verde-light:#e8f0eb;
    --tierra:     #8B5E3C;
    --tierra-dark:#5C3D2E;
    --crema:      #f5f2ed;
    --blanco:     #ffffff;
    --gris:       #6b6b6b;
    --oscuro:     #1e1e1e;
    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  20px;
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:  0 6px 20px rgba(0,0,0,0.12);
    --shadow-lg:  0 16px 40px rgba(0,0,0,0.18);
    --transition: 0.3s ease;
}

img { width: 100%; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

/* NAVBAR */
#navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: background var(--transition), box-shadow var(--transition); background: rgba(0,0,0,0.35); backdrop-filter: blur(4px); }
#navbar.scrolled { background: rgba(255,255,255,0.96); box-shadow: 0 2px 16px rgba(0,0,0,0.10); backdrop-filter: blur(10px); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; max-width: 1200px; margin: 0 auto; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--blanco); transition: color var(--transition); z-index: 1001; display: flex; align-items: center; gap: 10px; }
#navbar.scrolled .logo { color: var(--tierra-dark); }
.logo-img { height: 38px; width: auto; filter: brightness(0) invert(1); transition: filter var(--transition); }
#navbar.scrolled .logo-img { filter: none; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.9); position: relative; transition: color var(--transition); }
#navbar.scrolled .nav-link { color: var(--oscuro); }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--verde-mid); transition: width var(--transition); }
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--verde-mid); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 1001; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--blanco); border-radius: 4px; transition: all 0.35s ease; }
#navbar.scrolled .hamburger span { background: var(--oscuro); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero { position: relative; height: 100vh; min-height: 600px; background-image: url('hero.jpg'); background-size: cover; background-position: center 40%; background-attachment: fixed; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--blanco); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,30,20,0.35) 0%, rgba(20,30,20,0.55) 60%, rgba(20,30,20,0.70) 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 20px; max-width: 760px; animation: fadeUp 1s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 18px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 18px; text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.hero-sub { font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 300; color: rgba(255,255,255,0.85); margin-bottom: 40px; letter-spacing: 0.04em; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary { padding: 14px 32px; background: var(--verde); color: var(--blanco); border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; transition: background var(--transition), transform var(--transition); box-shadow: 0 4px 16px rgba(61,107,79,0.5); }
.btn-hero-primary:hover { background: var(--verde-mid); transform: translateY(-2px); }
.btn-hero-secondary { padding: 14px 32px; border: 2px solid rgba(255,255,255,0.8); color: var(--blanco); border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; transition: background var(--transition), transform var(--transition); }
.btn-hero-secondary:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,0.7); animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* SHARED */
.info-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--verde); background: var(--verde-light); padding: 5px 14px; border-radius: 40px; margin-bottom: 14px; }
.info-badge--light { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.15); }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; color: var(--tierra-dark); margin-bottom: 14px; }
.section-title--light { color: var(--blanco); }
.title-line { width: 50px; height: 3px; background: var(--verde); border-radius: 4px; margin-bottom: 32px; }
.title-line--light { background: rgba(255,255,255,0.6); }
.section-sub { color: var(--gris); font-size: 1rem; margin-bottom: 48px; }
.section-sub--light { color: rgba(255,255,255,0.75); }

/* INFO */
.info-section { background: var(--crema); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.info-paragraph { font-size: 1.05rem; color: #4a4a4a; margin-bottom: 20px; line-height: 1.85; }
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-card { background: var(--blanco); border-radius: var(--radius-md); padding: 22px 20px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.05); transition: transform var(--transition), box-shadow var(--transition); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { width: 44px; height: 44px; background: var(--verde-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature-icon svg { width: 22px; height: 22px; stroke: var(--verde); }
.feature-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--tierra-dark); margin-bottom: 4px; }
.feature-card p { font-size: 0.82rem; color: var(--gris); line-height: 1.5; }

/* GALLERY */
.gallery-section { background: var(--blanco); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 260px 260px; gap: 18px; }
.img-card { overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.img-card--large { grid-row: span 2; }
.img-card img { height: 100%; transition: transform 0.6s ease; }
.img-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.img-card:hover img { transform: scale(1.06); }

/* CONTACT */
.contact-section { background: var(--tierra-dark); text-align: center; }
.contact-buttons { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-width: 220px; padding: 16px 32px; border-radius: var(--radius-sm); font-family: 'Lato', sans-serif; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: white; justify-content: center; transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition); box-shadow: var(--shadow-sm); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); opacity: 0.92; }
.instagram { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.whatsapp { background: #25D366; border: 2px solid rgba(255,255,255,0.4); }
.airbnb { background: #FF5A5F; }

/* FOOTER */
footer { background: var(--oscuro); color: rgba(255,255,255,0.55); text-align: center; padding: 28px 20px; font-size: 0.85rem; letter-spacing: 0.04em; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #c4bfb8; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* TABLET */
@media (max-width: 900px) {
    .info-grid { grid-template-columns: 1fr; gap: 40px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .img-card--large { grid-row: span 1; grid-column: span 2; }
    .img-card--large img { height: 280px; }
}

/* MÓVIL */
@media (max-width: 768px) {
    .navbar { padding: 18px 20px; }
    .hamburger { display: flex; }
    .nav-links { position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background: rgba(255,255,255,0.98); flex-direction: column; justify-content: center; align-items: center; gap: 36px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); z-index: 999; }
    .nav-links.open { transform: translateX(0); }
    .nav-link { font-size: 1.2rem; color: var(--oscuro) !important; }
    .hero { background-attachment: scroll; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 280px; }
    .section { padding: 72px 0; }
    .info-cards { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .img-card--large { grid-column: span 1; }
    .img-card img, .img-card--large img { height: 240px; }
    .contact-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 320px; }
}

@media (max-width: 480px) {
    .logo { font-size: 1rem; }
    .logo-img { height: 30px; }
    .info-cards { grid-template-columns: 1fr; }
}