/* PROMASERVI S.A — identidad industrial: navy/rojo del logo, tipografía de señalización
   (Barlow Condensed + Barlow) y franja diagonal de seguridad como firma visual. */

:root {
  --navy: #04294f;
  --navy-deep: #021c38;
  --red: #c8102e;
  --red-dark: #9e0c24;
  --steel: #f2f4f7;
  --line: #d9dfe7;
  --ink: #14202e;
  --muted: #55637a;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', sans-serif;
  --stripe: repeating-linear-gradient(-45deg, var(--red) 0 10px, var(--navy) 10px 20px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  border-top: 5px solid;
  border-image: var(--stripe) 1;
}

button, a, input, textarea, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.05;
  text-wrap: balance;
  text-transform: uppercase;
}
h1 { font-size: clamp(3.2rem, 9vw, 6rem); font-weight: 800; letter-spacing: 1px; }
h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: 0.5px; color: var(--navy); }
h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: 0.5px; }
p { font-size: 1.02rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

.skip-link {
  position: absolute; top: -100%; left: 0; z-index: 9999;
  background: var(--navy); color: #fff; padding: 12px 24px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 5px; left: 0; width: 100%; z-index: 1000;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.navbar.scrolled { background: #fff; box-shadow: 0 2px 24px rgba(2, 28, 56, 0.12); }
.navbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; height: 76px;
}
@media (min-width: 768px) { .navbar-inner { padding: 0 40px; } }
/* el logo es un JPEG con fondo blanco: se muestra como placa, sin filtros */
.navbar-logo img { height: 48px; width: auto; border-radius: 3px; }

.navbar-links { display: none; list-style: none; gap: 30px; align-items: center; }
@media (min-width: 1024px) { .navbar-links { display: flex; } }
.navbar-links a {
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 600;
  text-decoration: none; letter-spacing: 1.5px; text-transform: uppercase;
  color: #fff; transition: color 0.3s ease; position: relative;
}
.navbar.scrolled .navbar-links a { color: var(--ink); }
.navbar-links a:hover { color: var(--red); }
.navbar-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--red); transition: width 0.3s ease;
}
.navbar-links a:hover::after { width: 100%; }
.navbar-cta-link {
  background: var(--red); color: #fff !important;
  padding: 8px 22px; transition: background-color 0.3s ease !important;
}
.navbar-cta-link::after { display: none !important; }
.navbar-cta-link:hover { background: var(--red-dark) !important; color: #fff !important; }

.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001;
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger span {
  display: block; width: 26px; height: 2px; background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}
.navbar.scrolled .hamburger span { background: var(--navy); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: 0; height: 100vh;
  background: var(--navy-deep); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  overscroll-behavior: contain;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  color: #fff; text-decoration: none; letter-spacing: 2px; text-transform: uppercase;
  transition: color 0.3s ease;
}
.mobile-menu a:hover { color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: center; overflow: hidden;
  background: var(--navy-deep);
}
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 120%;
  background: url('https://images.unsplash.com/photo-1513828583688-c52646db42da?w=1600&q=80') center / cover no-repeat;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(2, 28, 56, 0.94) 15%, rgba(4, 41, 79, 0.72) 55%, rgba(2, 28, 56, 0.45) 100%);
}
.hero-content {
  position: relative; z-index: 2; color: #fff;
  max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 20px;
}
@media (min-width: 768px) { .hero-content { padding: 0 40px; } }
.hero-badge {
  display: inline-block;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: #fff; padding: 6px 16px 6px 0;
  border-bottom: 3px solid; border-image: var(--stripe) 1;
  margin-bottom: 28px;
  opacity: 0; animation: fadeInUp 0.8s ease forwards 0.1s;
}
.hero h1 { color: #fff; margin-bottom: 8px; opacity: 0; animation: fadeInUp 0.8s ease forwards 0.25s; }
.hero-tagline {
  font-family: var(--font-display); font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92); margin-bottom: 20px;
  opacity: 0; animation: fadeInUp 0.8s ease forwards 0.4s;
}
.hero-subtitle {
  font-size: 1.1rem; font-weight: 400; line-height: 1.8; max-width: 540px;
  color: rgba(255, 255, 255, 0.78); margin-bottom: 40px;
  opacity: 0; animation: fadeInUp 0.8s ease forwards 0.55s;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; opacity: 0; animation: fadeInUp 0.8s ease forwards 0.7s; }
.hero-cta {
  display: inline-block; background: var(--red); color: #fff;
  padding: 15px 42px;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.hero-cta:hover { background: var(--red-dark); transform: translateY(-3px); }
.hero-cta-ghost {
  display: inline-block; color: #fff; padding: 15px 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.hero-cta-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Secciones ---------- */
.section-padding { padding: 88px 0; }
@media (min-width: 768px) { .section-padding { padding: 110px 0; } }

.section-header { max-width: 640px; margin-bottom: 60px; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase; color: var(--red);
  margin-bottom: 10px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--muted); }

/* ---------- Ventajas ---------- */
.why-us-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 768px) { .why-us-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-us-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card { background: #fff; padding: 40px 32px; position: relative; transition: background-color 0.3s ease; }
.why-card::before {
  content: ''; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: var(--red); transition: width 0.35s ease;
}
.why-card:hover::before { width: 100%; }
.why-card:hover { background: var(--steel); }
.why-card-icon { margin-bottom: 18px; }
.why-card-icon .material-icons { font-size: 34px; color: var(--navy); }
.why-card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.3rem; }
.why-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Contadores ---------- */
.counters-section {
  background: var(--navy-deep); padding: 64px 0;
  border-top: 5px solid; border-bottom: 5px solid; border-image: var(--stripe) 1;
}
.counters-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
@media (min-width: 768px) { .counters-grid { grid-template-columns: repeat(4, 1fr); } }
.counter-item { color: #fff; border-left: 3px solid var(--red); padding-left: 20px; }
.counter-number {
  font-family: var(--font-display); font-size: 3.4rem; font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 8px;
}
@media (min-width: 768px) { .counter-number { font-size: 4.2rem; } }
.counter-label {
  font-family: var(--font-display); font-size: 1rem; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; opacity: 0.7;
}

/* ---------- Nosotros ---------- */
.about-section { background: var(--steel); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.about-image-wrapper { overflow: hidden; position: relative; border-bottom: 5px solid; border-image: var(--stripe) 1; }
.about-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.about-image-wrapper:hover img { transform: scale(1.03); }
.about-content h2 { margin-bottom: 22px; }
.about-content p { color: var(--muted); margin-bottom: 16px; }
.about-list { list-style: none; margin-top: 24px; }
.about-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-weight: 500; }
.about-list li .material-icons { color: var(--red); font-size: 20px; flex-shrink: 0; margin-top: 4px; }

/* ---------- Productos ---------- */
.products-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card {
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(2, 28, 56, 0.14); }
.product-image { overflow: hidden; height: 250px; position: relative; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-image img { transform: scale(1.06); }
.product-content { padding: 28px 26px 32px; display: flex; flex-direction: column; flex: 1; }
.product-content h3 { color: var(--navy); margin-bottom: 10px; }
.product-content p { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; flex: 1; }
.product-cta {
  align-self: flex-start; padding: 11px 32px;
  background: var(--navy); color: #fff; text-decoration: none;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  transition: background-color 0.3s ease;
}
.product-cta:hover { background: var(--red); }

/* ---------- Galería ---------- */
.gallery-section { background: var(--steel); }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { overflow: hidden; height: 280px; position: relative; }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2, 28, 56, 0.35), transparent 45%);
  opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.gallery-item:hover img { transform: scale(1.07); }

/* ---------- Testimonios ---------- */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: #fff; padding: 34px 28px;
  border: 1px solid var(--line); border-top: 3px solid var(--red);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(2, 28, 56, 0.1); }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 16px; }
.testimonial-stars .material-icons { font-size: 18px; color: #f5a623; }
.testimonial-text { color: var(--muted); font-size: 0.95rem; font-style: italic; margin-bottom: 24px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author-info h4 { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.testimonial-author-info span { font-size: 0.8rem; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact-section { background: var(--steel); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink);
}
.form-group input, .form-group textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 13px 16px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 3px rgba(4, 41, 79, 0.1); outline: none;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  display: inline-block; padding: 15px 40px;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  border: none; cursor: pointer; align-self: flex-start;
  transition: background-color 0.3s ease;
}
.form-submit:hover { background: var(--red-dark); }
.form-submit:disabled { opacity: 0.6; cursor: wait; }
.form-success {
  display: none; padding: 16px;
  background: rgba(4, 41, 79, 0.06); border: 1px solid var(--navy);
  color: var(--navy); font-weight: 600; text-align: center;
}
.form-success.visible { display: block; }
.form-error {
  padding: 16px; background: rgba(200, 16, 46, 0.06);
  border: 1px solid var(--red); color: var(--red);
  font-weight: 600; text-align: center;
}
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-info-icon {
  width: 48px; height: 48px; background: var(--navy); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.contact-info-icon .material-icons, .contact-info-icon .fab { font-size: 22px; color: #fff; }
.contact-info-item h4 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.contact-info-item p, .contact-info-item a {
  color: var(--muted); font-size: 0.95rem; text-decoration: none; transition: color 0.3s ease;
}
.contact-info-item a:hover { color: var(--red); }
.contact-map { margin-top: 8px; border-bottom: 5px solid; border-image: var(--stripe) 1; }
.contact-map iframe { display: block; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); background: #fff; }
.faq-question {
  width: 100%; padding: 20px 24px; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--navy);
  transition: background-color 0.3s ease;
}
.faq-question:hover { background: var(--steel); }
.faq-question .material-icons { transition: transform 0.3s ease; font-size: 24px; color: var(--muted); }
.faq-question[aria-expanded="true"] .material-icons { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 4px 24px 20px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep); color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
  border-top: 5px solid; border-image: var(--stripe) 1;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-col h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: #fff; margin-bottom: 20px;
}
.footer-col p { font-size: 0.9rem; line-height: 1.7; }
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; border-radius: 3px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-links a:hover { color: #fff; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 0.9rem; }
.footer-contact-item .material-icons { font-size: 18px; color: var(--red); margin-top: 2px; }
.footer-contact-item a { color: rgba(255, 255, 255, 0.6); text-decoration: none; transition: color 0.3s ease; }
.footer-contact-item a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a {
  width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.6); text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-bottom { padding: 24px 0; text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.4); }
.footer-bottom a { color: #fff; text-decoration: none; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px;
  background: #25d366; border-radius: 50%; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float i { font-size: 30px; }

/* ---------- Animaciones de scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
