/* ================================================
   MR Administración de Consorcios — Estilos
   ================================================ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --indigo: #2F3178;
  --indigo-dark: #1E2050;
  --indigo-mid: #4B4FA8;
  --indigo-light: #E8E9F5;
  --gold: #C8A96E;
  --gold-dark: #9A7840;
  --gold-light: #FBF5EC;
  --gray-bg: #F5F5F7;
  --gray-text: #6B7280;
  --gray-light: #E5E7EB;
  --white: #ffffff;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Outfit', 'Trebuchet MS', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: #1a1a2e; background: var(--white); overflow-x: hidden; }

/* ── NAVBAR ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 48px; width: auto; max-width: 180px; display: block; }

@media (max-width: 768px) {
  .nav-logo-img { height: 36px; max-width: 140px; }
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--gray-text); font-weight: 400; transition: color .2s; }
.nav-links a:hover { color: var(--indigo); }
.nav-cta {
  background: var(--indigo); color: var(--white);
  padding: 10px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background .2s;
}
.nav-cta:hover { background: var(--indigo-dark); }

/* ── HERO ── */
.hero {
  min-height: 92vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 5%;
  position: relative; overflow: hidden;
  background-image: url('../img/MR-administracion-de-edificios.webp');
  background-size: cover;
  background-position: center;
}
/* Overlay índigo oscuro sobre la imagen */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(18, 20, 56, 0.88) 0%,
    rgba(30, 32, 80, 0.80) 55%,
    rgba(30, 32, 80, 0.55) 100%
  );
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; padding-right: 3rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,169,110,0.15); color: var(--gold);
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(200,169,110,0.4);
  margin-bottom: 1.5rem;
  animation: fadeUp .6s ease both;
}
.hero-badge::before { content: '⚖'; font-size: 14px; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  animation: fadeUp .6s .1s ease both;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 1.05rem; font-weight: 300;
  color: rgba(255,255,255,0.80); line-height: 1.75;
  margin-bottom: 2rem;
  animation: fadeUp .6s .2s ease both;
  max-width: 480px;
}
.hero-actions {
  display: flex; gap: 1rem; align-items: center;
  animation: fadeUp .6s .3s ease both;
}
.btn-primary {
  background: var(--gold); color: var(--indigo-dark);
  padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background .2s, transform .15s;
  display: inline-block;
}
.btn-primary:hover { background: #d4b87a; transform: translateY(-1px); }
.btn-secondary {
  color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.btn-secondary:hover { gap: 10px; color: var(--white); }
.hero-trust {
  margin-top: 2.5rem;
  display: flex; gap: 1.5rem;
  animation: fadeUp .6s .4s ease both;
}
.trust-item { display: flex; align-items: center; gap: 8px; }
.trust-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
.trust-text { font-size: 13px; color: rgba(255,255,255,0.65); }

.hero-visual {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  animation: fadeUp .6s .2s ease both;
}
.hero-card-stack { position: relative; width: 340px; height: 380px; }
.hcard {
  position: absolute;
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--gray-light);
}
.hcard-main {
  width: 300px; top: 40px; left: 20px;
  background: var(--indigo);
  color: var(--white);
  z-index: 2;
}
.hcard-back {
  width: 280px; top: 20px; left: 40px;
  background: var(--indigo-light);
  border-color: transparent;
  z-index: 1;
  transform: rotate(3deg);
}
.hcard-float {
  width: 200px; bottom: 10px; right: -10px;
  background: var(--gold-light);
  border-color: rgba(200,169,110,0.3);
  z-index: 3;
}
.hcard-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: .6; margin-bottom: 1rem; }
.hcard-main .hcard-label { color: rgba(255,255,255,.7); }
.hcard-title { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.3; margin-bottom: 1rem; }
.hcard-main .hcard-title { color: var(--white); }
.hcard-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.hcard-list li { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.hcard-main .hcard-list li { color: rgba(255,255,255,.85); }
.hcard-check {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(200,169,110,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 10px; color: var(--gold);
}
.hcard-float .hcard-label { color: var(--gold-dark); }
.hcard-float .hcard-title { font-size: 15px; color: var(--indigo); margin-bottom: 0.5rem; }
.hcard-float p { font-size: 12px; color: var(--gray-text); line-height: 1.5; }

/* ── DIFERENCIAL ── */
.diferencial {
  background: var(--indigo-dark);
  padding: 6rem 5%;
  position: relative; overflow: hidden;
}
.diferencial::before {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(200,169,110,0.08);
}
.section-tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
  margin-bottom: 0.75rem;
}
.diferencial .section-tag { color: var(--gold); }
.diferencial-header { text-align: center; margin-bottom: 3.5rem; }
.diferencial-title {
  font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; color: var(--white); line-height: 1.25;
  max-width: 640px; margin: 0 auto 1rem;
}
.diferencial-sub {
  font-size: 1rem; color: rgba(255,255,255,.6);
  max-width: 520px; margin: 0 auto; line-height: 1.7;
}
.dif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  position: relative; z-index: 1;
}
.dif-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 1.75rem;
  transition: background .2s, border-color .2s;
}
.dif-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(200,169,110,0.4); }
.dif-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(200,169,110,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 20px;
}
.dif-card-title { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 0.6rem; }
.dif-card-text { font-size: 13.5px; color: rgba(255,255,255,.6); line-height: 1.65; }
.dif-highlight {
  grid-column: span 2;
  background: rgba(200,169,110,0.1);
  border-color: rgba(200,169,110,0.3);
  display: flex; align-items: center; gap: 2rem;
}
.dif-highlight-quote {
  font-family: var(--serif); font-size: 1.3rem; font-style: italic;
  color: var(--gold); line-height: 1.5; flex: 1;
}
.dif-highlight-stat { text-align: center; flex-shrink: 0; }
.dif-stat-num { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; color: var(--white); }
.dif-stat-label { font-size: 12px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; }

/* ── SERVICIOS ── */
.servicios { padding: 6rem 5%; background: var(--gray-bg); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title {
  font-family: var(--serif); font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 700; color: var(--indigo-dark); margin-bottom: .75rem;
}
.section-sub { font-size: 1rem; color: var(--gray-text); line-height: 1.7; max-width: 480px; margin: 0 auto; }
.serv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.serv-card {
  background: var(--white); border-radius: 14px;
  padding: 1.5rem; border: 1px solid var(--gray-light);
  transition: border-color .2s, transform .2s;
}
.serv-card:hover { border-color: var(--indigo-mid); transform: translateY(-3px); }
.serv-num { font-size: 11px; font-weight: 600; color: var(--gold); letter-spacing: .1em; margin-bottom: .75rem; }
.serv-title { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--indigo); margin-bottom: .5rem; }
.serv-text { font-size: 13px; color: var(--gray-text); line-height: 1.65; }
.serv-tag {
  display: inline-block; margin-top: .75rem;
  background: var(--indigo-light); color: var(--indigo);
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
}
.serv-legal { background: var(--indigo-light); border-color: transparent; }
.serv-legal .serv-tag { background: var(--indigo); color: var(--white); }

/* ── NOSOTROS ── */
.nosotros {
  padding: 6rem 5%;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  background: var(--white);
}
.nos-text .section-tag { color: var(--gold-dark); }
.nos-title { font-family: var(--serif); font-size: clamp(1.8rem, 2.5vw, 2.4rem); font-weight: 700; color: var(--indigo-dark); line-height: 1.25; margin-bottom: 1rem; }
.nos-body { font-size: 15px; color: var(--gray-text); line-height: 1.8; margin-bottom: 1.5rem; }
.nos-team { display: flex; flex-direction: column; gap: .75rem; }
.team-pill {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--gray-bg); border: 1px solid var(--gray-light);
}
.team-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--indigo); display: flex; align-items: center;
  justify-content: center; font-family: var(--serif);
  font-size: 13px; font-weight: 700; color: var(--white); flex-shrink: 0;
}
.team-avatar.gold { background: var(--gold); color: var(--indigo-dark); }
.team-name { font-size: 14px; font-weight: 500; color: var(--indigo); }
.team-role { font-size: 12px; color: var(--gray-text); }
.nos-visual {
  background: var(--indigo-light);
  border-radius: 20px; padding: 2.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.nos-value {
  background: var(--white); border-radius: 12px; padding: 1.25rem;
  display: flex; gap: 1rem; align-items: flex-start;
  border-left: 3px solid var(--gold);
}
.nos-value-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.nos-value-title { font-size: 14px; font-weight: 600; color: var(--indigo); margin-bottom: 4px; }
.nos-value-text { font-size: 13px; color: var(--gray-text); line-height: 1.55; }

/* ── FAQ ── */
.faq { padding: 6rem 5%; background: var(--gray-bg); }
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--gray-light); overflow: hidden;
}
.faq-q {
  padding: 1.1rem 1.25rem;
  font-size: 15px; font-weight: 500; color: var(--indigo);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--gold); font-weight: 300; transition: transform .25s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: 14px; color: var(--gray-text); line-height: 1.7;
  padding: 0 1.25rem;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 1.25rem 1.25rem; }

/* ── CONTACTO ── */
.contacto {
  padding: 6rem 5%;
  background: var(--indigo); position: relative; overflow: hidden;
}
.contacto::after {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(200,169,110,0.1);
}
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
  position: relative; z-index: 1;
}
.contact-text .section-tag { color: var(--gold); }
.contact-title { font-family: var(--serif); font-size: clamp(1.8rem, 2.5vw, 2.6rem); font-weight: 700; color: var(--white); line-height: 1.25; margin-bottom: 1rem; }
.contact-body { font-size: 15px; color: rgba(255,255,255,.65); line-height: 1.75; margin-bottom: 1.5rem; }
.contact-data { display: flex; flex-direction: column; gap: .75rem; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,.8); }
.contact-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(200,169,110,.15); display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: .04em; }
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: 12px 14px;
  color: var(--white); font-size: 14px; font-family: var(--sans);
  transition: border-color .2s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.35); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-gold {
  background: var(--gold); color: var(--indigo-dark);
  padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 600; border: none;
  cursor: pointer; font-family: var(--sans);
  transition: background .2s, transform .15s;
  align-self: flex-start;
}
.btn-gold:hover { background: #d4b87a; transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
  background: var(--indigo-dark);
  padding: 2rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.08);
}
footer p { font-size: 12px; color: rgba(255,255,255,.4); }
.footer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(200,169,110,.15); color: var(--gold);
  font-size: 11px; padding: 5px 12px; border-radius: 999px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-visual { display: none; }
  .nosotros { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .dif-highlight { grid-column: span 1; flex-direction: column; }
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
