/* ============================================
   A.E.F. Soluciones Eléctricas & Electrónicas
   Hoja de estilos principal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ── Variables ── */
:root {
  --azul: #006FE6;
  --azul-brillante: #00A8FF;
  --azul-neon: #00C8FF;
  --azul-noche: #031A33;
  --azul-marino: #06284A;
  --azul-claro: #E6F4FF;
  --blanco: #FFFFFF;
  --gris-claro: #F4F8FC;
  --texto: #0B1F38;
  --texto-secundario: #5C7188;
  --line: #D8E4F0;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --rojo: #DC2626;
  --rojo-dark: #B91C1C;
  --rojo-light: #EF4444;
  --amarillo: #FCD34D;
  --verde: #34D399;
  --shadow-sm: 0 2px 8px rgba(3, 26, 51, .06);
  --shadow-md: 0 12px 28px rgba(3, 26, 51, .1);
  --shadow-lg: 0 18px 45px rgba(3, 26, 51, .14);
  --radius: 6px;
  --radius-sm: 4px;
  --transition: .28s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--texto);
  background: var(--gris-claro);
  line-height: 1.5;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
svg { display: block; }

/* ── Layout ── */
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

/* ── Tipografía ── */
h1, h2, h3 { font-family: 'Manrope', sans-serif; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(36px, 5vw, 58px); margin-bottom: 20px; }
h2 em, h1 em { color: var(--azul); font-style: normal; }
h3 { font-size: 22px; }

.eyebrow {
  color: var(--azul);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--azul-neon); display: flex; align-items: center; gap: 10px; }
.eyebrow-light span { display: block; width: 24px; height: 2px; background: var(--azul-brillante); }

/* ── Header ── */
.site-header {
  height: 80px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216, 228, 240, .7);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(3, 26, 51, .08); }
.nav-wrap { display: flex; align-items: center; gap: 38px; width: 100%; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo-image { display: block; width: 150px; height: auto; max-height: 56px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav a {
  color: var(--texto-secundario);
  position: relative;
  font-size: 13px;
  font-weight: 600;
  transition: color var(--transition);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 2px;
  background: var(--azul);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--azul); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-call { display: flex; gap: 9px; align-items: center; padding-left: 22px; border-left: 1px solid var(--line); }
.header-call-icon { display: grid; place-items: center; width: 30px; height: 30px; color: var(--azul); border-radius: 50%; background: var(--azul-claro); }
.header-call-icon svg { width: 15px; height: 15px; }
.header-call-text { display: flex; flex-direction: column; gap: 3px; }
.header-call-text small { color: var(--texto-secundario); font-size: 9px; }
.header-call-text strong { color: var(--azul-noche); font-size: 13px; }
.menu-toggle { display: none; color: var(--azul-noche); padding: 7px; }
.menu-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ── Hero ── */
.hero { min-height: 650px; color: var(--blanco); overflow: hidden; position: relative; background: var(--azul-noche); }
.hero::before {
  content: '';
  width: 62%; height: 100%;
  position: absolute; right: 0; top: 0;
  background: linear-gradient(100deg, var(--azul-noche) 0%, rgba(3, 26, 51, .62) 43%, rgba(3, 26, 51, .1) 100%),
    url('https://images.pexels.com/photos/37591155/pexels-photo-37591155.jpeg?auto=compress&cs=tinysrgb&h=650&w=940') center/cover;
  opacity: .86;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0, 200, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, .09) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}
.hero-content {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}
.hero-copy { padding-top: 30px; }
.hero h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(46px, 6.3vw, 76px); line-height: .99; }
.hero h1 em { color: var(--azul-neon); }
.hero-lead { max-width: 480px; color: #A8C4DE; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin: 32px 0 28px; flex-wrap: wrap; }

/* ── Buttons ── */
.button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.button:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.button-primary { color: var(--blanco); background: var(--azul); }
.button-primary:hover { background: var(--azul-brillante); }
.button-whatsapp { color: var(--blanco); background: var(--whatsapp); }
.button-whatsapp svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.button-whatsapp:hover { background: var(--whatsapp-dark); }

/* ── Trust line ── */
.trust-line { display: flex; align-items: center; gap: 8px; color: #8AA8C4; font-size: 10px; }
.trust-line span { color: var(--azul-neon); display: flex; }
.trust-line svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.trust-line i { width: 3px; height: 3px; margin: 0 4px; border-radius: 50%; background: #4A6E94; }

/* ── Hero visual ── */
.hero-visual { min-height: 400px; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-photo-frame {
  width: min(500px, 100%);
  height: 360px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 200, 255, .55);
  border-radius: var(--radius-sm);
  transform: rotate(2deg);
  box-shadow: 20px 25px 0 rgba(6, 40, 74, .5);
  transition: transform .5s ease;
}
.hero-photo-frame:hover { transform: rotate(0deg); }
.hero-photo-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 26, 51, .45), transparent 55%); }
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-floating-card {
  position: absolute;
  left: 4%; bottom: 30px;
  display: flex; gap: 12px;
  align-items: center;
  padding: 15px 18px;
  background: rgba(255, 255, 255, .96);
  color: var(--azul-noche);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.float-icon { display: grid; place-items: center; width: 32px; height: 32px; color: var(--azul); background: var(--azul-claro); border-radius: 50%; }
.float-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hero-floating-card > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.hero-floating-card strong { font: 700 12px 'Manrope', sans-serif; }
.hero-floating-card small { color: var(--texto-secundario); font-size: 10px; }
.hero-accent { position: absolute; top: 0; right: 4%; color: rgba(0, 200, 255, .75); }
.hero-accent svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: .8; }
.hero-bottom {
  display: flex; justify-content: space-between;
  align-items: center;
  position: relative; z-index: 1;
  padding-bottom: 25px;
  color: #6E92B4; font-size: 10px;
  text-transform: uppercase; letter-spacing: .12em;
}
.hero-scroll { display: flex; align-items: center; gap: 10px; color: #94B0CE; }
.hero-scroll span { display: block; width: 32px; height: 1px; background: var(--azul); }
.hero-coordinate { color: #4E7396; }

/* ── Sections ── */
.section { padding: 110px 0; }
.services-section { background: var(--gris-claro); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 54px; }
.section-heading h2 { margin-bottom: 0; }
.heading-note { max-width: 360px; margin: 0 0 8px; color: var(--texto-secundario); font-size: 14px; line-height: 1.7; }

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
  min-height: 355px;
  padding: 28px 24px;
  background: var(--blanco);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--azul);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { border-color: #99CCF5; transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 26px; color: var(--azul); background: var(--azul-claro); border-radius: var(--radius-sm); }
.service-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.service-card .eyebrow { margin-bottom: 9px; font-size: 9px; }
.service-card h3 { margin-bottom: 9px; color: var(--azul-noche); font-size: 23px; }
.service-text { min-height: 45px; margin-bottom: 17px; color: var(--texto-secundario); font-size: 12px; line-height: 1.55; }
.service-card ul { margin-bottom: 23px; }
.service-card li { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; color: #3E5974; font-size: 11px; }
.service-card li svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--azul); fill: none; stroke: currentColor; stroke-width: 2.2; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--azul); font-size: 11px; font-weight: 800; }
.text-link svg { transition: transform .2s; }
.text-link:hover svg { transform: translateX(4px); }

/* ── Work section ── */
.work-section { padding: 110px 0; color: var(--blanco); background: var(--azul-noche); overflow: hidden; position: relative; }
.work-section::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  right: -180px; top: -120px;
  border: 1px solid rgba(0, 168, 255, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(0, 168, 255, .04), 0 0 0 90px rgba(0, 168, 255, .03);
}
.section-heading.light h2 { color: var(--blanco); }
.outline-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 0; color: #A6CAE8; font-size: 11px; font-weight: 700; border-bottom: 1px solid #2B6598; }
.outline-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s; }
.outline-link:hover svg { transform: translateX(4px); }
.work-grid { display: grid; grid-template-columns: 1.35fr .82fr .82fr; gap: 16px; }
.work-card { min-height: 360px; position: relative; overflow: hidden; background: var(--azul-marino); border-radius: var(--radius); }
.work-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 26, 51, .95), transparent 62%); }
.work-card img { width: 100%; height: 100%; position: absolute; object-fit: cover; opacity: .85; transition: transform .6s ease; }
.work-card:hover img { transform: scale(1.07); }
.work-card > div { position: absolute; left: 24px; right: 18px; bottom: 24px; z-index: 1; }
.work-card div span { display: block; margin-bottom: 13px; color: var(--azul-brillante); font: 700 12px 'Manrope', sans-serif; }
.work-card strong { display: block; font: 700 18px 'Manrope', sans-serif; }
.work-card small { display: block; margin-top: 6px; color: #A7C1D9; font-size: 11px; }

/* ── About ── */
.about-section { background: var(--blanco); }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 100px; }
.about-visual { height: 475px; position: relative; }
.about-photo { width: 78%; height: 100%; overflow: hidden; border: 8px solid var(--gris-claro); border-radius: var(--radius); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.experience-badge {
  width: 130px; height: 130px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: absolute;
  bottom: 38px; right: 0;
  color: var(--blanco);
  text-align: center;
  background: var(--azul);
  border: 8px solid var(--blanco);
  border-radius: var(--radius);
}
.experience-badge strong { font: 800 36px 'Manrope', sans-serif; line-height: 1; }
.experience-badge span { margin-top: 5px; font-size: 10px; line-height: 1.25; text-transform: uppercase; letter-spacing: .08em; }
.about-copy > p:not(.eyebrow) { max-width: 500px; color: var(--texto-secundario); font-size: 14px; line-height: 1.75; }
.about-signature { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.signature-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--blanco); background: var(--azul-noche); border-radius: var(--radius-sm); }
.signature-mark svg { width: 20px; height: 20px; fill: none; stroke: var(--azul); stroke-width: 1.8; }
.about-signature > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.about-signature strong { font: 800 17px 'Manrope', sans-serif; color: var(--azul-noche); }
.about-signature small { font-size: 10px; color: var(--texto-secundario); }

/* ── Process ── */
.process-section { padding: 110px 0 120px; color: var(--blanco); background: var(--azul-marino); }
.centered { display: block; text-align: center; }
.centered > p:last-child { max-width: 440px; margin: 17px auto 0; color: #9BB3CC; font-size: 13px; line-height: 1.6; }
.process-grid { display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr 30px 1fr; align-items: center; margin-top: 70px; }
.process-step { text-align: center; }
.step-number { display: block; margin-bottom: 20px; color: var(--azul-neon); font: 700 12px 'Manrope', sans-serif; }
.step-icon {
  display: grid; place-items: center;
  width: 63px; height: 63px;
  margin: 0 auto 18px;
  color: var(--azul-neon);
  border: 1px solid #2A6BA8;
  border-radius: 50%;
  background: #0E3A66;
  transition: transform var(--transition), border-color var(--transition);
}
.step-icon:hover { transform: scale(1.1); border-color: var(--azul-neon); }
.step-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.process-step h3 { margin-bottom: 8px; font-size: 16px; }
.process-step p { max-width: 170px; margin: auto; color: #93ADCA; font-size: 11px; line-height: 1.5; }
.process-line { height: 1px; background: #2A5E8B; }

/* ── Emergency section ── */
.emergency-section {
  padding: 70px 0;
  color: var(--blanco);
  background: linear-gradient(135deg, #B91C1C 0%, #DC2626 30%, #EF4444 60%, #DC2626 100%);
  position: relative;
  overflow: hidden;
}
.emergency-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(127, 29, 29, .6), transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(239, 68, 68, .4), transparent 55%),
    radial-gradient(ellipse at 60% 80%, rgba(185, 28, 28, .5), transparent 50%);
  pointer-events: none;
}
.emergency-pulse-rings { position: absolute; left: 12%; top: 50%; transform: translateY(-50%); width: 200px; height: 200px; pointer-events: none; }
.emergency-pulse-rings::before, .emergency-pulse-rings::after {
  content: '';
  position: absolute; inset: 0;
  border: 2px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  animation: emergency-pulse 3s ease-out infinite;
}
.emergency-pulse-rings::after { animation-delay: 1.5s; }
@keyframes emergency-pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }
.emergency-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; z-index: 1; }
.emergency-alert-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; margin-bottom: 22px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em;
}
.alert-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amarillo); box-shadow: 0 0 8px var(--amarillo); animation: alert-blink 1.2s ease-in-out infinite; }
@keyframes alert-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.emergency-copy { flex: 1; }
.emergency-icon-row { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.emergency-siren {
  display: grid; place-items: center;
  width: 56px; height: 56px; flex-shrink: 0;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  animation: siren-glow 2s ease-in-out infinite;
}
@keyframes siren-glow { 0%, 100% { box-shadow: 0 0 12px rgba(252, 211, 77, .4); } 50% { box-shadow: 0 0 24px rgba(252, 211, 77, .7); } }
.emergency-siren svg { width: 28px; height: 28px; }
.emergency-copy h2 { margin: 0; font-size: clamp(32px, 4vw, 46px); line-height: 1.05; }
.emergency-copy p { max-width: 460px; margin: 0 0 28px; color: #FECACA; font-size: 14px; line-height: 1.7; }
.emergency-copy p strong { color: #FDE68A; }
.emergency-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button-emergency-call { color: var(--rojo-dark); background: var(--blanco); }
.button-emergency-call:hover { background: #FEF2F2; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.btn-phone-icon { display: grid; place-items: center; }
.btn-phone-icon svg { width: 16px; height: 16px; }
.button-emergency-wa { color: var(--blanco); background: var(--whatsapp); }
.button-emergency-wa:hover { background: var(--whatsapp-dark); box-shadow: 0 12px 30px rgba(37, 211, 102, .4); }
.btn-wa-icon { display: grid; place-items: center; }
.btn-wa-icon svg { width: 18px; height: 18px; }
.emergency-contact-card {
  display: flex; align-items: center; gap: 18px;
  padding: 26px 32px;
  background: rgba(0, 0, 0, .2);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.emergency-phone-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  animation: phone-ring 2.5s ease-in-out infinite;
}
@keyframes phone-ring {
  0%, 100% { transform: rotate(0); }
  2% { transform: rotate(-12deg); } 4% { transform: rotate(12deg); }
  6% { transform: rotate(-12deg); } 8% { transform: rotate(12deg); }
  10% { transform: rotate(0); }
}
.emergency-phone-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blanco); stroke-width: 1.6; }
.emergency-contact-info { display: flex; flex-direction: column; gap: 5px; }
.emergency-contact-info small { color: #FCA5A5; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.emergency-contact-info strong { font: 800 26px 'Manrope', sans-serif; letter-spacing: -.02em; }
.emergency-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; color: #FDE68A; font-size: 11px; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 6px var(--verde); animation: status-blink 1.5s ease-in-out infinite; }
@keyframes status-blink { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* ── Contact ── */
.contact-section { background: var(--gris-claro); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: start; }
.contact-copy > p:not(.eyebrow) { max-width: 390px; color: var(--texto-secundario); font-size: 14px; line-height: 1.7; }
.contact-details { display: grid; gap: 18px; margin-top: 35px; }
.contact-details > * { display: flex; gap: 13px; align-items: center; }
.contact-details > * > span { display: grid; place-items: center; width: 38px; height: 38px; color: var(--azul); background: var(--azul-claro); border-radius: var(--radius-sm); }
.contact-details svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.contact-details > * > div { display: flex; flex-direction: column; gap: 3px; }
.contact-details small { color: var(--texto-secundario); font-size: 10px; }
.contact-details strong { color: var(--azul-noche); font-size: 13px; }
.contact-form { padding: 38px; background: var(--blanco); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.contact-form label { display: block; margin-bottom: 18px; color: var(--azul-noche); font-size: 11px; font-weight: 700; }
.contact-form label > span { color: var(--texto-secundario); font-weight: 400; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-top: 8px; padding: 13px 14px;
  color: var(--azul-noche);
  border: 1px solid var(--line);
  outline: none;
  border-radius: var(--radius-sm);
  background: #FBFDFF;
  font-size: 12px;
  transition: border .2s, box-shadow .2s;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(0, 111, 230, .1); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #A6B4C4; }
.form-note { display: inline-block; margin: 0 0 0 13px; color: var(--texto-secundario); font-size: 10px; vertical-align: middle; }
.form-success { display: none; margin: 15px 0 0; color: var(--whatsapp); font-size: 12px; font-weight: 700; }
.form-success.visible { display: block; }

/* ── Footer ── */
.site-footer { color: #AAC1D8; background: #021428; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px 0; }
.brand-footer .brand-copy strong { color: var(--blanco); }
.brand-logo-footer { width: 140px; max-height: 50px; }
.footer-main > p { margin: 0; color: #6694BA; font-size: 10px; text-transform: uppercase; letter-spacing: .18em; }
.footer-links { display: flex; flex-direction: column; align-items: end; gap: 8px; font-size: 11px; }
.footer-links a { display: flex; align-items: center; gap: 7px; transition: color .2s; }
.footer-links a:hover { color: var(--azul-neon); }
.footer-links svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; padding: 17px 0; color: #527393; border-top: 1px solid #143052; font-size: 10px; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── WhatsApp float ── */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 14px;
  color: #fff; background: var(--whatsapp);
  border-radius: 50px;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .35), 0 4px 10px rgba(0, 0, 0, .12);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.whatsapp-float:hover { transform: translateY(-3px); background: var(--whatsapp-dark); box-shadow: 0 14px 34px rgba(37, 211, 102, .45), 0 6px 14px rgba(0, 0, 0, .16); }
.whatsapp-float-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; background: rgba(255, 255, 255, .18); border-radius: 50%; }
.whatsapp-float-icon svg { width: 26px; height: 26px; fill: #fff; }
.whatsapp-float-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
.whatsapp-float-text small { font-size: 9px; font-weight: 600; opacity: .85; letter-spacing: .04em; text-transform: uppercase; }
.whatsapp-float-text strong { font: 800 14px 'Manrope', sans-serif; }
.whatsapp-float-pulse { position: absolute; right: 14px; top: 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--whatsapp); z-index: -1; animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(1.9); opacity: 0; } }

/* ── Responsive ── */
@media (max-width: 1050px) {
  .main-nav { gap: 14px; }
  .nav-wrap { gap: 20px; }
  .header-call { padding-left: 12px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 300px; }
  .hero-content { gap: 20px; }
  .about-grid, .contact-grid { gap: 55px; }
}

@media (max-width: 820px) {
  .site-header { height: 70px; }
  .header-call { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    padding: 18px 24px 25px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: var(--blanco);
    border-top: 1px solid var(--line);
    box-shadow: 0 15px 30px rgba(3, 26, 51, .1);
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .main-nav.open { display: flex; }
  .main-nav a::after { bottom: -4px; }
  .hero { min-height: auto; }
  .hero::before { width: 100%; opacity: .3; }
  .hero-content { min-height: auto; padding-top: 80px; padding-bottom: 70px; grid-template-columns: 1fr; }
  .hero-copy { padding-top: 0; }
  .hero-visual { display: none; }
  .hero-bottom { display: none; }
  .section, .work-section { padding: 80px 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 500px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 45px 20px; }
  .process-line { display: none; }
  .emergency-inner { align-items: flex-start; flex-direction: column; }
  .emergency-contact-card { padding: 20px 24px; width: 100%; }
  .emergency-pulse-rings { display: none; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 32px, 1160px); }
  .brand-logo-image { width: 126px; max-height: 46px; }
  h2 { font-size: 40px; }
  .hero h1 { font-size: 47px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .trust-line { flex-wrap: wrap; gap: 5px; line-height: 1.8; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 35px; }
  .services-grid, .work-grid { grid-template-columns: 1fr; }
  .work-card, .work-large { min-height: 320px; }
  .about-visual { height: 370px; }
  .contact-form { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-note { display: block; margin: 12px 0 0; line-height: 1.5; }
  .footer-main { align-items: flex-start; flex-direction: column; padding: 35px 0; }
  .footer-links { align-items: flex-start; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 7px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step p { font-size: 10px; }
  .whatsapp-float { right: 16px; bottom: 16px; padding: 10px 16px 10px 12px; gap: 10px; }
  .whatsapp-float-icon { width: 38px; height: 38px; }
  .whatsapp-float-icon svg { width: 22px; height: 22px; }
  .whatsapp-float-text { display: none; }
  .whatsapp-float-pulse { right: 12px; top: 10px; width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .whatsapp-float-pulse { animation: none; }
}
