/* Esto es para que en la computadora NO se vean las rayas */
.menu-toggle {
  display: none;
}

:root{
  --brand:#1E4BD8;
  --dark:#0f1f2a;
  --text:#111;
  --muted:#666;
  --line:#e9e9e9;
  --bg:#ffffff;
  --soft:#f5f6f8;
  --max-width:1280px;

  --radius:14px;
  --radius-sm:10px;
  --shadow: 0 14px 32px rgba(15,31,42,.10);
  --shadow-sm: 0 10px 22px rgba(15,31,42,.08);
}

/* RESET + BASE */
*{margin:0;padding:0;box-sizing:border-box;}
html,body{height:100%;}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
  color:var(--text);
  background:var(--bg);
  padding-top:0;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
p{line-height:1.7;}
:focus-visible{outline:3px solid rgba(30,75,216,.35); outline-offset:3px; border-radius:8px;}

/* CONTAINER */
.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 32px;
}

/* HEADER / NAV */
.header{
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background:#fff;
  border-bottom:1px solid var(--line);
  backdrop-filter:saturate(1.2) blur(8px);
}

.header-content{
  height:112px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.logo{
  height:110px;
  width:auto;
  display:block;
}

.nav{
  display:flex;
  align-items:center;
  gap:22px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav a{
  font-size:15px;
  color:#222;
  opacity:.88;
}
.nav a:hover{opacity:1;}
.nav a.is-active{opacity:1; font-weight:700;}

.btn-primary{
  background:var(--brand);
  color:#fff !important;
  font-weight:700;
  padding:10px 16px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{transform:translateY(-1px);}
.btn-primary:active{transform:translateY(0);}

/* LANG SWITCH (banderitas) */
.lang-switch{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:8px;
  font-size:16;
}

.lang-switch a{
  font-size:12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:10px;
  border:1px solid #e7e7e7;
  background:#fff;
  color:#222;
  transition:transform .12s ease, background .18s ease, border-color .18s ease;
  font-weight:800;
  letter-spacing:.06em;
}

.lang-switch a:hover{
  background:rgba(30,75,216,.08);
  border-color:rgba(30,75,216,.30);
  transform:translateY(-1px);
}

.lang-switch a.active{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}

/* LABEL TRIANGLE (▸) */
.section-label,
.services-label,
.value-label,
.services-banner-label{
  display:flex;
  align-items:center;
  gap:10px;
}
.section-label::before,
.services-label::before,
.value-label::before,
.services-banner-label::before{
  content:"▸";
  font-size:14px;
  opacity:.9;
}

/* ==========================================================================
   HERO SECTION (Versión Agencia Pro)
   ========================================================================== */

.hero {
  position: relative;
  height: 80vh; /* Aumentamos un poco la altura para más impacto */
  min-height: 600px;
  background: url("hero-bg.jpg") center center/cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Overlay en degradado: Protege el texto a la izquierda y muestra la foto a la derecha */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    rgba(15, 31, 42, 0.9) 0%, 
    rgba(15, 31, 42, 0.4) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Alineado a la izquierda para look de agencia */
  justify-content: center;
}

/* Línea decorativa lateral (Ajustada para que no estorbe) */
.hero-inner::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 10%;
  bottom: 10%;
  width: 4px;
  background: var(--brand, #4a90e2); /* Usa tu color de marca */
  border-radius: 10px;
  opacity: 0.8;
}

.hero h1 {
  color: #fff;
  font-weight: 800; /* Más peso visual */
  line-height: 1.1;
  font-size: clamp(45px, 5.5vw, 80px);
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  max-width: 800px;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 1.2vw, 22px);
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 40px;
  max-width: 550px;
}

/* BOTÓN "CONVERSEMOS" REDISEÑADO */
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: var(--brand, #2563eb);
  color: #fff;
  text-decoration: none;
  padding: 15px 35px;
  border-radius: 50px; /* Estilo píldora */
  font-weight: 600;
  font-size: 17px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  background: #1d4ed8; /* Un tono más oscuro al pasar el mouse */
}

.hero-btn span {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.hero-btn:hover span {
  transform: translateX(5px); /* Pequeña animación en la flecha */
}

/* SERVICES (Home cards) */
.services{
  padding:110px 0;
}

.services-header{
  max-width:900px;
  margin-bottom:56px;
}

.services-label{
  font-size:12px;
  letter-spacing:2px;
  text-transform:uppercase;
  margin-bottom:14px;
  color:#4a4a4a;
}

.services-header h2{
  font-size:clamp(44px,4.6vw,72px);
  font-weight:500;
  margin-bottom:22px;
  letter-spacing:-.02em;
}

.services-btn{
  display:inline-flex;
  align-items:center;
  gap:16px;
  font-size:13px;
  letter-spacing:1.2px;
  text-transform:uppercase;
  font-weight:800;
  color:#111;
}

.services-btn span{
  width:56px;
  height:56px;
  background:var(--brand);
  display:grid;
  place-items:center;
  color:#fff;
  border-radius:14px;
  box-shadow: var(--shadow-sm);
}

.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:34px;
}

.service-card{
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.service-card img{
  width:100%;
  height:240px;
  object-fit:cover;
}

.service-card h3{
  margin:16px 18px 0;
  font-size:18px;
  font-weight:800;
  letter-spacing:-.01em;
}

.service-card p{
  margin:10px 18px 18px;
  color:var(--muted);
  font-size:14px;
}

/* VALUE (Home banner “Nuestro valor”) */
.value{
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("nosotros-valor.jpg") center/cover no-repeat;
  padding:140px 0;
  color:#fff;
}

.value-content{
  max-width:760px;
  margin-left:72px;
  position:relative;
}

.value-label{
  font-size:12px;
  letter-spacing:2px;
  text-transform:uppercase;
  opacity:.92;
  margin-bottom:14px;
}

.value h2{
  font-size:clamp(46px,4.8vw,76px);
  font-weight:500;
  line-height:1.05;
  letter-spacing:-.02em;
  margin-bottom:14px;
}

.value p{
  max-width:640px;
  opacity:.92;
}

.value-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 14px 22px;
  background: var(--brand) !important;
  color: #ffffff !important;
  font-weight: 800;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-decoration: none !important;
}

/* Este va afuera para darle el "superpoder" al texto */
.value-btn, .value-btn * {
  color: #ffffff !important;
}


.value-btn span{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.14);
  border-radius:12px;
}

/* CTA */
.cta{
  background:#fff;
  padding:110px 0 60px;
}

.cta-content{
  text-align:center;
  max-width:900px;
  margin:auto;
}

.cta h2{
  font-size:clamp(36px,4vw,56px);
  font-weight:500;
  margin-bottom:14px;
  letter-spacing:-.02em;
}

.cta p{
  color:#555;
}

/* CONTACT */
.contact{
  background:#fff;
  padding:110px 0;
}

.contact-title{
  text-align:center;
  font-size:clamp(42px,4.6vw,64px);
  font-weight:600;
  letter-spacing:-.02em;
}

.contact-rule{
  height:1px;
  background:#d9d9d9;
  margin:20px auto 60px;
  width:100%;
}

.contact-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

.field input,
.field textarea{
  width:100%;
  background:#f3f3f3;
  border:1px solid #e6e6e6;
  padding:16px 18px;
  font-size:15px;
  border-radius:12px;
}

.field textarea{min-height:160px;}
.field-full{grid-column:1 / -1;}

.contact-submit{
  grid-column:1 / -1;
  height:56px;
  background:var(--brand);
  color:#fff;
  border:none;
  border-radius:12px;
  font-weight:900;
  letter-spacing:.06em;
  cursor:pointer;
  box-shadow: var(--shadow-sm);
}
.contact-submit:hover{transform:translateY(-1px);}
.contact-submit:active{transform:translateY(0);}

.contact-divider{
  width:80px;
  height:4px;
  background:var(--brand);
  margin:0 auto 40px;
  border-radius:99px;
}

/* SERVICES / ABOUT pages shared */
.services-hero{
  padding:90px 0 70px;
}

.services-hero-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:48px;
  align-items:center;
}

.services-hero-copy{max-width:760px;}

.services-title{
  font-size:clamp(46px,4.6vw,72px);
  font-weight:500;
  margin:18px 0 14px;
  line-height:1.05;
  letter-spacing:-.02em;
}

.services-intro{
  color:#555;
  line-height:1.7;
  font-size:15px;
  max-width:640px;
}

.services-hero-media img{
  width:100%;
  height:420px;
  object-fit:cover;
  border-radius:var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Cards grid (Servicios/Nosotros) */
.services-page{padding:90px 0;}
.section-head-center{text-align:center;}
.section-head h2{
  font-size:clamp(28px,3.2vw,42px);
  font-weight:600;
  margin-top:12px;
  letter-spacing:-.02em;
}
.section-head p{margin-top:10px;color:#555;}

.services-page-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px;
  margin-top:26px;
}

.svc-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px 22px;
  box-shadow: var(--shadow-sm);
}

.svc-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:10px;
}

.svc-icon{
  width:44px;
  height:44px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:var(--brand);
  color:#fff;
}
.svc-icon *{color:#fff !important; fill:#fff !important; stroke:#fff !important;}

.svc-card h2{
  font-size:18px;
  font-weight:900;
  margin:0;
  letter-spacing:-.01em;
}

.svc-text{
  color:#555;
  line-height:1.7;
  font-size:14px;
}

/* Banner (Servicios y Nosotros) con rayita naranja */
.services-banner{
  position:relative;
  padding:120px 0;
  background:url("nosotros-valor.jpg") center/cover no-repeat;
  color:#fff;
}

.services-banner-overlay{
  position:absolute;
  inset:0;
  background:rgba(15,31,42,.60);
}

.services-banner-inner{
  position:relative;
  max-width:920px;
  padding-left:22px;
  margin-left:72px;
}

.services-banner-inner::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:4px;
  background:var(--brand);
  border-radius:99px;
}

.services-banner-label{
  font-size:12px;
  letter-spacing:2px;
  opacity:.92;
  text-transform:uppercase;
}

.services-banner-inner h2{
  margin-top:14px;
  font-size:clamp(44px,4.2vw,64px);
  font-weight:500;
  line-height:1.08;
  letter-spacing:-.02em;
}

.services-banner-inner p{
  margin-top:12px;
  line-height:1.7;
  opacity:.92;
  max-width:720px;
  font-size:16px;
}

.services-banner-btn{
  display:inline-flex;
  align-items:center;
  gap:14px;
  margin-top:22px;
  padding:14px 22px;
  background:var(--brand);
  color:#fff;
  font-weight:900;
  border-radius:12px;
  box-shadow: var(--shadow);
}

.services-banner-btn span{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.14);
  border-radius:12px;
}

/* =================================================
   FOOTER REPARADO (LOGO PC + ESTRUCTURA)
   ================================================= */
.footer {
  background: #f5f5f5;
  padding: 40px 0 20px;
  border-top: 1px solid var(--line);
  display: block !important;
}

.footer-grid {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.footer-brand {
  flex: 1;
  display: block !important;
}

/* LOGO: Forzado para que se vea en PC */
.footer-logo, .logo-footer {
  width: 150px !important;
  height: auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #555;
  font-size: 14px;
  max-width: 300px;
  line-height: 1.5;
}

.footer-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 25px;
  font-weight: 900;
  color: #333;
}

.footer-col p {
  font-size: 14px;
  color: #555;
  margin: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 13px;
  color: #888;
}
/* AQUÍ TERMINA EL BLOQUE DEL FOOTER */

/* RESPONSIVE */
@media (max-width:980px){
  .services-grid{grid-template-columns:repeat(2,1fr);}
  .services-hero-grid{grid-template-columns:1fr;}
  .services-hero-media img{height:360px;}
  .services-page-grid{grid-template-columns:1fr;}
  .services-banner-inner{margin-left:0;}
  .value-content{margin-left:0;}
}

  /* 2. Formulario Pro y Uniforme */
  .contact-wrap { padding: 20px !important; }
  .contact-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .field, .field-full { width: 100% !important; grid-column: span 1 !important; }
  textarea { min-height: 100px !important; }
  .contact-submit { width: 100% !important; padding: 12px !important; }

  /* 3. Footer con Jerarquía Minimalista */
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 15px !important;
    padding: 20px !important;
  }
  .logo-footer {
    height: 28px !important; /* Logo pequeño y elegante */
    width: auto !important;
    margin-bottom: 5px !important;
  }
  .footer-brand p {
    font-size: 11px !important;
    color: #999 !important;
    line-height: 1.4 !important;
  }
  .footer-contact h3 {
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin: 10px 0 !important;
  }
  .footer-contact p {
    font-size: 12px !important;
    margin-bottom: 6px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    color: #666 !important;
  }
  .footer-bottom {
    margin-top: 15px !important;
    font-size: 10px !important;
    border-top: 1px solid #f0f0f0 !important;
  }
  
  .lang-switch a{padding:6px 8px; font-size:11px;}

  .hero{min-height:420px;}
  .hero-inner{padding-left:0;}
  .hero-inner::before{display:none;}
  .hero h1{font-size:42px;}
  .hero p{font-size:16px;}

  .services-grid{grid-template-columns:1fr;}
  .services-header h2{font-size:36px;}
  .services-banner-inner h2{font-size:36px;}
  .value h2{font-size:38px;}
  .contact-title{font-size:38px;}

  @media (max-width: 768px) {
  /* Cabecera y Logo Pro */
  .header-content { height: auto; padding: 10px 0; }
  .logo { height: 40px !important; width: auto !important; object-fit: contain !important; }
  .nav { gap: 8px; flex-wrap: wrap; justify-content: center; }
  .nav a { font-size: 12px; }

  /* Formulario Uniforme */
  .contact-wrap { padding: 20px !important; }
  .contact-form { display: flex !important; flex-direction: column !important; gap: 12px !important; }
  .field, .field-full { width: 100% !important; grid-column: span 1 !important; }
  
  /* Footer con Jerarquía Minimalista */
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 15px !important;
    padding: 20px !important;
  }
  .logo-footer { height: 28px !important; width: auto !important; margin-bottom: 5px !important; }
  .footer-brand p { font-size: 11px !important; color: #999 !important; }
  .footer-contact h3 { font-size: 12px !important; text-transform: uppercase; letter-spacing: 2px; margin: 10px 0; }
  .footer-contact p { font-size: 12px !important; margin-bottom: 6px !important; display: flex !important; justify-content: center !important; gap: 8px !important; color: #666 !important; }
  .footer-bottom { margin-top: 15px !important; font-size: 10px !important; border-top: 1px solid #f0f0f0 !important; }
}
.nav a{
transition: all .25s ease;
}

.nav a:hover{
color:#2563eb;
transform:scale(1.08);
}
/* =========================
FIX ICONO EMAIL DUPLICADO
========================= */

.footer-col a::before{
display:none;
}


/* =========================
MENU HOVER EFFECT
========================= */

.nav a{
transition: all .25s ease;
}

.nav a:hover{
color:#2563eb;
transform:scale(1.08);
}


/* =========================
SERVICES CARD EFFECT
========================= */

.svc-card{
transition: all .3s ease;
}

.svc-card:hover{
transform: translateY(-6px);
box-shadow:0 14px 35px rgba(0,0,0,0.08);
}


/* =========================
ICON ANIMATION
========================= */

.svc-icon{
transition: transform .25s ease;
}

.svc-card:hover .svc-icon{
transform: scale(1.1);
}


/* =========================
CONTACT BUTTON EFFECT
========================= */

.btn-primary{
transition: all .25s ease;
}

.btn-primary:hover{
transform: translateY(-2px);
box-shadow:0 8px 20px rgba(0,0,0,0.15);
}
/* HOME HERO BANNER: MISMO LOOK EN ES EN PT */

.services-hero .services-hero-copy{
max-width: 640px;
}

.services-hero .services-title{
font-size: clamp(44px, 5vw, 76px);
line-height: 1.04;
letter-spacing: -0.02em;
text-wrap: balance;
}

.services-hero .services-intro{
max-width: 560px;
line-height: 1.55;
opacity: 0.9;
}

.services-hero .services-label{
letter-spacing: 0.16em;
}
/* ZOOM EN TARJETAS DE SERVICIOS */

.svc-card{
overflow:hidden;
transition: transform .3s ease, box-shadow .3s ease;
}

.svc-card:hover{
transform: translateY(-6px);
box-shadow:0 14px 35px rgba(0,0,0,0.08);
}

.svc-card img{
transition: transform .35s ease;
}

.svc-card:hover img{
transform: scale(1.05);
}
/* CONTACTO: MÁS ESPACIO ENTRE CUADROS Y TEXTO */

.footer-col{
display:flex;
flex-direction:column;
gap:12px;
}

.footer-location {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* ESTE ES EL NUEVO ICONO ELEGANTE */
.footer-location::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: #555; /* Color gris elegante */
  flex-shrink: 0;
  
  /* CÓDIGO DEL PIN SÓLIDO (SVG) */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.footer-col p{
margin:0;
line-height:1.6;
}

.footer-col a{
display:inline-block;
margin-top:2px;
}
/* ZOOM EN IMÁGENES DE SERVICIOS (HOME) */

.services-grid img{
transition: transform .35s ease;
}

.services-grid img:hover{
transform: scale(1.06);
}
/* CONTACTO: ESPACIO ENTRE ICONO Y TEXTO */

/* 1. SEPARACIÓN PROFESIONAL DEL TÍTULO */
.footer-contact h3 {
  margin-bottom: 25px !important; /* El aire que le faltaba al título */
  font-weight: 900;
  color: #333;
  display: block;
}

/* 2. ESPACIADO ENTRE LÍNEAS DE CONTACTO */
.footer-contact p {
  margin-bottom: 15px !important; /* Más espacio entre teléfonos para que respire */
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

/* 3. EFECTO DE MOVIMIENTO (PRO) */
.footer-contact p:hover {
  transform: translateX(5px);
  color: #000;
}

/* Efecto de movimiento al pasar el mouse */
.footer-contact p:hover {
  transform: translateX(5px);
  color: #000;
}
/* Estilo base para todos los iconos del contacto */
.footer-email::before, .footer-phone::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #666; /* Gris elegante */
  margin-right: 8px;
  flex-shrink: 0;
}

/* Icono de SOBRE para el email */
.footer-email::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Icono de TELÉFONO */
.footer-phone::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.15 15.15 0 0 0 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.15 15.15 0 0 0 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* Contenedor principal: lo hacemos más estrecho */
.contact-wrap {
  max-width: 850px !important; 
  margin: 0 auto !important;
  padding: 40px 20px;
}

/* Título y decoraciones */
.contact-title {
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-align: center;
}

.contact-rule {
  width: 50px;
  height: 3px;
  background-color: #2563eb; /* Azul DSM Group */
  margin: 0 auto 40px;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Crea dos columnas */
  gap: 20px;
}

/* El Email y el Mensaje deben ocupar todo el ancho (las 2 columnas) */
.contact-form .field:nth-child(3),
.contact-form .field-full {
  grid-column: span 2;
}

/* En celulares, que vuelva a ser una sola columna */
@media (max-width: 600px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
  .contact-form .field:nth-child(3),
  .contact-form .field-full {
    grid-column: span 1;
  }
}
.field .label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #666;
}

.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.contact-form input:focus {
  border-color: #2563eb;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* El botón de enviar centrado y elegante */
.contact-submit {
  grid-column: span 2;
  justify-self: center; /* Centra el botón */
  background-color: #2563eb;
  color: white;
  padding: 12px 60px;
  border: none;
  border-radius: 50px; /* Estilo píldora, muy moderno */
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  transition: transform 0.2s ease;
}
/* AJUSTE DE JERARQUÍA PARA EL ENCABEZADO */
.contact-section h2:first-of-type {
    font-size: 40px !important; /* Más grande para que mande */
    margin-bottom: 10px !important; /* Menos espacio abajo */
    font-weight: 800;
}

.contact-section p:first-of-type {
    font-size: 18px !important;
    color: #666; /* Gris más suave para que no compita */
    margin-bottom: 30px !important; /* Acercamos el texto al formulario */
}

/* UNIR LAS PIEZAS */
.contact-wrap {
    margin-top: -20px !important; /* Subimos un poco el formulario para "pegarlo" al título */
}
/* UNIFICACIÓN DE SECCIÓN CONTACTO */
.contact-section-unified {
  padding: 60px 0;
  text-align: center;
  background-color: #fff;
}

/* Título Principal más imponente */
.contact-section-unified h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #1a1a1a;
}

/* Subtítulo suave */
.contact-section-unified p {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

/* LA ÚNICA LÍNEA AZUL (Elegante y centrada) */
.unified-divider {
  width: 60px;
  height: 4px;
  background-color: #2563eb; /* El azul de DSM Group */
  margin: 0 auto 30px;
  border-radius: 2px;
}

/* Título de Formulario secundario */
.contact-title {
  font-size: 20px;
  letter-spacing: 4px;
  color: #333;
  font-weight: 700;
  margin-bottom: 40px;
  text-transform: uppercase;
}

/* AJUSTE DEL FORMULARIO PARA QUE NO ESTÉ LEJOS */
.contact-wrap {
  max-width: 850px !important;
  margin: 0 auto !important;
  padding-top: 0 !important; /* Quitamos el espacio extra de arriba */
}
/* --- OPTIMIZACIÓN PARA CELULARES (PASO 1) --- */
@media (max-width: 768px) {
  
  /* 1. Darle aire a los lados para que no toque los bordes */
  .contact-wrap {
    padding: 20px !important;
    max-width: 100% !important;
  }

  /* 2. Forzar a que todos los campos ocupen el 100% del ancho (uno debajo del otro) */
  .contact-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
  }

  .field, .field-full {
    width: 100% !important;
    grid-column: span 1 !important; /* Anulamos el grid de escritorio */
  }

  /* 3. Asegurar que el cuadro de mensaje sea alto y ancho */
  textarea {
    min-height: 150px !important;
    width: 100% !important;
  }

  /* 4. Botón de enviar centrado y cómodo para el pulgar */
  .contact-submit {
    width: 100% !important; /* En móvil es mejor que el botón ocupe todo el ancho */
    margin-top: 10px !important;
    padding: 15px !important;
  }
  /* AJUSTE PARA EL BANNER INTERMEDIO DE SERVICIOS */
  .services-banner {
    padding: 60px 20px !important; /* Espacio arriba y abajo para que no esté apretado */
    min-height: auto !important;   /* Dejamos que el contenido mande en la altura */
  }

  /* Eliminación definitiva de la raya azul en móvil */
  section.services-banner .services-banner-inner {
    border-left: 0 !important;
    border-left-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .services-banner h2 {
    font-size: 28px !important;    /* Tamaño elegante para móvil */
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
    font-weight: 800 !important;
  }

  .services-banner p {
    font-size: 16px !important;    /* Lectura cómoda */
    line-height: 1.6 !important;   /* Espacio entre líneas para que no sea un bloque pesado */
    margin-bottom: 30px !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .services-banner-btn {
    display: inline-flex !important; /* Botón que respira pero no ocupa todo el ancho si no quieres */
    padding: 14px 28px !important;
    font-size: 16px !important;
  }
}
/* =================================================
   1. RECUPERAR LAS 3 COLUMNAS (PC)
   ================================================= */
.services-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important; /* Forza las 3 columnas */
  gap: 30px !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* =================================================
   2. TAMAÑO DE IMAGEN PERFECTO (Como tu captura)
   ================================================= */
.service-card img, .svc-card img {
  width: 100% !important;
  height: 200px !important;      /* Altura elegante, no gigante */
  object-fit: cover !important;  /* No se deforma la imagen */
  border-radius: 12px 12px 0 0 !important;
}

/* Ajuste para que en celulares se vea una sola columna */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr !important;
    padding: 0 20px !important;
  }
}
/* =================================================
   HEADER PRO MÓVIL: TODO EN UNA LÍNEA
   ================================================= */
@media (max-width: 768px) {
  /* Forzamos la línea única sin saltos */
  .header-content {
    display: flex !important;
    flex-direction: row !important; 
    justify-content: space-between !important;
    align-items: center !important;
    height: 65px !important;
    padding: 0 15px !important;
    flex-wrap: nowrap !important; /* Prohibido saltar de línea */
  }

  /* Logo fino y alineado a la izquierda */
  .logo {
    height: 26px !important; 
    width: auto !important;
    margin: 0 !important;
  }

  /* Contenedor de Botón + Banderas */
  .nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    width: auto !important;
  }

  /* Escondemos los textos (Inicio, Servicios) para que quepa todo */
  .nav a:not(.btn-primary) {
    display: none !important;
  }

  /* Botón de contacto compacto */
  .btn-primary {
    padding: 6px 12px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
    white-space: nowrap !important; /* Que el texto no se corte */
  }

  /* Banderas alineadas al botón */
  .lang-switch {
    display: flex !important;
    gap: 5px !important;
    margin: 0 !important;
  }

  .lang-switch a {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }
}
/* =================================================
   REPARACIÓN FINAL: FOOTER PRO (PC)
   ================================================= */
@media screen and (min-width: 1024px) {
  .footer {
    background: #f8f9fa !important; /* Gris suave original */
    padding: 60px 0 !important;
    text-align: left !important;
  }

  .footer-grid {
    display: flex !important;
    flex-direction: row !important; /* Vuelve a ser horizontal */
    justify-content: space-between !important;
    align-items: flex-start !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    gap: 50px !important;
  }

  /* 1. Logo y Texto (Izquierda) */
  .footer-brand {
    flex: 1 !important;
    text-align: left !important;
  }

  .footer-logo, .logo-footer {
    width: 140px !important; /* Tamaño Pro equilibrado */
    height: auto !important;
    margin: 0 0 20px 0 !important;
    display: block !important;
  }

  .footer-brand p {
    font-size: 14px !important;
    color: #666 !important;
    max-width: 300px !important;
  }

  /* 2. Contacto (Derecha) */
  .footer-col {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .footer-col h4 {
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #333 !important;
    margin-bottom: 25px !important;
    text-transform: uppercase !important;
  }

  /* EFECTO NEGRO AL PASAR EL MOUSE */
  .footer-contact p {
    color: #555 !important;
    font-size: 14px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: color 0.3s ease !important;
  }

  .footer-contact p:hover {
    color: #000000 !important; /* Vuelve a ponerse negro */
    cursor: pointer !important;
  }
}
/* EFECTO NEGRO TOTAL AL PASAR EL MOUSE */
.footer-contact p:hover, 
.footer-contact p:hover span, 
.footer-contact p:hover i {
  color: #000000 !important; /* Negro absoluto */
  font-weight: 600 !important; /* Se pone un poquito más gruesa la letra */
  cursor: pointer !important;
  transition: all 0.3s ease-in-out !important;
}

/* Para que los iconos también reaccionen */
.footer-contact p i {
  transition: color 0.3s ease !important;
}
/* =================================================
   1. RESCATE DE LOGO Y ESTRUCTURA EN PC
   ================================================= */
@media screen and (min-width: 1024px) {
  .footer-logo, .logo-footer {
    display: block !important;
    width: 150px !important; /* Recuperamos el tamaño del logo en PC */
    height: auto !important;
    margin: 0 0 20px 0 !important;
  }

  .footer-grid {
    display: flex !important;
    flex-direction: row !important; /* Columnas una al lado de la otra */
    justify-content: space-between !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .footer-brand {
    display: block !important;
    text-align: left !important;
  }
}

/* =================================================
   2. DISEÑO MÓVIL (CORREGIDO Y CENTRADO)
   ================================================= */
@media screen and (max-width: 768px) {
  /* Ocultamos títulos innecesarios */
  .footer-col h4 { display: none !important; }

  .footer-grid {
    display: flex !important;
    flex-direction: column !important; /* Apila todo verticalmente */
    align-items: center !important;    /* Centra todo horizontalmente */
    text-align: center !important;     /* Centra el texto */
    gap: 30px !important;              /* Espacio entre bloques */
  }

  .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Controlamos el logo para que no se vea gigante ni pequeño */
  .footer-logo, .logo-footer, .footer-brand img {
    width: 110px !important;
    height: auto !important;
    margin: 0 auto 10px !important;
  }

  .footer-brand p {
    font-size: 14px !important;
    max-width: 250px !important;
    margin: 0 auto !important;
  }

  /* Ajuste de Contacto: Uno debajo del otro */
  .footer-contact, .footer-col {
    display: flex !important;
    flex-direction: column !important; /* Cambiamos row por column */
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .footer-col p {
    display: flex !important;
    flex-direction: column !important; /* Texto y luego dato */
    align-items: center !important;
    margin-bottom: 5px !important;
    font-size: 14px !important;
  }
}
/* =================================================
   FOOTER AGENCIA ELITE (PC)
   ================================================= */
@media screen and (min-ui-width: 1025px) {
  /* Espacio mucho más compacto y elegante */
  .footer {
    padding: 25px 0 15px !important; 
  }

  .footer-grid {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    max-width: 1100px !important; /* Lo cerramos un poco para que no baile */
    margin: 0 auto !important;
  }

  /* BLOQUE IZQUIERDO: Logo + Eslogan */
  .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important; /* Espacio mínimo entre logo y texto */
    flex: 1 !important;
  }

  .footer-logo, .logo-footer, .footer-brand img {
    width: 170px !important;
    height: auto !important;
    margin-bottom: 0 !important;
  }

  .footer-brand p {
    font-size: 14px !important;
    line-height: 1.3 !important; /* Un poquito más apretado el texto */
    color: #777 !important;
    max-width: 280px !important;
    margin-top: -10px !important; /* <--- ESTA ES LA MAGIA: El número negativo lo succiona hacia arriba */
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    opacity: 0.9 !important;
}

  /* BLOQUE DERECHO: Contacto Ultra-Organizado */
  .footer-col {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important; /* Alineamos a la derecha para equilibrio */
    text-align: right !important;
  }

  .footer-col h4 {
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    font-weight: 800 !important;
    color: #111 !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid var(--brand); /* Rayita sutil bajo contacto */
    padding-bottom: 5px !important;
  }

  .footer-col p {
    font-size: 13px !important;
    margin-bottom: 10px !important;
    display: flex !important;
    flex-direction: row-reverse !important; /* Icono al final para alineación derecha */
    align-items: center !important;
    gap: 12px !important;
    color: #555 !important;
    transition: color 0.3s ease !important;
  }

  .footer-col p:hover {
    color: #000 !important;
  }

  /* Ajuste de iconos */
  .footer-col i, .footer-col span {
    font-size: 15px !important;
    color: #333 !important;
  }
}
/* =================================================
   HEADER SIEMPRE VISIBLE (STICKY)
   ================================================= */
.header {
  position: fixed !important; /* Cambiamos sticky por fixed para máxima compatibilidad */
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important; /* Lo ponemos por encima de TODO */
  background: rgba(255, 255, 255, 0.95) !important; /* Un toque de transparencia pro */
  backdrop-filter: blur(10px) !important; /* Efecto esmerilado */
  border-bottom: 1px solid var(--line) !important;
  transition: all 0.3s ease;
}

/* IMPORTANTE: Como el header ahora "flota", el contenido de abajo se va a subir. 
   Añadimos un margen al body para que nada quede tapado al inicio. */
body {
  padding-top: 112px !important; /* Esta es la altura de tu header-content */
}

/* --- ESTILO BASE HERO (PC) --- */
.hero {
  position: relative;
  height: 80vh; /* Altura pro para PC */
  display: flex;
  align-items: center;
  background-image: url('hero-bg.jpg'); /* ASEGÚRATE QUE ESTE SEA EL NOMBRE DE TU FOTO */
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Oscurece la foto para que se lea el texto */
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* =================================================
   1. PC: QUITAR BORDE NEGRO Y ALINEAR TEXTO
   ================================================= */
@media screen and (min-width: 1025px) {
  .header {
    background: #ffffff !important;
    height: 112px !important;
  }
  .nav {
    display: flex !important;
    background: transparent !important; /* QUITAMOS EL FONDO NEGRO */
    gap: 25px !important;
    width: auto !important;
  }
  .nav a {
    color: #222 !important; /* Texto oscuro como en tu foto */
    font-size: 16px !important;
    font-weight: 500 !important;
  }
  .lang-switch a {
    border: 1px solid #e7e7e7 !important; /* Los bordes grises de tu captura */
    padding: 8px 12px !important;
    background: #fff !important;
    color: #222 !important;
  }
}
@media (max-width: 768px) {
  /* 1. Logo y Header compactos */
  .header-content { 
    height: 70px !important; 
    padding: 0 25px !important; 
  }
  .logo { 
    height: 45px !important; 
  }
  /* 2. Las rayitas (Menu hamburguesa) */
  .menu-toggle {
    display: block !important;
    visibility: visible !important;
    color: #ffffff !important; /* Blancas para que resalten sobre tu banner oscuro */
    font-size: 32px !important;
    cursor: pointer !important;
    margin-left: auto !important; /* Esto asegura que se peguen a la derecha con aire */
  }

  /* 2. Mostrar las 3 rayas (Color oscuro para que se vean) */
  .menu-toggle {
    display: block !important;
    visibility: visible !important;
    color: #333 !important; 
    font-size: 32px !important;
    cursor: pointer !important;
  }

  /* 3. El Menú Desplegable (Sincronizado con tu Script "show") */
  #nav-menu {
    display: none !important; /* Escondido por defecto */
    flex-direction: column !important;
    position: absolute !important;
    top: 70px !important;
    left: 0 !important;
    width: 100% !important;
    background: #ffffff !important; /* Fondo blanco para que combine con tu PC */
    padding: 20px 0 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    z-index: 1000 !important;
  }

  /* ESTO ES LO QUE ACTIVA EL CLIC */
  #nav-menu.show {
    display: flex !important;
  }

  #nav-menu a {
    display: block !important;    /* <--- ESTO FUERZA A QUE SE VEAN */
    visibility: visible !important; /* <--- POR SI ACASO */
    color: #333 !important;
    padding: 15px !important;
    text-align: center !important;
    border-bottom: 1px solid #eee !important;
    width: 100% !important;
  }

  /* 4. Banderitas centradas en el móvil */
  .lang-switch {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-top: 15px !important;
  }
  /* --- TU DISEÑO ORIGINAL RESCATADO (NO TOCA EL HEADER) --- */
  .hero {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    min-height: 82vh !important;
    padding: 90px 24px 60px 24px !important; /* Mantiene tus 90px pero con aire a los lados */
    margin-top: 0 !important;
    background-image:
      linear-gradient(90deg, rgba(5, 12, 24, 0.82) 0%, rgba(5, 12, 24, 0.58) 38%, rgba(5, 12, 24, 0.18) 70%, rgba(5, 12, 24, 0.08) 100%),
      url('hero-bg.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
  }

  .hero::before {
    display: none !important;
    content: none !important;
  }

  .hero-overlay {
    display: none !important;
  }

  .hero-inner {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  .hero h1 {
    max-width: 280px !important;
    font-size: 42px !important;
    line-height: 0.95 !important;
    font-weight: 800 !important;
    letter-spacing: -1.8px !important;
    color: #ffffff !important;
    margin-bottom: 14px !important;
  }

  .hero h1 .blue-text,
  .hero h1 .blue {
    color: #60a5fa !important;
  }

  .hero p {
    max-width: 290px !important;
    font-size: 18px !important;
    line-height: 1.45 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    margin-bottom: 24px !important;
  }

  /* EL BOTÓN CON LA FLECHITA COMO EN TU FOTO */
  .value-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 14px 20px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28) !important;
  }

  .value-btn span {
    font-size: 16px !important;
    margin-left: 0 !important;
    color: #ffffff !important;
  }
}
/* --- AJUSTE SERVICIOS: IZQUIERDA Y FOTO CERCANA --- */
@media (max-width: 768px) {
  .services-hero {
    text-align: left !important;
    padding: 20px 25px 30px 25px !important;
  }

  .services-label {
    display: inline-block !important;
    background: #e0e7ff !important;
    color: #2563eb !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-bottom: 12px !important;
  }

  .services-label::before {
    content: "▶ " !important;
    font-size: 8px !important;
    vertical-align: middle !important;
    margin-right: 5px !important;
  }

  .services-title {
    font-size: 28px !important;
    line-height: 1.1 !important;
    color: #1a1a1a !important;
    margin-bottom: 15px !important;
    font-weight: 800 !important;
    letter-spacing: -0.8px !important;
    max-width: 320px !important;
  }

  .services-intro {
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #4b5563 !important;
    max-width: 100% !important;
    /* ESTO PEGA LA FOTO AL TEXTO */
    margin-bottom: 8px !important; 
  }

  .services-hero-media {
    margin-top: -10px !important; /* Bajamos la foto un poquito respecto al texto */
    padding-top: 0 !important;
  }

  .services-hero-media img {
    width: 100% !important;
    border-radius: 16px !important;
    display: block !important;
    margin: 0 !important;
  }

  /* --- CONTROL DE ESPACIO ABAJO DE LA FOTO --- */
  .services-hero {
    padding-bottom: 0 !important; 
    margin-bottom: 0 !important; 
  }

  .services-page {
    /* Cambiamos 5px por 25px para que la tarjeta de abajo respire */
    padding-top: 25px !important; 
  }

  .services-page-grid {
    margin-top: 0 !important;
  }
}
/* ==========================================================
   SUPER CAPA DE REFINAMIENTO ÉLITE - SOLO BANNER HERO
   ========================================================== */

#inicio.hero {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 85vh !important;
  
  /* AJUSTE 1: MOVIMIENTO SUTIL A LA IZQUIERDA */
  padding: 0 12% !important; /* Le damos más aire a la izquierda */
  
  /* AJUSTE 2: FOTO MÁS AZUL Y MENOS OSCURA (Overlay Azul Claro) */
  background-image: linear-gradient(90deg, 
    rgba(10, 25, 47, 0.65) 0%, 
    rgba(10, 25, 47, 0.1) 60%, 
    rgba(10, 25, 47, 0) 100%), 
    url('hero-bg.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  margin-top: 0 !important;
}

#inicio .hero-inner {
  text-align: left !important;
  max-width: 800px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 10 !important;
  
  /* AGREGADO 1: LÍNEA DE ACENTO FINA (A la izquierda del título) */
  border-left: 3px solid #2563eb; /* Tu azul de marca */
  padding-left: 40px !important; /* Espacio entre línea y texto */
}

#inicio h1 {
  color: #ffffff !important;
  
  /* AJUSTE 3: TÍTULO MÁS PEQUEÑO Y REFINADO */
  font-size: clamp(40px, 5vw, 65px) !important; /* Rango entre 40px y 65px */
  
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -2px !important;
  margin-bottom: 20px !important;
}

#inicio p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 20px !important;
  line-height: 1.6 !important;
  margin-bottom: 40px !important;
  max-width: 550px !important;
}

/* AGREGADO 2: AJUSTE DE BOTÓN PRO (Look Moderno) */
.hero-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  background-color: #2563eb !important;
  color: #ffffff !important;
  
  /* Pulido de padding para mejor balance */
  padding: 14px 35px !important; 
  
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25) !important;
}

.hero-btn:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35) !important;
}
/* ==========================================================
   CAMBIO FINAL: BOTÓN "CONTÁCTENOS" DEL HEADER
   ========================================================== */

/* Forzamos el fondo blanco y el texto azul */
.header .nav a.btn-primary {
    background-color: #ffffff !important;
    color: #2563eb !important; /* El azul de tu marca */
    border: 2px solid #2563eb !important; /* Borde azul para que resalte */
    transition: all 0.3s ease !important;
}

/* Efecto al pasar el mouse (Invertir colores) */
.header .nav a.btn-primary:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}
/* ==========================================================
   SOLUCIÓN DEFINITIVA: LIMPIEZA BANNER SERVICIOS (MÓVIL)
   ========================================================== */
@media screen and (max-width: 768px) {
  
  /* 1. Matamos la raya azul (el "before") */
  .services-banner-inner::before {
    display: none !important;
    content: none !important;
  }

  /* 2. Quitamos cualquier borde y ajustamos espacio */
  .services-banner-inner {
    border: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
  }

  /* 3. Bajamos el tamaño del título para que no se vea amontonado */
  .services-banner h2 {
    font-size: 26px !important;
    line-height: 1.2 !important;
    margin-top: 10px !important;
  }

  /* 4. Le damos aire al párrafo */
  .services-banner p {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 25px !important;
  }

  /* 5. Botón refinado y compacto */
  .services-banner-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 22px !important; /* Más delgado */
    font-size: 14px !important;    /* Letra más fina */
    border-radius: 10px !important;
  }

  .services-banner-btn span {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
  }
}
/* AJUSTE DE TÍTULO DE CONTACTO EN MÓVIL */
  .contact-section-unified h2 {
    font-size: 30px !important; /* Tamaño más refinado y legible */
    line-height: 1.1 !important;
    margin-bottom: 15px !important;
    padding: 0 10px !important; /* Evita que las letras toquen los bordes */
  }

  .contact-section-unified p {
    font-size: 16px !important; /* Texto un poco más pequeño para que no pese tanto */
    line-height: 1.4 !important;
    max-width: 90% !important; /* Lo cerramos un poco para que no sea un bloque ancho */
    margin: 0 auto 20px !important;
  }

  .contact-title {
    font-size: 14px !important; /* El "CONTÁCTENOS" más pequeño se ve más pro */
    letter-spacing: 3px !important;
    margin-top: 30px !important; /* Le da el aire que le faltaba antes del formulario */
  }
  /* AJUSTE PARA QUE LAS BANDERAS SE VEAN EN INGLÉS */
@media screen and (max-width: 768px) {
  .header-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important; /* Evita que las piezas salten de línea */
  }

  .lang-switch {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    order: 3 !important; /* Las pone a la derecha de todo */
    gap: 10px !important;
    margin-left: 10px !important;
  }

  .lang-switch a {
    font-size: 18px !important; /* Tamaño cómodo para tocar con el dedo */
    display: inline-block !important;
  }
}
/* ============================================================
   BLOQUE FINAL UNIFICADO Y LIMPIO (PC vs CELULAR)
   ============================================================ */

/* 1. REGLAS EXCLUSIVAS PARA COMPUTADORA */
@media screen and (min-width: 1025px) {
  .header-content {
    display: flex !important;
    justify-content: space-between !important;
    height: 112px !important;
  }
  .nav {
    margin-left: auto !important; 
    display: flex !important;
    gap: 25px !important;
    align-items: center !important;
  }
  .lang-switch {
    display: flex !important;
    margin-left: 20px !important;
    gap: 10px !important;
  }
  .menu-toggle {
    display: none !important;
  }
}

/* 2. REGLAS EXCLUSIVAS PARA CELULAR */
@media screen and (max-width: 1024px) {
  .header-content {
    height: 70px !important;
    display: flex !important;
    justify-content: space-between !important;
  }

  /* EL MENÚ DESPLEGABLE */
  #nav-menu.show {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 15px 0 !important; /* Reducimos el aire del menú */
  }

  /* CONTENEDOR DE BANDERAS: Ultra compacto */
  .nav .lang-switch {
    display: flex !important;
    justify-content: center !important;
    margin-top: 5px !important;    /* Casi pegadas al botón azul */
    padding: 0 !important;
    gap: 20px !important;           /* Espacio horizontal entre ellas */
    width: 100% !important;
    border: none !important;        /* Por si acaso */
  }

  /* LAS BANDERAS: Quitamos los cuadros grises/blancos */
  .nav .lang-switch a {
    background: none !important;    /* Borra el fondo blanco */
    border: none !important;        /* Borra el borde gris */
    box-shadow: none !important;    /* Borra la sombra */
    padding: 0 !important;          /* Borra el espacio interno */
    margin: 0 !important;
    font-size: 26px !important;     /* Tamaño de emoji elegante */
    min-width: auto !important;     /* Quita el ancho forzado */
    height: auto !important;        /* Quita el alto forzado */
  }

  /* Escondemos las banderas que sobran afuera */
  .header-content > .lang-switch {
    display: none !important;
  }
}