/* =====================================================
   UNOT CERRAJERO — Hoja de estilos principal
   Mobile-first · Responsive · Orientado a conversión
   ===================================================== */

/* 1. Variables */
:root {
  --azul:        #1E3A6E;
  --azul-light:  #2563EB;
  --naranja:     #F97316;
  --naranja-dk:  #EA6C0A;
  --verde:       #16A34A;
  --bg:          #F8FAFC;
  --bg-blue:     #EFF6FF;
  --text:        #0F172A;
  --muted:       #64748B;
  --border:      #E2E8F0;
  --white:       #FFFFFF;
  --sombra:      0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --sombra-md:   0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --sombra-lg:   0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --radio:       8px;
  --radio-lg:    16px;
  --trans:       .2s ease;
  --max-w:       1200px;
  --header-h:    68px;
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 3. Tipografía */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2.1rem); }
h3 { font-size: clamp(1.05rem, 3vw, 1.35rem); }
h4 { font-size: 1rem; }
p  { color: var(--muted); line-height: 1.7; }

/* 4. Layout */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }

section { padding: 3.5rem 0; }
@media (min-width: 768px) { section { padding: 5rem 0; } }

.seccion-header { text-align: center; margin-bottom: 2.5rem; }
.seccion-header h2 { color: var(--azul); margin-bottom: .6rem; }
.seccion-header p  { max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

/* 5. Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: var(--radio);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--trans);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary           { background: var(--naranja); color: var(--white); }
.btn-primary:hover     { background: var(--naranja-dk); transform: translateY(-1px); box-shadow: var(--sombra-md); }
.btn-blanco            { background: var(--white); color: var(--azul); }
.btn-blanco:hover      { background: var(--bg); transform: translateY(-1px); }
.btn-outline           { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover     { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-lg                { padding: 1rem 2.25rem; font-size: 1.125rem; }
.btn:focus-visible     { outline: 3px solid var(--naranja); outline-offset: 3px; }

/* 6. Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--azul);
  box-shadow: var(--sombra-md);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo img { height: 44px; width: auto; }
.logo-texto      { display: flex; flex-direction: column; }
.logo-nombre     { font-size: 1.1rem; font-weight: 700; color: var(--white); line-height: 1.1; }
.logo-sub        { font-size: .68rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .06em; }

/* Nav escritorio */
.site-nav { display: none; }
@media (min-width: 1024px) {
  .site-nav { display: flex; align-items: center; gap: 1.5rem; }
  .site-nav a {
    color: rgba(255,255,255,.8);
    font-size: .9rem;
    font-weight: 500;
    transition: color var(--trans);
    text-decoration: none;
    padding: .3rem 0;
    border-bottom: 2px solid transparent;
  }
  .site-nav a:hover, .site-nav a.activo {
    color: var(--white);
    border-bottom-color: var(--naranja);
  }
}

/* Teléfono header (tablet+) */
.header-tel { display: none; }
@media (min-width: 768px) {
  .header-tel {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--naranja);
    color: var(--white);
    padding: .55rem 1.25rem;
    border-radius: var(--radio);
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: background var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .header-tel:hover { background: var(--naranja-dk); }
  .header-tel svg   { width: 17px; height: 17px; }
}

/* 7. Menú hamburguesa */
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
@media (min-width: 1024px) { .menu-btn { display: none; } }
.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--trans);
}
.menu-btn.abierto span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.abierto span:nth-child(2) { opacity: 0; }
.menu-btn.abierto span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menú móvil */
.menu-movil {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--azul);
  z-index: 999;
  box-shadow: var(--sombra-lg);
  padding: .5rem 0 1rem;
}
.menu-movil.abierto { display: block; }
.menu-movil a {
  display: block;
  padding: .9rem 1.5rem;
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  transition: background var(--trans);
}
.menu-movil a:hover, .menu-movil a[aria-current] { background: rgba(255,255,255,.06); color: var(--white); }
.menu-movil .menu-tel {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .75rem 1rem 0;
  background: var(--naranja);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  padding: .9rem 1.25rem;
  border-radius: var(--radio);
  justify-content: center;
  border: none;
}

/* 8. Hero */
.hero {
  background: linear-gradient(140deg, #0D1F40 0%, var(--azul) 60%, #1A3A6E 100%);
  position: relative;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/hero.jpg') center / cover no-repeat;
  opacity: .12;
}
.hero-contenido {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(249,115,22,.14);
  border: 1px solid rgba(249,115,22,.35);
  color: #FDB97A;
  padding: .3rem .875rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.1rem;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 { color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,.3); margin-bottom: .9rem; }
.hero-subtitulo { color: rgba(255,255,255,.8); font-size: clamp(.95rem, 2.5vw, 1.1rem); margin-bottom: 1.4rem; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  margin-bottom: 2rem;
}
.hero-tag {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.88);
  padding: .28rem .75rem;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500;
}
.hero-telefono {
  display: block;
  font-size: clamp(1.85rem, 6vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.01em;
  margin-bottom: 1.5rem;
  text-decoration: none;
  transition: color var(--trans);
}
.hero-telefono:hover { color: #FDB97A; }
.hero-ctas { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
@media (min-width: 480px) { .hero-ctas { flex-direction: row; justify-content: center; } }
.hero-nota { color: rgba(255,255,255,.45); font-size: .78rem; margin-top: 1.25rem; }

/* 9. Franja de confianza */
.franja-trust {
  background: #152D5A;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.franja-trust .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.78);
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
}
.trust-item svg { width: 15px; height: 15px; color: var(--naranja); flex-shrink: 0; }

/* 10. Servicios */
.servicios { background: var(--white); }
.servicios-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .servicios-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .servicios-grid { grid-template-columns: repeat(3, 1fr); } }

.servicio-card {
  background: var(--bg);
  border-radius: var(--radio-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all var(--trans);
  display: flex;
  flex-direction: column;
}
.servicio-card:hover { border-color: var(--azul-light); box-shadow: var(--sombra-lg); transform: translateY(-3px); }
.servicio-icono {
  width: 54px;
  height: 54px;
  background: var(--bg-blue);
  border-radius: var(--radio);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}
.servicio-icono svg { width: 26px; height: 26px; color: var(--azul-light); }
.servicio-card h3   { color: var(--azul); margin-bottom: .65rem; }
.servicio-card p    { font-size: .93rem; flex-grow: 1; }

/* 11. Características */
.caracteristicas { background: var(--bg-blue); }
.caract-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .caract-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .caract-grid { grid-template-columns: repeat(4, 1fr); } }

.caract-item {
  background: var(--white);
  border-radius: var(--radio-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.caract-icono {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--azul), var(--azul-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.caract-icono svg { width: 28px; height: 28px; color: var(--white); }
.caract-item h4   { color: var(--azul); margin-bottom: .3rem; font-size: .95rem; }
.caract-item p    { font-size: .85rem; }

/* 12. Por qué Unot */
.por-que { background: var(--white); }
.porque-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) { .porque-grid { grid-template-columns: 1fr 1fr; } }
.porque-texto h2       { color: var(--azul); margin-bottom: .9rem; }
.porque-texto > p      { font-size: 1.03rem; margin-bottom: 1.75rem; }
.porque-lista          { display: flex; flex-direction: column; gap: 1rem; }
.porque-item           { display: flex; align-items: flex-start; gap: .875rem; }
.porque-check {
  width: 24px; height: 24px;
  background: var(--verde);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}
.porque-check svg       { width: 13px; height: 13px; color: var(--white); }
.porque-item-txt h4     { font-size: .93rem; font-weight: 700; color: var(--azul); margin-bottom: .2rem; }
.porque-item-txt p      { font-size: .86rem; }

/* CTA box dentro de por-qué */
.porque-cta-box {
  background: var(--azul);
  border-radius: var(--radio-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--white);
}
.porque-cta-box h3   { color: var(--white); margin-bottom: .5rem; }
.porque-cta-box > p  { color: rgba(255,255,255,.72); margin-bottom: 1.5rem; font-size: .95rem; }
.cta-tel-grande {
  display: block;
  font-size: clamp(1.65rem, 4.5vw, 2.1rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-decoration: none;
  transition: color var(--trans);
}
.cta-tel-grande:hover { color: #FDB97A; }

/* 13. Zonas */
.zonas { background: var(--bg); }
.zonas-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .zonas-grid { grid-template-columns: repeat(3, 1fr); } }
.zona-card {
  background: var(--white);
  border-radius: var(--radio-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  transition: all var(--trans);
}
.zona-card:hover          { border-color: var(--naranja); box-shadow: var(--sombra-md); }
.zona-pin                 { color: var(--naranja); margin-bottom: .5rem; }
.zona-pin svg             { width: 22px; height: 22px; }
.zona-card h3             { color: var(--azul); font-size: 1.05rem; margin-bottom: .4rem; }
.zona-card p              { font-size: .86rem; margin-bottom: .75rem; }
.zona-card a              { display: inline-flex; align-items: center; gap: .3rem; color: var(--azul-light); font-size: .86rem; font-weight: 600; text-decoration: none; transition: color var(--trans); }
.zona-card a:hover        { color: var(--naranja); }
.zona-card .zona-actual   { font-size: .8rem; font-weight: 600; color: var(--verde); display: inline-flex; align-items: center; gap: .3rem; }

/* 14. Sección CTA final */
.cta-final {
  background: linear-gradient(140deg, #0D1F40 0%, var(--azul) 100%);
  text-align: center;
  padding: 4.5rem 0;
}
.cta-final h2   { color: var(--white); margin-bottom: .7rem; }
.cta-final > .container > p {
  color: rgba(255,255,255,.72);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}
.cta-tel-hero {
  display: block;
  font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-decoration: none;
  letter-spacing: -.01em;
  transition: color var(--trans);
}
.cta-tel-hero:hover { color: #FDB97A; }
.cta-botones        { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
@media (min-width: 480px) { .cta-botones { flex-direction: row; justify-content: center; } }

/* 15. Footer */
.site-footer {
  background: #07121F;
  color: rgba(255,255,255,.65);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-marca h3 { color: var(--white); font-size: 1.2rem; margin-bottom: .5rem; }
.footer-marca p  { color: rgba(255,255,255,.55); font-size: .875rem; line-height: 1.65; margin-bottom: 1rem; }
.footer-tel      { display: inline-flex; align-items: center; gap: .4rem; color: var(--naranja); font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.footer-tel:hover { color: #FDB97A; }
.footer-col h4   { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.footer-col ul   { display: flex; flex-direction: column; gap: .55rem; }
.footer-col ul li a { color: rgba(255,255,255,.55); font-size: .875rem; text-decoration: none; transition: color var(--trans); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  text-align: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom p     { font-size: .78rem; color: rgba(255,255,255,.35); }
.footer-legales      { display: flex; gap: 1.25rem; }
.footer-legales a    { font-size: .78rem; color: rgba(255,255,255,.35); text-decoration: none; transition: color var(--trans); }
.footer-legales a:hover { color: rgba(255,255,255,.75); }

/* 16. Botón flotante (solo móvil) */
.flotante-llamar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 998;
  background: var(--naranja);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .95rem 1rem;
  text-decoration: none;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 -4px 16px rgba(0,0,0,.22);
  letter-spacing: .01em;
}
.flotante-llamar svg   { width: 21px; height: 21px; flex-shrink: 0; }
.flotante-llamar:hover { background: var(--naranja-dk); }
@media (min-width: 768px) {
  .flotante-llamar { display: none; }
  body { padding-bottom: 0; }
}

/* 17. Breadcrumb */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .55rem 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--muted);
}
.breadcrumb li + li::before { content: '/'; margin-right: .35rem; color: var(--border); }
.breadcrumb a { color: var(--azul-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* 18. Utilidades */
.text-center { text-align: center; }
.naranja     { color: var(--naranja); }
