/* ==========================================================================
   HOJA DE ESTILOS PRINCIPAL - MALVEX S.A. DE C.V.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES GLOBALES DE COLOR Y ESTRUCTURA
   -------------------------------------------------------------------------- */
:root {
  --blue-100: #c0e0ff;
  --blue-200: #8ec6fe;
  --blue-700: #01478c;
  --blue-800: #012d59;
  --blue-900: #001427;

  --wave-799: #799ec2;
  --wave-3d6: #3d6286;
  --wave-012: #012d59;

  --gris-claro: #f8fafc;
  --gris-medio: #94a3b8;
  --blanco: #ffffff;

  --header-height: 85px;
  --radius-square: 4px;
  --shadow-square: 0 12px 30px rgba(0, 0, 0, 0.35);
  --transition: all 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. RESET GLOBAL
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: #f4f7fc;
  color: #1e293b;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon-inline {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   3. ONDAS EN ESQUINAS Y TRANSICIONES MULTICAPA
   -------------------------------------------------------------------------- */
.hero-corner-waves {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  width: 320px;
  height: 320px;
  opacity: 0.22;
}

.corner-top-left { top: 0; left: 0; }
.corner-bottom-right { bottom: 0; right: 0; }
.hero-corner-waves svg { width: 100%; height: 100%; }

.hero-to-services-transition,
.services-to-equipment-transition,
.about-top-transition,
.about-bottom-transition,
.contact-top-transition {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  z-index: 3;
}

.hero-to-services-transition { bottom: -1px; }
.hero-to-services-transition svg,
.contact-top-transition svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
  transform: scaleY(1.02);
}

.services-to-equipment-transition { bottom: 0; }
.services-to-equipment-transition svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 85px;
}

.about-top-transition { top: -1px; }
.about-top-transition svg,
.about-bottom-transition svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 85px;
}

.about-bottom-transition { bottom: -1px; }
.contact-top-transition { top: -1px; }

.services, .equipment, .testimonials { position: relative; }

.contact-bottom-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
}

.contact-bottom-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

/* --------------------------------------------------------------------------
   4. BOTONES FLOTANTES CIRCULARES (HOVER INTERACTIVO)
   -------------------------------------------------------------------------- */
.floating-contact {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition-bounce);
  position: relative;
}

.float-btn i {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
}

.float-whatsapp { background: #25d366; }
.float-email { background: var(--blue-700); }
.float-quote { 
  background: var(--blue-200);
  color: var(--blue-900); 
}

.float-btn:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
}

.float-btn:hover i {
  transform: scale(1.1) rotate(-6deg);
}

.float-whatsapp:hover { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45); }
.float-email:hover { box-shadow: 0 10px 24px rgba(1, 71, 140, 0.55); }
.float-quote:hover { box-shadow: 0 10px 24px rgba(142, 198, 254, 0.5); }

.float-tooltip {
  position: absolute;
  right: 72px;
  background: var(--blue-900);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-square);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(142, 198, 254, 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.float-btn:hover .float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   5. BARRA NAVEGACIÓN Y ONDAS DELIMITADAS ÚNICAMENTE AL LADO IZQUIERDO (LOGO)
   -------------------------------------------------------------------------- */
header {
  background: rgba(0, 20, 39, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  min-height: 85px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(142, 198, 254, 0.15);
  overflow: hidden;
}

header.scrolled {
  min-height: 72px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.header-organic-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 3;
}

.logo {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background: transparent;
  transition: var(--transition);
  position: relative;
  z-index: 3;
  margin-left: 12vw;
  margin-top: -6px;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

header.scrolled .logo-img {
  height: 38px;
}

.logo:hover .logo-img {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 4px 10px rgba(1, 45, 89, 0.25));
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--gris-claro);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
  display: inline-block;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-200);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover {
  color: var(--blue-200);
  transform: translateY(-1px);
}

.nav-cta {
  background: var(--blue-200);
  color: var(--blue-900) !important;
  padding: 10px 22px;
  border-radius: var(--radius-square);
  font-weight: 700;
  transition: var(--transition) !important;
  box-shadow: 0 4px 12px rgba(142, 198, 254, 0.2);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: #ffffff !important;
  color: var(--blue-900) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(142, 198, 254, 0.45);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanco);
  cursor: pointer;
  padding: 4px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.menu-toggle:hover {
  color: var(--blue-200);
  transform: scale(1.08);
}

.menu-toggle i { width: 28px; height: 28px; }

/* --------------------------------------------------------------------------
   6. ONDAS ALREDEDOR DE RECUADROS E INTEGRACIÓN DE IMÁGENES
   -------------------------------------------------------------------------- */
.square-card {
  background: rgba(1, 45, 89, 0.4);
  border: 1px solid rgba(142, 198, 254, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 12, 24, 0.45);
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.45s ease, border-color 0.45s ease;
  position: relative;
}

.square-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-200);
  box-shadow: 0 26px 50px rgba(0, 12, 24, 0.65), 0 0 25px rgba(142, 198, 254, 0.2);
}

.hero-card-waved {
  position: relative;
  border-radius: 16px;
  padding: 6px;
  background: linear-gradient(135deg, rgba(121, 158, 194, 0.3), rgba(1, 45, 89, 0.5));
}

.card-edge-waves {
  position: absolute;
  width: 100px;
  height: 100px;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.5s ease;
}

.top-right-waves { top: 0; right: 0; }
.bottom-left-waves { bottom: 0; left: 0; }
.top-left-waves { top: 0; left: 0; }

.square-card:hover .top-right-waves,
.about-card-waved:hover .top-left-waves {
  transform: scale(1.08);
}

.square-card:hover .bottom-left-waves {
  transform: scale(1.08);
}

.card-edge-waves svg {
  width: 100%;
  height: 100%;
}

.square-card img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  filter: contrast(1.03) brightness(0.98);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.5s ease;
}

.square-card:hover img {
  transform: scale(1.04);
  filter: contrast(1.06) brightness(1.03);
}

/* --------------------------------------------------------------------------
   7. SECCIÓN PRINCIPAL (HERO)
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 50%, var(--blue-700) 100%);
  color: var(--blanco);
  padding: 85px 0 140px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(142, 198, 254, 0.12);
  border: 1px solid rgba(142, 198, 254, 0.35);
  color: var(--blue-200);
  padding: 6px 16px;
  border-radius: var(--radius-square);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  transition: var(--transition);
}

.badge-tag:hover {
  background: rgba(142, 198, 254, 0.2);
  border-color: var(--blue-200);
  transform: translateY(-1px);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.8px;
}

.hero h1 span { color: var(--blue-200); }

.hero p {
  font-size: 1.12rem;
  color: var(--gris-claro);
  max-width: 540px;
  margin-bottom: 36px;
  opacity: 0.95;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Botón primario con destello sutil y desplazamiento de flecha */
.btn-primary {
  background: var(--blue-200);
  color: var(--blue-900);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-square);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(142, 198, 254, 0.25);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 140%;
}

.btn-primary i {
  color: var(--blue-900);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(142, 198, 254, 0.45);
}

.btn-primary:hover i {
  transform: translateX(5px);
}

.btn-secondary {
  border: 1.5px solid rgba(142, 198, 254, 0.5);
  color: var(--blanco);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-square);
  transition: var(--transition);
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(142, 198, 254, 0.16);
  border-color: var(--blue-200);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 12, 24, 0.3);
}

/* --------------------------------------------------------------------------
   8. SECCIÓN DE SERVICIOS (TARJETAS CON ACENTO Y MICRO-INTERACCIONES)
   -------------------------------------------------------------------------- */
.services, .equipment, .testimonials { padding: 90px 0; }
.services { background: #ffffff; position: relative; padding-bottom: 140px; }

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-sub { color: var(--gris-medio); font-size: 1.05rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: #f8fafc;
  border-radius: var(--radius-square);
  padding: 36px 28px;
  border: 1px solid #e2e8f0;
  transition: transform 0.38s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.38s ease,
              background-color 0.35s ease,
              border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Línea superior de acento que se expande desde el centro en hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-200));
  transition: width 0.38s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 2;
}

.service-card:hover::before {
  width: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 38px rgba(1, 71, 140, 0.14);
  background: #ffffff;
  border-color: var(--blue-200);
}

.card-icon-wrapper {
  width: 54px;
  height: 54px;
  background: rgba(142, 198, 254, 0.2);
  color: var(--blue-700);
  border-radius: var(--radius-square);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.32s ease,
              color 0.32s ease,
              box-shadow 0.32s ease;
  border: 1px solid rgba(142, 198, 254, 0.3);
}

.card-icon-wrapper i {
  width: 26px;
  height: 26px;
  transition: transform 0.35s ease;
}

.service-card:hover .card-icon-wrapper {
  background: var(--blue-700);
  color: #ffffff;
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 18px rgba(1, 71, 140, 0.28);
}

.service-card:hover .card-icon-wrapper i {
  transform: scale(1.06);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--blue-700);
}

.service-card p { color: #475569; font-size: 0.95rem; margin-bottom: 24px; }

.tags-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.service-tag {
  background: #e2e8f0;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-square);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.25s ease;
}

.service-card:hover .service-tag {
  background: rgba(142, 198, 254, 0.25);
  color: var(--blue-700);
}

.service-tag:hover {
  background: var(--blue-700) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   9. EQUIPAMIENTO DE VANGUARDIA (ZOOM SUTIL DE IMAGEN EN HOVER)
   -------------------------------------------------------------------------- */
.equipment { background: #f1f5f9; position: relative; padding-top: 120px; }
.equipment-card { padding: 0 !important; overflow: hidden; }

.card-img-container {
  width: 100%;
  height: 200px;
  background: #cbd5e1;
  overflow: hidden;
  position: relative;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.4s ease;
}

.equipment-card:hover .card-img-container img {
  transform: scale(1.07);
  filter: contrast(1.05) brightness(1.03);
}

.equipment-card .card-body { padding: 28px 24px; }
.client-card { text-align: center; align-items: center; }

/* --------------------------------------------------------------------------
   10. SECCIÓN NOSOTROS
   -------------------------------------------------------------------------- */
.about {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--blanco);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about h2 { font-size: 2.3rem; font-weight: 800; margin-bottom: 20px; }
.about h2 span { color: var(--blue-200); }
.about p { color: var(--gris-claro); margin-bottom: 18px; opacity: 0.9; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 20px 12px;
  border-radius: var(--radius-square);
  border: 1px solid rgba(142, 198, 254, 0.2);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              background-color 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

.stat:hover {
  transform: translateY(-5px);
  background: rgba(142, 198, 254, 0.1);
  border-color: var(--blue-200);
  box-shadow: 0 12px 24px rgba(0, 12, 24, 0.35);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-200);
  transition: transform 0.3s ease, color 0.3s ease;
}

.stat:hover .stat-number {
  transform: scale(1.06);
  color: #ffffff;
}

.stat-label { font-size: 0.82rem; color: var(--gris-medio); }

.about-card-waved {
  position: relative;
  border-radius: 20px;
  padding: 8px;
  background: linear-gradient(145deg, rgba(142, 198, 254, 0.25) 0%, rgba(1, 45, 89, 0.6) 100%);
  box-shadow: 0 15px 35px rgba(0, 20, 39, 0.6), 0 0 25px rgba(142, 198, 254, 0.15);
  border: 1px solid rgba(142, 198, 254, 0.35);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.about-card-waved:hover {
  transform: translateY(-4px);
  border-color: var(--blue-200);
  box-shadow: 0 22px 48px rgba(0, 20, 39, 0.75), 0 0 38px rgba(142, 198, 254, 0.32);
}

.about-card-waved img {
  border-radius: 14px;
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.about-card-waved:hover img {
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   11. SECCIÓN CONTACTO
   -------------------------------------------------------------------------- */
.contact {
  padding: 130px 0 110px;
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-900) 100%);
  color: var(--blanco);
  position: relative;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
  position: relative;
  z-index: 3;
}

.contact h2 { font-size: 2.3rem; font-weight: 800; margin-bottom: 16px; }
.contact h2 span { color: var(--blue-200); }
.contact-lead { color: var(--gris-claro); margin-bottom: 32px; opacity: 0.9; }

.contact-items { display: flex; flex-direction: column; gap: 24px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 14px;
  margin-left: -14px;
  border-radius: var(--radius-square);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-item:hover {
  transform: translateX(6px);
  background: rgba(142, 198, 254, 0.08);
}

.contact-item i {
  color: var(--blue-200);
  width: 24px;
  height: 24px;
  margin-top: 2px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-item:hover i {
  transform: scale(1.18);
}

.contact-item strong { display: block; font-size: 0.9rem; color: var(--gris-medio); }
.contact-item p { color: var(--blanco); font-weight: 600; }

.contact-form-wrapper {
  background: rgba(1, 45, 89, 0.6);
  border: 1px solid rgba(142, 198, 254, 0.22);
  padding: 42px;
  border-radius: var(--radius-square);
  box-shadow: var(--shadow-square);
  position: relative;
  backdrop-filter: blur(10px);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.contact-form-wrapper:hover {
  border-color: rgba(142, 198, 254, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.contact-form h3 { 
  font-size: 1.5rem; 
  margin-bottom: 24px; 
  color: var(--blanco); 
  border-bottom: 1px solid rgba(142, 198, 254, 0.2);
  padding-bottom: 12px;
}

.form-group { margin-bottom: 18px; }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-square);
  font-family: inherit;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--blanco);
  border: 1px solid rgba(142, 198, 254, 0.2);
  transition: var(--transition);
}

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form select:hover {
  border-color: rgba(142, 198, 254, 0.5);
  background: rgba(255, 255, 255, 0.11);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--gris-medio); }

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--blue-200);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(142, 198, 254, 0.15);
}

.contact-form select option { color: var(--blue-900); background: #fff; }

.contact-form button {
  width: 100%;
  background: var(--blue-200);
  color: var(--blue-900);
  font-weight: 700;
  padding: 16px;
  border: none;
  border-radius: var(--radius-square);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.contact-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.contact-form button:hover::before {
  left: 140%;
}

.contact-form button i {
  color: var(--blue-900);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-form button:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(142, 198, 254, 0.38);
}

.contact-form button:hover i {
  transform: translate(4px, -2px);
}

/* --------------------------------------------------------------------------
   12. MENSAJE DE ÉXITO
   -------------------------------------------------------------------------- */
.form-success-message {
  text-align: center;
  padding: 30px 10px;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-icon {
  width: 72px;
  height: 72px;
  background: rgba(142, 198, 254, 0.2);
  color: var(--blue-200);
  border-radius: var(--radius-square);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(142, 198, 254, 0.3);
}

.success-icon i { width: 40px; height: 40px; }
.form-success-message h3 { font-size: 1.6rem; margin-bottom: 12px; }
.form-success-message p { color: var(--gris-claro); margin-bottom: 24px; }

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
footer {
  background: #000c18;
  color: var(--gris-medio);
  padding: 32px 0;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

footer span { color: var(--blue-200); }

/* --------------------------------------------------------------------------
   14. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.5rem; }
  .hero-corner-waves { width: 220px; height: 220px; }
  .header-organic-waves { width: 80%; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--blue-900);
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 24px;
    gap: 20px;
    border-top: 1px solid rgba(142, 198, 254, 0.2);
  }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  
  .logo-img {
    height: 38px;
  }
  .header-organic-waves {
    width: 90%;
  }
}