/* ===== COTOBRO RENTAL HOUSE – Shared Stylesheet ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --sand: #f5f0e8; --warm: #e8dcc8; --terra: #2d7a5a;
  --dark: #1a1a1a; --mid: #555; --light: #fff; --radius: 12px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--dark); background: var(--light); font-size: 16px; line-height: 1.6; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 68px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--warm);
  transition: background 0.3s, box-shadow 0.3s;
}
#nav.scrolled { background: rgba(255,255,255,0.98); box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
#nav.solid    { background: rgba(255,255,255,0.98); box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-logo-text { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--dark); }
.nav-logo-text span { color: var(--terra); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.nav-links a { color: var(--dark); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--terra); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 180px; border-radius: 8px; padding: 0.5rem 0; margin-top: 0; box-shadow: 0 6px 24px rgba(0,0,0,0.12); border: 1px solid var(--warm); }
/* pseudo-elemento que tapa el hueco entre el enlace y el menú */
.nav-dropdown::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 12px; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 0.55rem 1.2rem; font-size: 0.8rem; white-space: nowrap; color: var(--dark); }
.nav-dropdown-menu a:hover { color: var(--terra); background: var(--sand); }
.nav-right { display: flex; gap: 1rem; align-items: center; }
.lang-switch { display: flex; gap: 0.35rem; }
.lang-btn { background: none; border: 1px solid var(--warm); color: var(--mid); padding: 0.22rem 0.55rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.lang-btn.active, .lang-btn:hover { background: var(--terra); border-color: var(--terra); color: #fff; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; }

/* ── HERO ── */
#hero { position: relative; height: 100vh; min-height: 580px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.58) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 1.5rem; }
.hero-badge { display: inline-block; background: var(--terra); color: #fff; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.38rem 1.1rem; border-radius: 20px; margin-bottom: 1.2rem; }
.hero-content h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.1; margin-bottom: 1rem; text-shadow: 0 2px 14px rgba(0,0,0,0.4); }
.hero-content p { font-size: clamp(0.95rem, 2.5vw, 1.15rem); max-width: 560px; margin-bottom: 1.8rem; opacity: 0.9; font-weight: 300; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2rem; }
.hero-pill { background: rgba(255,255,255,0.16); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.28); color: #fff; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.83rem; font-weight: 500; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-dots { position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 0.5rem; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.38); cursor: pointer; transition: all 0.3s; }
.hero-dot.active { background: var(--terra); width: 22px; border-radius: 4px; }

/* ── PAGE HERO (non-home pages) ── */
.page-hero { background: var(--sand); padding: 110px 0 55px; border-bottom: 1px solid var(--warm); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.5rem; color: var(--dark); }
.page-hero p { color: var(--mid); font-size: 1rem; }
.breadcrumb { font-size: 0.8rem; color: #aaa; margin-bottom: 1rem; }
.breadcrumb a { color: var(--terra); }
.breadcrumb a:hover { color: var(--dark); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.82rem 1.9rem; border-radius: 8px; font-weight: 600; font-size: 0.92rem; transition: all 0.2s; cursor: pointer; border: none; font-family: inherit; }
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: #235f44; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--terra); border: 1.5px solid var(--terra); }
.btn-outline:hover { background: var(--terra); color: #fff; transform: translateY(-1px); }
.btn-outline-white { background: rgba(255,255,255,0.1); color: #fff; border: 1.5px solid rgba(255,255,255,0.55); backdrop-filter: blur(6px); }
.btn-outline-white:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }

/* ── HIGHLIGHTS BAR ── */
#highlights { background: var(--warm); border-bottom: 1px solid #d9cdb8; }
.highlights-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.highlight-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.8rem 1rem; border-right: 1px solid rgba(0,0,0,0.08); color: var(--dark); }
.highlight-item:last-child { border-right: none; }
.highlight-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.highlight-num { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: var(--terra); line-height: 1; }
.highlight-label { font-size: 0.72rem; color: var(--mid); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.2rem; }

/* ── LAYOUT ── */
section { padding: 4.5rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-tag { display: inline-block; color: var(--terra); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.65rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; margin-bottom: 0.9rem; }
.section-sub { color: var(--mid); font-size: 1rem; max-width: 620px; line-height: 1.75; }
.section-intro { text-align: center; margin-bottom: 3rem; }
.section-intro .section-sub { margin: 0 auto; }

/* ── TWO-COL GRID ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.two-col.align-start { align-items: start; }
.two-col.reverse > *:first-child { order: 2; }
.two-col.reverse > *:last-child { order: 1; }

/* ── FEATURE LIST ── */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.5rem; }
.feature-item { display: flex; align-items: center; gap: 0.55rem; font-size: 0.88rem; font-weight: 500; }
.feature-item::before { content: '✓'; color: var(--terra); font-weight: 700; flex-shrink: 0; }

/* ── CARDS GRID ── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: var(--sand); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.1); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 1.4rem; }
.card-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 0.4rem; }
.card-text { font-size: 0.87rem; color: var(--mid); line-height: 1.65; }
.card-link { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--terra); font-size: 0.85rem; font-weight: 600; margin-top: 1rem; }
.card-link:hover { gap: 0.5rem; }

/* ── STATS ROW ── */
.stats-row { display: flex; gap: 2rem; flex-wrap: wrap; margin: 1.5rem 0; }
.stat-item { text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--terra); line-height: 1; font-weight: 700; }
.stat-label { font-size: 0.75rem; color: var(--mid); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── AMENITIES ── */
.amenities-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.amenity-cat { background: var(--sand); border-radius: var(--radius); padding: 1.6rem; }
.amenity-cat-title { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.88rem; margin-bottom: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.amenity-list { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.amenity-list li { font-size: 0.86rem; color: var(--mid); display: flex; align-items: center; gap: 0.45rem; }
.amenity-list li::before { content: '·'; color: var(--terra); font-weight: 900; font-size: 1.2rem; line-height: 1; flex-shrink: 0; }

/* ── GALLERY ── */
.gallery-masonry { columns: 4; column-gap: 0.75rem; margin-top: 2.5rem; }
.gallery-item { break-inside: avoid; margin-bottom: 0.75rem; border-radius: 8px; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; display: block; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-more { text-align: center; margin-top: 2.2rem; }

/* ── GALLERY CATEGORIES ── */
.gallery-section { margin-bottom: 3rem; }
.gallery-section-title { font-size: 1.3rem; margin-bottom: 1.2rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--warm); color: var(--dark); }

/* ── LIGHTBOX ── */
#lightbox { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.93); align-items: center; justify-content: center; }
#lightbox.open { display: flex; }
#lightbox img { max-height: 88vh; max-width: 90vw; border-radius: 8px; }
.lb-close { position: absolute; top: 1.4rem; right: 1.4rem; background: rgba(255,255,255,0.1); border: none; color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-close:hover { background: var(--terra); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-nav:hover { background: var(--terra); }
.lb-prev { left: 1.4rem; } .lb-next { right: 1.4rem; }
.lb-caption { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 0.85rem; text-align: center; white-space: nowrap; }

/* ── FLOOR PLANS ── */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.plan-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.07); }
.plan-card img { width: 100%; display: block; cursor: pointer; transition: transform 0.3s; }
.plan-card:hover img { transform: scale(1.02); }
.plan-label { padding: 1rem 1.2rem; font-weight: 600; font-size: 0.88rem; }

/* ── LOCATION ── */
.location-map { border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.1); aspect-ratio: 4/3; }
.location-map iframe { width: 100%; height: 100%; border: none; display: block; }
.distances { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.8rem; }
.distance-item { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; background: var(--sand); border-radius: 10px; }
.distance-icon { font-size: 1.3rem; flex-shrink: 0; }
.distance-info strong { display: block; font-size: 0.87rem; font-weight: 600; }
.distance-info span { font-size: 0.78rem; color: var(--terra); font-weight: 500; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 2.5rem; max-width: 800px; }
.faq-item { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(0,0,0,0.06); }
.faq-q { width: 100%; background: none; border: none; text-align: left; padding: 1.1rem 1.4rem; font-size: 0.95rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: inherit; }
.faq-q .arrow { font-size: 0.9rem; transition: transform 0.3s; flex-shrink: 0; color: var(--terra); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.3s; font-size: 0.9rem; color: var(--mid); line-height: 1.75; padding: 0 1.4rem; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 1.4rem 1.1rem; }
.faq-map { margin-top: 1rem; border-radius: 8px; overflow: hidden; }
.faq-map iframe { width: 100%; height: 240px; border: none; display: block; }

/* ── POLICIES ── */
.policies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.policy-card { background: var(--sand); border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.policy-icon { font-size: 2.2rem; margin-bottom: 0.7rem; }
.policy-title { font-weight: 700; margin-bottom: 0.3rem; font-size: 0.92rem; }
.policy-detail { font-size: 0.83rem; color: var(--mid); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.3rem; }
.contact-item { display: flex; align-items: flex-start; gap: 0.9rem; }
.contact-item-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-item-text strong { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terra); margin-bottom: 0.15rem; }
.contact-item-text a, .contact-item-text span { color: var(--dark); font-size: 0.97rem; }
.contact-item-text a:hover { color: var(--terra); }
.social-links { display: flex; gap: 0.7rem; margin-top: 0.8rem; flex-wrap: wrap; }
.social-link { display: inline-flex; align-items: center; gap: 0.45rem; background: #fff; border: 1px solid var(--warm); color: var(--mid); padding: 0.48rem 0.9rem; border-radius: 6px; font-size: 0.8rem; font-weight: 500; transition: all 0.2s; }
.social-link:hover { background: var(--terra); border-color: var(--terra); color: #fff; }
.contact-form-wrap { background: #fff; border: 1px solid var(--warm); border-radius: var(--radius); padding: 2rem; box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.form-title { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--dark); margin-bottom: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-group { margin-bottom: 0.9rem; }
.form-group label { display: block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--mid); margin-bottom: 0.35rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; background: #fff; border: 1px solid #ddd; color: var(--dark); padding: 0.7rem 0.95rem; border-radius: 8px; font-size: 0.9rem; font-family: 'Inter', sans-serif; outline: none; transition: border-color 0.2s; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #bbb; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--terra); }
.form-group select option { background: #fff; color: var(--dark); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; margin-top: 0.4rem; }

/* ── DARK SECTION (now light) ── */
.section-dark { background: var(--sand); color: var(--dark); }
.section-dark .section-title { color: var(--dark); }
.section-dark .section-sub { color: var(--mid); }

/* ── IMAGE GRID ── */
.img-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.img-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.img-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.img-rounded { border-radius: var(--radius); overflow: hidden; }
.img-rounded img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.img-rounded:hover img { transform: scale(1.04); }
.img-tall { height: 280px; }
.img-medium { height: 200px; }
.img-short { height: 160px; }
.img-main { grid-column: 1 / -1; height: 300px; }
.img-clickable { cursor: pointer; }

/* ── HIGHLIGHT STRIP (subpages) ── */
.hl-strip { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 1.5rem 0 2rem; }
.hl-chip { display: flex; align-items: center; gap: 0.5rem; background: var(--sand); border-radius: 8px; padding: 0.6rem 1rem; }
.hl-chip-icon { font-size: 1.3rem; }
.hl-chip-text strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mid); }
.hl-chip-text span { font-size: 0.9rem; font-weight: 600; }

/* ── FOOTER ── */
footer { background: var(--warm); color: var(--mid); text-align: center; padding: 2rem; font-size: 0.8rem; line-height: 1.8; border-top: 1px solid #d9cdb8; }
footer a { color: var(--terra); }
footer .footer-logo { margin: 0 auto 1rem; opacity: 0.8; }
footer .footer-logo img { height: 36px; margin: 0 auto; }

/* ── SCROLL TOP ── */
#scrolltop { position: fixed; bottom: 1.8rem; right: 1.8rem; width: 42px; height: 42px; background: var(--terra); color: #fff; border: none; border-radius: 50%; font-size: 1.1rem; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 90; box-shadow: 0 4px 16px rgba(45,122,90,0.38); transition: transform 0.2s; }
#scrolltop.visible { display: flex; }
#scrolltop:hover { transform: translateY(-2px); }

/* ── RESPONSIVE ── */
@media(max-width: 1024px){
  .gallery-masonry { columns: 3; }
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .amenities-cats { grid-template-columns: repeat(2,1fr); }
}
@media(max-width: 900px){
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col.reverse > *:first-child { order: 0; }
  .two-col.reverse > *:last-child { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr 1fr; }
  .highlights-grid { grid-template-columns: repeat(3,1fr); }
  .highlight-item:nth-child(3){ border-right: none; }
}
@media(max-width: 768px){
  .nav-links { display: none; position: fixed; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: center; padding: 2rem 0; gap: 1.4rem; border-bottom: 1px solid var(--warm); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-dropdown-menu { position: static; background: var(--sand); border-radius: 6px; margin-top: 0.3rem; box-shadow: none; border: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .policies-grid { grid-template-columns: repeat(2,1fr); }
  .amenities-cats { grid-template-columns: 1fr; }
  .img-grid-3, .img-grid-4 { grid-template-columns: 1fr 1fr; }
  .gallery-masonry { columns: 2; }
  .plans-grid { grid-template-columns: 1fr; }
}
@media(max-width: 480px){
  .highlights-grid { grid-template-columns: repeat(2,1fr); }
  .policies-grid { grid-template-columns: 1fr; }
  .hero-pills { gap: 0.4rem; }
  .img-grid-2 { grid-template-columns: 1fr; }
}
