/* =========================
   VARIABLES
========================= */
:root{
  --brand:#8b1e2d;
  --ink:#111;
  --muted:#5d6773;
  --bg:#fff;
  --dark:#111418;
  --accent:#5c8f88;
  --border:#ececec;
  --radius:12px;
  --max:1100px;
}

/* =========================
   RESET BÁSICO
========================= */
*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Helvetica,Arial;
  color:var(--ink);
  background:var(--bg);
}
img{max-width:100%;height:auto}
a{color:inherit}
main{min-height:60vh}

/* =========================
   HEADER
========================= */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:#fff;
  border-bottom:1px solid var(--border);
}
.header-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:.75rem 1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}

/* =========================
   LOGO
========================= */
.brand{
  display:flex;
  gap:.75rem;
  align-items:center;
  text-decoration:none;
  color:#111;
}
.brand-text strong{
  display:block;
  font-size:1rem;
}
.brand-text span{
  display:block;
  font-size:.85rem;
  opacity:.7;
}
/* =========================
   Imagen
========================= */
.tile-image{
  padding:0;
  overflow:hidden;
  border-radius:var(--radius);
}

.tile-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
/* =========================
   NAVEGACIÓN (DESKTOP)
========================= */
.nav{
  display:flex;
  align-items:center;
  gap:1.2rem;
}
.nav a{
  text-decoration:none;
  color:#1a1a1a;
  font-size:.95rem;
  padding:.4rem .2rem;
}

/* =========================
   DROPDOWN (DESKTOP - HOVER)
========================= */
.nav-dropdown{
  position:relative;
}

/* Menú oculto en desktop */
.dropdown-menu{
  position:absolute;
  top:100%;
  left:0;
  min-width:240px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:.4rem;
  display:none;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  z-index:9999;
}

/* Puente invisible para que no se cierre al bajar el ratón */
.dropdown-menu::before{
  content:"";
  position:absolute;
  top:-12px;
  left:0;
  right:0;
  height:12px;
}

/* Abrir dropdown con hover y con teclado */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu{
  display:block;
}

/* Items dropdown */
.dropdown-menu a{
  display:block;
  padding:.55rem .7rem;
  border-radius:10px;
  white-space:nowrap;
}
.dropdown-menu a:hover{
  background:#f5f5f5;
}

/* =========================
   BOTONES
========================= */
.btn-call{
  background:var(--brand);
  color:#fff !important;
  padding:.55rem .9rem;
  border-radius:10px;
  font-weight:700;
  text-decoration:none;
}
.btn-primary{
  background:var(--brand);
  color:#fff;
  padding:.9rem 1.25rem;
  border-radius:10px;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
}
.btn-primary:hover{filter:brightness(.92)}

/* =========================
   TOGGLE MÓVIL
========================= */
.nav-toggle{
  display:none;
  background:transparent;
  border:1px solid #ddd;
  border-radius:10px;
  padding:.5rem .7rem;
}
.sr-only{
  position:absolute;
  left:-9999px;
}

/* =========================
   CONTENIDO
========================= */
.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 1rem;
}

/* HERO */
.page-hero{
  padding:5rem 1rem;
  background:linear-gradient(135deg,#2b2f36,#111418);
  color:#fff;
  text-align:center;
}
.page-hero h1{
  margin:0;
  font-size:2.2rem;
}
.hero-sub{
  margin-top:.75rem;
  opacity:.9;
}

/* =========================
   SECCIONES
========================= */
.content{
  max-width:980px;
  margin:0 auto;
  padding:3rem 1rem;
}
.intro{
  font-size:1.1rem;
  margin-bottom:1.5rem;
  color:#1f2a35;
}
.highlight{
  background:var(--accent);
  color:#fff;
  padding:1rem 1.5rem;
  border-radius:8px;
  margin:1.5rem 0 2rem;
}

/* =========================
   SECCIÓN INTRO (QUIÉNES SOMOS / SERVICIOS)
========================= */
.intro-section{
  background:#f4f5f6;          /* gris muy suave */
  padding:4rem 1rem;
}

.intro-inner{
  max-width:var(--max);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:2rem;
}

.intro-box{
  background:#fff;
  border-radius:var(--radius);
  padding:2.2rem 2rem;
  box-shadow:0 10px 25px rgba(0,0,0,.04);
}

.intro-box h2{
  margin-top:0;
  margin-bottom:.75rem;
  font-size:1.35rem;
}

.intro-box p{
  color:var(--muted);
  line-height:1.6;
  margin-bottom:1.5rem;
}
/* LISTAS */
.check-list{
  list-style:none;
  padding:0;
  margin:0;
}
.check-list li{
  padding-left:1.5rem;
  margin:.75rem 0;
  position:relative;
  color:#1f2a35;
}
.check-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  color:var(--accent);
  font-weight:800;
}

/* =========================
   TARJETAS
========================= */
.cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1.25rem;
  margin-top:2rem;
}
.card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.4rem;
  background:#fff;
  box-shadow:0 10px 25px rgba(0,0,0,.04);
}
.card h2{
  margin:.2rem 0 .5rem;
  font-size:1.15rem;
}
.card p{
  margin:0 0 1rem;
  color:var(--muted);
}

/* GRID SERVICIOS */
.grid5{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.25rem;
  margin:2.5rem 0;
}
.grid5 .tile{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.2rem;
  background:#fff;
}
.grid5 .tile h3{
  margin:.1rem 0 .4rem;
  font-size:1rem;
}
.grid5 .tile p{
  margin:0;
  color:var(--muted);
  font-size:.95rem;
}
.grid5 .tile a{
  display:inline-block;
  margin-top:.75rem;
  color:var(--brand);
  text-decoration:none;
  font-weight:700;
}

/* =========================
   FOOTER
========================= */
.site-footer{
  background:var(--dark);
  color:#fff;
  margin-top:4rem;
}
.footer-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:3rem 1rem;
  display:grid;
  gap:1.5rem;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.footer-col h3{
  margin:0 0 .8rem;
  font-size:1.05rem;
}
.site-footer a{
  color:#fff;
  text-decoration:none;
  opacity:.9;
}
.site-footer a:hover{
  opacity:1;
  text-decoration:underline;
}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  padding:1rem;
  text-align:center;
  opacity:.85;
  font-size:.9rem;
}

/* =========================
   RESPONSIVE (MÓVIL)
========================= */
@media (max-width:900px){

  .nav-toggle{
    display:inline-flex;
    align-items:center;
    gap:.4rem;
  }

  /* Contenedor del menú móvil */
  .nav{
    display:none;
    position:absolute;
    right:1rem;
    top:64px;
    flex-direction:column;
    align-items:flex-start;
    text-align:left;
    width:min(92vw,360px);
    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
    padding:1rem .8rem;
    box-shadow:0 12px 26px rgba(0,0,0,.12);
  }

  .nav.is-open{
    display:flex;
  }
  .intro-inner{
    grid-template-columns:1fr;
  }
  /* Links principales */
  .nav > a,
  .nav > .nav-dropdown > a{
    width:100%;
    padding:.75rem .4rem;
    border-radius:10px;
    font-weight:600;
  }

  .nav > a:hover,
  .nav > .nav-dropdown > a:hover{
    background:#f5f5f5;
  }

  /* Dropdown en móvil: siempre en vertical */
  .nav-dropdown{
    width:100%;
  }

  .dropdown-menu{
    position:static;
    display:block;
    width:100%;
    margin:0;
    padding:.25rem 0 .75rem 1rem;
    border:0;
    box-shadow:none;
  }

  .dropdown-menu::before{ display:none; }

  .dropdown-menu a{
    display:block;
    width:100%;
    white-space:normal;
    padding:.45rem 0;
    font-weight:400;
    border-radius:8px;
  }

  .dropdown-menu a:hover{
    background:#f5f5f5;
  }

  /* Botón llamar ahora */
  .btn-call{
    width:100%;
    text-align:left;
    padding:.75rem .9rem;
    margin-top:.5rem;
  }

  /* Resto responsive */
  .footer-inner{grid-template-columns:1fr 1fr}
  .cards{grid-template-columns:1fr}
  .grid5{grid-template-columns:1fr}
  .page-hero{padding:4rem 1rem}
}

@media (max-width:560px){
  .footer-inner{grid-template-columns:1fr}
}