/* ==============================================================
   Servicios Integrales MYA - Hoja de Estilos Principal (2026)
   Diseño Corporativo Técnico, Moderno y Optimizado
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Mulish:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0E1428;
  --primary-dark: #070A14;
  --primary-light: #1E284A;
  --accent: #F18805;
  --accent-hover: #D97804;
  --accent-glow: rgba(241, 136, 5, 0.25);
  --blue: #1C77C3;
  --blue-dark: #0F4C81;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --border-focus: #F18805;
  --shadow-sm: 0 2px 8px rgba(14, 20, 40, 0.05);
  --shadow-md: 0 8px 24px rgba(14, 20, 40, 0.08);
  --shadow-lg: 0 16px 40px rgba(14, 20, 40, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  width: 92%;
  max-width: 1150px;
  margin: 0 auto;
}

/* Topbar de Contacto */
.topbar {
  background: var(--primary-dark);
  color: #CBD5E1;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.topbar-items {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar-item a:hover {
  color: var(--accent);
}
.badge-cobertura {
  background: rgba(241, 136, 5, 0.15);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid rgba(241, 136, 5, 0.3);
}

/* Header Navegación Principal */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(14, 20, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(7, 10, 20, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.logo-box {
  display: flex;
  align-items: center;
}
.logo-box img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-item {
  position: relative;
}
.nav-link {
  font-family: 'Poppins', sans-serif;
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

/* Dropdown de Servicios */
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 0;
  list-style: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1001;
}
.dropdown-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: #E2E8F0;
  font-size: 14px;
  font-weight: 500;
}
.dropdown-item a:hover {
  background: rgba(241, 136, 5, 0.15);
  color: var(--accent);
  padding-left: 24px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241, 136, 5, 0.4);
  color: #FFFFFF;
}
.btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  color: #FFFFFF;
}
.btn-dark {
  background: var(--primary);
  color: #FFFFFF;
}
.btn-dark:hover {
  background: var(--primary-light);
  color: #FFFFFF;
}
.btn-lg {
  padding: 14px 30px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* Botón Hamburguesa Móvil */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.mobile-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #FFFFFF;
  margin: 5px 0;
  border-radius: 3px;
  transition: var(--transition);
}

/* Drawer Menú Móvil */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--primary);
  z-index: 2000;
  padding: 30px 25px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}
.mobile-drawer.open {
  right: 0;
}
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.drawer-close {
  background: none;
  border: none;
  color: #FFF;
  font-size: 28px;
  cursor: pointer;
}
.drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.drawer-menu a {
  color: #FFF;
  font-size: 16px;
  font-weight: 600;
  display: block;
  padding: 8px 0;
}
.drawer-menu a:hover {
  color: var(--accent);
}

/* Hero Slider */
.hero-slider-section {
  position: relative;
  width: 100%;
  min-height: 82vh;
  background: var(--primary-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease-in-out, visibility 0.9s;
  display: flex;
  align-items: center;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 7s ease-out;
}
.hero-slide.active .hero-bg {
  transform: scale(1);
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(7, 10, 20, 0.95) 0%, rgba(14, 20, 40, 0.8) 55%, rgba(14, 20, 40, 0.45) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 80px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
.hero-tag,
.section-tag,
.service-badge {
  display: none !important;
}
.hero-title {
  color: #FFFFFF;
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero-desc {
  color: #E2E8F0;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 620px;
}
.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Columna de tarjetas destacadas en Hero */
.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.highlight-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  color: #FFFFFF;
  transition: var(--transition);
}
.highlight-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  transform: translateX(6px);
}
.highlight-card h4 {
  font-size: 16px;
  color: #FFFFFF;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.highlight-card p {
  font-size: 13.5px;
  color: #CBD5E1;
  margin: 0;
}

/* Controles del Slider */
.slider-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  width: 32px;
  border-radius: 10px;
  background: var(--accent);
}

/* Barra de Estadísticas y Confianza */
.stats-bar {
  background: #FFFFFF;
  padding: 40px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 5;
  margin-top: -30px;
  border-radius: var(--radius-md);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-box {
  padding: 10px 20px;
  border-right: 1px solid var(--border-light);
}
.stat-box:last-child {
  border-right: none;
}
.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number span {
  color: var(--accent);
}
.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Secciones Generales */
.section {
  padding: 85px 0;
}
.section-light {
  background-color: var(--bg-light);
}
.section-dark {
  background-color: var(--primary);
  color: #FFFFFF;
}
.section-dark h2, .section-dark h3 {
  color: #FFFFFF;
}
.section-dark p {
  color: #CBD5E1;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 55px auto;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Grid de Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
}
.service-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-img-wrapper img {
  transform: scale(1.08);
}
.service-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-body h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.service-body p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}
.service-link:hover {
  color: var(--accent-hover);
  gap: 10px;
}

/* Sección Proceso de Trabajo (4 Pasos) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
}
.process-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 30px 24px;
  border: 1px solid var(--border-light);
  position: relative;
  transition: var(--transition);
}
.process-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.process-step {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 2px solid var(--accent);
}
.process-card h4 {
  font-size: 17px;
  margin-bottom: 10px;
}
.process-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}
.section-dark .faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}
.faq-question {
  padding: 20px 25px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  user-select: none;
}
.faq-icon {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 25px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}
.section-dark .faq-answer {
  color: #CBD5E1;
}
.faq-item.active .faq-answer {
  padding-bottom: 20px;
}

/* Banner CTA y Formulario Unificado */
.cta-box-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-lg);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cta-text-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-text-side h2 {
  color: #FFFFFF;
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.cta-text-side p {
  color: #CBD5E1;
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.7;
}
.direct-contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  font-size: 15px;
}
.contact-line a:hover {
  color: var(--accent);
}

/* Formulario Moderno */
.form-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 35px 30px;
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
}
.form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  text-align: center;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 14.5px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: var(--transition);
  background: #F8FAFC;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(241, 136, 5, 0.15);
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}
.form-terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.form-terms input {
  margin-top: 3px;
}

/* Alertas y Notificaciones */
.form-feedback {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
}
.form-feedback.success {
  display: block;
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}
.form-feedback.error {
  display: block;
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* Footer Corporativo */
.site-footer {
  background: var(--primary-dark);
  color: #94A3B8;
  padding: 70px 0 30px 0;
  font-size: 14.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col h4 {
  color: #FFFFFF;
  font-size: 16px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--accent);
}
.footer-desc {
  margin: 18px 0;
  line-height: 1.7;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact-list a:hover {
  color: var(--accent);
}

/* Subfooter */
.subfooter {
  background: var(--primary);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
}
.subfooter-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.subfooter-content a:hover {
  color: var(--accent);
}

/* Botón Flotante de WhatsApp (Círculo Izquierdo 30px x 30px) */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  right: auto;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #25D366;
  color: #FFFFFF;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  animation: waPulse 2.5s infinite;
}
.floating-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
.floating-whatsapp img {
  width: 18px;
  height: 18px;
  display: block;
}
.floating-whatsapp span {
  display: none !important;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsividad (Mobile First Adjustments) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-box {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-box-split {
    grid-template-columns: 1fr;
    padding: 35px 25px;
  }
}

@media (max-width: 820px) {
  .topbar-content {
    justify-content: center;
    text-align: center;
  }
  .main-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .subfooter-content {
    flex-direction: column;
    text-align: center;
  }
  .floating-whatsapp {
    bottom: 20px;
    left: 20px;
    width: 30px;
    height: 30px;
  }
}
