/* ============================================
   SELECTA CONSULTORES INMOBILIARIOS
   ============================================ */
:root {
  --navy: #15214b;
  --navy-dark: #0e1736;
  --navy-light: #1f2f66;
  --red: #e63029;
  --yellow: #c9a45c; /* dorado champán corporativo */
  --white: #ffffff;
  --off-white: #f6f8fc;
  --grey: #8a93ab;
  --text: #2a3247;
  --shadow: 0 10px 40px rgba(14, 23, 54, 0.12);
  --radius: 14px;
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Open Sans', 'Segoe UI', sans-serif; font-weight: 700; color: var(--navy); line-height: 1.2; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(21, 33, 75, 0.97);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 120px; width: auto; margin: -24px 0; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: #d7deef; font-size: 0.92rem; font-weight: 500; position: relative; transition: var(--transition); }
.nav a:hover { color: var(--white); }
.nav a::after {
  content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px;
  background: var(--yellow); transition: var(--transition);
}
.nav a:hover::after { width: 100%; }
.nav .btn-nav {
  background: var(--red); color: var(--white); padding: 10px 22px; border-radius: 50px;
  font-weight: 600;
}
.nav .btn-nav:hover { background: #c92520; transform: translateY(-2px); }
.nav .btn-nav::after { display: none; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 26px; height: 2.5px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  background:
    linear-gradient(rgba(14, 23, 54, 0.78), rgba(21, 33, 75, 0.85)),
    url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
  color: var(--white);
  padding: 140px 0 100px;
}
.hero-content { max-width: 760px; }
.hero .eyebrow {
  display: inline-block; font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--yellow); font-weight: 600; margin-bottom: 22px;
  border: 1px solid rgba(247, 181, 0, 0.4); padding: 8px 18px; border-radius: 50px;
}
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin-bottom: 24px; }
.hero h1 em { font-style: normal; font-weight: 800; color: var(--yellow); }
.hero p { font-size: 1.15rem; color: #cdd6ec; max-width: 600px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; border-radius: 50px; font-weight: 600; font-size: 1rem;
  transition: var(--transition); border: none; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #c92520; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(230, 48, 41, 0.35); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: var(--white); color: var(--navy); transform: translateY(-3px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(21,33,75,0.3); }

.hero-stats {
  display: flex; gap: 60px; margin-top: 70px; flex-wrap: wrap;
}
.hero-stats .stat strong { display: block; font-size: 2.2rem; font-family: 'Open Sans', sans-serif; font-weight: 800; color: var(--yellow); }
.hero-stats .stat span { font-size: 0.85rem; color: #aab5d4; letter-spacing: 0.05em; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--off-white); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 70px; }
.section-head .eyebrow {
  font-size: 0.78rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--red); font-weight: 700; display: block; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin-bottom: 18px; }
.section-head p { color: var(--grey); font-size: 1.05rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 42px 34px;
  box-shadow: var(--shadow); transition: var(--transition);
  border-top: 4px solid transparent; position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-10px); border-top-color: var(--red); }
.service-card .icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center; margin-bottom: 26px;
}
.service-card .icon svg, .ci-icon svg { width: 28px; height: 28px; stroke: var(--white); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ci-icon svg { width: 22px; height: 22px; stroke: var(--yellow); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 14px; }
.service-card p { color: var(--grey); font-size: 0.95rem; }

/* ---------- Properties ---------- */
.props-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.prop-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.prop-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(14,23,54,0.2); }
.prop-img { position: relative; height: 250px; overflow: hidden; }
.prop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.prop-card:hover .prop-img img { transform: scale(1.08); }
.prop-tag {
  position: absolute; top: 16px; left: 16px; background: var(--red); color: var(--white);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 50px;
}
.prop-body { padding: 28px; }
.prop-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.prop-loc { color: var(--grey); font-size: 0.9rem; margin-bottom: 16px; }
.prop-feats { display: flex; gap: 18px; color: var(--navy); font-size: 0.88rem; font-weight: 500; padding-top: 16px; border-top: 1px solid #eef1f8; }
.prop-cta { text-align: center; margin-top: 56px; }

/* ---------- Sell CTA band ---------- */
.sell-band {
  background:
    linear-gradient(rgba(21,33,75,0.92), rgba(21,33,75,0.92)),
    url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2000&q=80') center/cover fixed;
  color: var(--white); text-align: center; padding: 100px 0;
}
.sell-band h2 { color: var(--white); font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 18px; }
.sell-band p { color: #cdd6ec; max-width: 560px; margin: 0 auto 36px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.about-img img { height: 520px; width: 100%; object-fit: cover; }
.about-content .eyebrow {
  font-size: 0.78rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--red); font-weight: 700; display: block; margin-bottom: 14px;
}
.about-content h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 24px; }
.about-content p { color: var(--grey); margin-bottom: 18px; }
.about-points { list-style: none; margin: 28px 0 36px; }
.about-points li { padding: 10px 0 10px 36px; position: relative; font-weight: 500; color: var(--navy); }
.about-points li::before {
  content: '✓'; position: absolute; left: 0; top: 8px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: var(--navy);
  font-size: 0.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-info h3 { font-size: 1.5rem; margin-bottom: 24px; }
.contact-item { display: flex; gap: 18px; margin-bottom: 26px; align-items: flex-start; }
.contact-item .ci-icon {
  width: 50px; height: 50px; min-width: 50px; border-radius: 12px; background: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.contact-item strong { display: block; color: var(--navy); font-size: 0.95rem; }
.contact-item a, .contact-item span { color: var(--grey); font-size: 0.92rem; }
.contact-item a:hover { color: var(--red); }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 10px; }
.map-frame iframe { width: 100%; height: 240px; border: 0; display: block; }

.form-card { background: var(--white); border-radius: var(--radius); padding: 46px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.form-card > p { color: var(--grey); font-size: 0.92rem; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid #e3e8f2; border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; color: var(--text); background: var(--off-white);
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--navy); background: var(--white);
}
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8rem; color: var(--grey); margin-bottom: 24px; }
.form-check input { margin-top: 3px; }
.form-check a { color: var(--red); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: #aab5d4; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 60px; }
.footer h4 { color: var(--white); font-family: 'Inter', sans-serif; font-size: 1rem; margin-bottom: 22px; letter-spacing: 0.05em; }
.footer img { height: 70px; margin-bottom: 20px; }
.footer p, .footer a { font-size: 0.9rem; color: #aab5d4; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem;
}
.footer-bottom a { margin-left: 20px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 62px; height: 62px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: var(--transition); animation: pulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.12); }
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 8px 28px rgba(37,211,102,0.45), 0 0 0 14px rgba(37,211,102,0); }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1001;
  background: var(--navy-dark); color: #cdd6ec; padding: 20px 0;
  transform: translateY(110%); transition: transform 0.5s ease;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.3);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.cookie-inner p { font-size: 0.85rem; max-width: 720px; }
.cookie-inner a { color: var(--yellow); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; }
.cookie-actions button {
  padding: 10px 24px; border-radius: 50px; border: none; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 0.85rem; transition: var(--transition);
}
.btn-accept { background: var(--yellow); color: var(--navy); }
.btn-reject { background: transparent; color: #cdd6ec; border: 1px solid rgba(255,255,255,0.3) !important; }

/* ---------- Legal pages / subpages ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  color: var(--white); padding: 180px 0 80px; text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: #cdd6ec; margin-top: 14px; max-width: 620px; margin-left: auto; margin-right: auto; }
.legal-content { padding: 80px 0; max-width: 820px; }
.legal-content h2 { font-size: 1.4rem; margin: 40px 0 16px; }
.legal-content p, .legal-content li { color: var(--text); font-size: 0.95rem; margin-bottom: 14px; }
.legal-content ul { padding-left: 24px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-img img { height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed; top: 80px; right: -100%; flex-direction: column;
    background: var(--navy-dark); width: 78%; max-width: 320px; height: calc(100vh - 80px);
    padding: 44px 34px; align-items: flex-start; transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.4);
  }
  .nav.open { right: 0; }
  .hamburger { display: flex; }
  .section { padding: 80px 0; }
  .hero-stats { gap: 34px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
