/* ==========================================================
   Insidecop — Retail & Real Estate Consultants
   ========================================================== */

:root{
  /* Blue family sampled from the Insidecop logo and web mockup (maqueta) */
  --navy-950: #1a2f4d;
  --navy-900: #223b5e;
  --navy-800: #2c4d73;
  --brand-blue: #376193;
  --brand-blue-light: #6a8fbd;
  --ink: #1c2430;
  --ink-soft: #4c5866;
  --paper: #ffffff;
  --paper-alt: #eef1f5;
  --line: #dbe3ec;
  --accent: #2c4d73;
  --accent-light: #6a8fbd;
  --radius: 14px;
  --shadow-md: 0 12px 30px -12px rgba(26, 47, 77, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(26, 47, 77, 0.35);
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Aptos Black", "Aptos Display", "Aptos", "Archivo", Arial, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1,h2,h3{ font-family: var(--font-head); font-weight: 900; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--navy-950); }
p{ margin: 0 0 1em; color: var(--ink-soft); }
ul{ margin: 0; padding: 0; list-style: none; }

.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip-link{
  position: absolute; left: -999px; top: 0; background: var(--brand-blue); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary{ background: var(--accent); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost{ background: transparent; color: var(--navy-950); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--brand-blue); color: var(--brand-blue); }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: var(--brand-blue);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.header-inner{ display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand img{ height: 42px; }
.main-nav{ display: flex; align-items: center; gap: 30px; }
.main-nav a{ text-decoration: none; font-weight: 600; font-size: .95rem; color: #fff; }
.main-nav a:hover{ color: var(--accent-light); }
.nav-cta{
  background: var(--navy-950); color: #fff !important; padding: 10px 20px; border-radius: 999px;
}
.nav-cta:hover{ background: var(--navy-900); }
.nav-toggle{ display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span{ width: 24px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero{
  background: radial-gradient(1100px 500px at 85% -10%, #eaf0f8 0%, transparent 60%), var(--paper);
  padding: 76px 0 70px;
}
.hero-inner{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow{
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800;
  color: var(--accent); margin-bottom: 14px;
}
.hero h1{ font-size: clamp(2.1rem, 3.4vw, 3rem); max-width: 16ch; }
.hero-lead{ font-size: 1.08rem; max-width: 46ch; }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 40px; }

.hero-stats{ display: flex; gap: 34px; margin: 0; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-stats > div{ display: flex; flex-direction: column; }
.hero-stats dt{ font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--navy-950); }
.hero-stats dd{ margin: 2px 0 0; font-size: .82rem; color: var(--ink-soft); }

.photo-card{
  margin: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.photo-card img{ width: 100%; height: 340px; object-fit: cover; }
.photo-card figcaption{ padding: 14px 18px; font-size: .85rem; font-weight: 600; color: var(--navy-900); background: var(--paper-alt); }

/* ---------- Section shell ---------- */
.section{ padding: 84px 0; }
.section-alt{ background: var(--paper-alt); }
.kicker{
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800;
  color: var(--accent); margin: 0 0 12px;
}
.section h2{ font-size: clamp(1.7rem, 2.6vw, 2.3rem); max-width: 24ch; }
.section-lead{ max-width: 62ch; font-size: 1.05rem; }

.two-col{ display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 56px; }
.two-col.reverse .col-media{ order: 2; }
.rounded-photo{ border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 380px; object-fit: cover; }
.rounded-photo.portrait{ height: 420px; object-fit: cover; object-position: top; }

/* ---------- Value grid ---------- */
.value-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 56px; }
.value-card{
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-md);
}
.value-icon{ color: var(--accent); font-size: 1rem; }
.value-card h3{ font-size: 1.05rem; margin: 12px 0 8px; }
.value-card p{ font-size: .92rem; margin: 0; }

.banner-quote{
  background: linear-gradient(120deg, rgba(26,47,77,.90), rgba(55,97,147,.84)), url('../assets/banner-parque.jpg') center 40%/cover no-repeat;
  color: #fff; border-radius: var(--radius); padding: 64px 40px; text-align: center;
  box-shadow: var(--shadow-lg); min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.banner-quote p{ font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2rem); color: #fff; margin: 0 0 8px; }
.banner-quote span{ color: var(--accent-light); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }

/* ---------- Services ---------- */
.services-intro{ display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: center; margin-bottom: 8px; }
.services-photo{ margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.services-photo img{ width: 100%; height: 230px; object-fit: cover; }
.services-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
.service-card{
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-md);
}
.service-card-wide{ grid-column: 1 / -1; }
.service-num{ font-family: var(--font-head); color: var(--accent); font-size: 1.1rem; font-weight: 700; }
.service-card h3{ font-size: 1.15rem; margin: 10px 0 10px; }
.check-list{ margin-top: 16px; display: grid; gap: 10px; }
.check-list li{
  padding-left: 26px; position: relative; font-size: .93rem; color: var(--ink-soft);
}
.check-list li::before{
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800;
}

/* ---------- Proyectos ---------- */
.proyectos-stats{ border-top: none; padding-top: 0; margin: 30px 0 40px; gap: 50px; }

.projects-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.project-card{
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-md); transition: transform .18s ease, box-shadow .18s ease;
}
.project-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card img{ width: 100%; height: 150px; object-fit: cover; }
.project-info{ padding: 14px 16px 16px; }
.project-info h3{ font-size: .98rem; margin: 0 0 3px; }
.project-info span{ display: block; font-size: .8rem; color: var(--ink-soft); margin-bottom: 6px; }
.project-info b{ font-size: .8rem; color: var(--accent); font-weight: 800; }

/* ---------- Equipo ---------- */
.equipo-layout{ max-width: 1180px; }
.equipo-grid{ display: grid; grid-template-columns: 1.4fr .8fr; gap: 48px; align-items: start; }
.equipo-photo{ margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); position: sticky; top: 100px; }
.equipo-photo img{ width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.equipo-byline{ display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.equipo-avatar{
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: top;
  border: 3px solid var(--paper); box-shadow: var(--shadow-md); flex-shrink: 0;
}
.equipo-byline h2{ margin-bottom: 2px; }
.role{ color: var(--accent); font-weight: 700; margin: 0; }
.rics-badge{
  margin-top: 24px; display: flex; gap: 16px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow-md);
}
.rics-badge img{ height: 40px; width: auto; flex-shrink: 0; }
.rics-badge span{ font-size: .85rem; color: var(--ink-soft); }

/* ---------- Contacto ---------- */
.section-dark{
  position: relative; color: #fff;
  background: linear-gradient(160deg, rgba(20,36,59,.92), rgba(44,77,115,.86)), url('../assets/proyectos-aereo.jpg') center 60%/cover no-repeat;
}
.section-dark .kicker{ color: var(--accent-light); }
.section-dark h2{ color: #fff; }
.section-dark p{ color: rgba(255,255,255,.78); }
.section-dark .contact-label{ color: var(--accent-light); }
.section-dark .contact-list a{ color: #fff; }
.section-dark .contact-list a:hover{ color: var(--accent-light); }

.contact-list{ margin-top: 26px; display: grid; gap: 16px; }
.contact-list li{ display: flex; flex-direction: column; gap: 2px; }
.contact-label{ font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.contact-list a{ text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.contact-list a:hover{ color: var(--brand-blue); }

.contact-form{
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-lg); display: grid; gap: 6px;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.contact-form label{ font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.9); margin-top: 10px; }
.contact-form input, .contact-form textarea{
  font-family: var(--font-body); font-size: .95rem; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: rgba(255,255,255,.12); resize: vertical;
  color: #fff;
}
.contact-form input::placeholder, .contact-form textarea::placeholder{ color: rgba(255,255,255,.55); }
.contact-form input:focus, .contact-form textarea:focus{ outline: 2px solid #fff; outline-offset: 1px; }
.contact-form .btn{ margin-top: 16px; width: fit-content; }
.form-note{ font-size: .78rem; color: rgba(255,255,255,.65); margin: 10px 0 0; }
.hp-field{ position: absolute; left: -9999px; top: -9999px; }
.contact-form[hidden]{ display: none; }
.form-success{
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-lg); color: #fff; font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy-950); color: #cfd9e8; padding: 34px 0; }
.footer-inner{ display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.footer-logo{ height: 34px; border-radius: 4px; }
.footer-inner p{ margin: 0; font-size: .85rem; color: #a9b7cc; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .value-grid{ grid-template-columns: repeat(2, 1fr); }
  .services-grid{ grid-template-columns: 1fr; }
  .projects-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-media{ order: -1; }
  .two-col, .two-col.reverse{ grid-template-columns: 1fr; }
  .two-col.reverse .col-media{ order: 0; }
  .services-intro{ grid-template-columns: 1fr; }
  .services-photo img{ height: 200px; }
  .equipo-grid{ grid-template-columns: 1fr; }
  .equipo-photo{ position: static; order: -1; }
  .equipo-photo img{ min-height: 220px; }
}

/* Keep the nav inline (like Batex) down to tablet widths; only a true
   mobile viewport collapses it into the hamburger dropdown. */
@media (max-width: 860px) and (min-width: 641px){
  .main-nav{ gap: 16px; }
  .main-nav a{ font-size: .86rem; }
  .nav-cta{ padding: 9px 14px; }
  .header-inner{ padding: 0; }
  .wrap.header-inner{ padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 640px){
  .main-nav{
    position: absolute; top: 78px; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: stretch; padding: 10px 24px 24px; gap: 4px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.open{ display: flex; }
  .main-nav a{ padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav-cta{ text-align: center; margin-top: 8px; }
  .nav-toggle{ display: flex; }
}

@media (max-width: 600px){
  .section{ padding: 60px 0; }
  .hero{ padding: 50px 0 46px; }
  .value-grid{ grid-template-columns: 1fr; }
  .hero-stats{ gap: 24px; }
  .banner-quote{ padding: 32px 22px; }
  .projects-grid{ grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .project-card img{ height: 110px; }
}
