/* ============================================== */
/* ============== 1. VARIABLES CSS (ROOT) ======= */
/* ============================================== */
:root {
  /* Colores modernos */
  --primary-dark: #0a2342;
  --primary-blue: #2e5cff;
  --primary-light: #4a7cff;
  --accent-orange: #ff6b35;

  --white: #ffffff;
  --light-gray: #f8f9fc;
  --mid-gray: #e8edf2;
  --text-gray: #5a6c7d;
  --text-dark: #1a2332;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(10, 35, 66, 0.12);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 24px 64px rgba(10, 35, 66, 0.2);
  --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #2e5cff 0%, #4a7cff 100%);

  /* Espaciado y Bordes */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --radius-sm: 8px;
  --radius-md: 12px;

  /* Formulario/Inputs */
  --color-fondo-input: #ffffff;
  --color-borde-input: #e0e0e0;
  --color-texto-secundario-form: #6b7280;
  --border-card: 1px solid #ebebeb;
}

/* ============================================== */
/* ============== 2. ESTILOS BASE (RESET) ======= */
/* ============================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--white);
  color: var(--text-gray);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: color 0.3s;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================== */
/* ============== 3. HEADER Y NAVEGACIÓN ======== */
/* ============================================== */
header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--mid-gray);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0; 
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links li a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links li a i {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links li a:hover {
    color: var(--primary-blue);
}

.nav-links li a:hover i {
    transform: translateY(-2px);
}

.nav-links li a:hover::after {
    width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.user-profile {
  background: var(--gradient-primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(46, 92, 255, 0.3);
  transition: all 0.3s ease;
}

.user-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 92, 255, 0.4);
}

.user-profile svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.menu-toggle {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--primary-dark);
  background: none;
  border: none;
  padding: var(--spacing-xs);
}

/* ============================================== */
/* ============== 4. SECCIÓN HERO =============== */
/* ============================================== */
#hero {
    background: url(./images/top-view-man-repairing-car.jpg) no-repeat center center/cover;
    color: #fff;
    padding: 200px 20px 160px;
    position: relative;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 20, 30, 0.88) 0%, rgba(20, 30, 45, 0.82) 50%, rgba(46, 92, 255, 0.15) 100%);
    z-index: 0;
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

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

#hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 32px;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#hero h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #FFB800 0%, #FF6B35 100%);
    margin: 24px auto 0;
    border-radius: 2px;
    animation: expandLine 1s ease-out 0.3s both;
}

@keyframes expandLine {
    from { width: 0; opacity: 0; }
    to { width: 100px; opacity: 1; }
}

#hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 48px;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.8;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.cta-button {
    background: rgba(46, 92, 255, 0.25);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 18px 48px;
    font-size: 1.05em;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 16px rgba(46, 92, 255, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.cta-button:hover {
    background: rgba(46, 92, 255, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(46, 92, 255, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================== */
/* ============== 5. BARRA DE CONFIANZA ========= */
/* ============================================== */
.trust-bar {
    background: linear-gradient(135deg, #4169E1 0%, #1E90FF 100%);
    padding: 24px 0;
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.2);
    overflow: hidden;
    position: relative;
}

.trust-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.trust-marquee-wrapper::before,
.trust-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.trust-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, rgba(65, 105, 225, 1) 0%, transparent 100%);
}

.trust-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, rgba(65, 105, 225, 1) 0%, transparent 100%);
}

.trust-container {
    display: flex;
    gap: 60px;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.trust-bar:hover .trust-container {
    animation-play-state: paused;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
    white-space: nowrap;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.trust-item:hover {
    transform: scale(1.05);
}

.trust-icon-wrapper {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
}

.trust-icon-wrapper i {
    width: 28px;
    height: 28px;
    stroke-width: 2;
    color: white;
}

.trust-text h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.trust-text p {
    font-size: 0.85rem;
    opacity: 0.92;
    font-weight: 400;
}

/* ============================================== */
/* ============== 6. SECCIÓN SERVICIOS ========== */
/* ============================================== */
#servicios {
  padding: 100px 0;
  background: #f0f4f8;
}

#servicios h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

#servicios h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: transform 0.6s ease;
}

.service-item:hover img {
  transform: scale(1.08);
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
  transition: background 0.4s ease;
}

.service-item:hover::before {
  background: rgba(0, 0, 0, 0.65);
}

.service-item-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.service-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 24px;
  color: #ffffff;
  stroke-width: 1.5;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: all 0.4s ease;
}

.service-item:hover .service-icon {
  transform: scale(1.15) translateY(-5px);
  filter: drop-shadow(0 6px 20px rgba(255, 255, 255, 0.3));
}

.service-item h3 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
  line-height: 1.2;
}

.service-item:hover h3 {
  transform: translateY(-5px);
}

.service-item p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  max-width: 90%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
}

.service-item:hover p {
  opacity: 1;
  transform: translateY(0);
}

.service-item-content::after {
  content: '';
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #FFB800 0%, #FF6B35 100%);
  border-radius: 2px;
  transition: transform 0.4s ease 0.2s;
}

.service-item:hover .service-item-content::after {
  transform: translateX(-50%) scaleX(1);
}

/* ============================================== */
/* ============== 7. SECCIÓN MARCAS ============= */
/* ============================================== */
.brands-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
    position: relative;
    overflow: hidden;
}

.brands-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 92, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.brands-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(50px, 50px) rotate(10deg); }
}

.brands-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.brands-header {
    text-align: center;
    margin-bottom: 60px;
}

.brands-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #0a2342;
    margin-bottom: 16px;
    letter-spacing: -0.8px;
    position: relative;
    display: inline-block;
}

.brands-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #2e5cff 0%, #ff6b35 100%);
    border-radius: 3px;
}

.brands-header p {
    color: #5a6c7d;
    font-size: 1.15rem;
    max-width: 650px;
    margin: 24px auto 0;
    line-height: 1.7;
}

.brands-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.brand-badge {
    background: linear-gradient(135deg, rgba(46, 92, 255, 0.1) 0%, rgba(46, 92, 255, 0.05) 100%);
    border: 2px solid rgba(46, 92, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.brand-badge:hover {
    background: linear-gradient(135deg, rgba(46, 92, 255, 0.15) 0%, rgba(46, 92, 255, 0.08) 100%);
    border-color: rgba(46, 92, 255, 0.4);
    transform: translateY(-2px);
}

.brand-badge i {
    width: 20px;
    height: 20px;
    color: #2e5cff;
    stroke-width: 2.5;
}

.brand-badge span {
    color: #0a2342;
    font-weight: 600;
    font-size: 0.9rem;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.brand-card {
    background: white;
    border: 2px solid #e8edf2;
    border-radius: 20px;
    padding: 30px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.brand-card:hover {
    border-color: #2e5cff;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(46, 92, 255, 0.2);
}

.brand-card img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.6);
    transition: all 0.4s ease;
}

.brand-card:hover img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05);
}

.certification-seal {
    background: linear-gradient(135deg, #2e5cff 0%, #4a7cff 100%);
    color: white;
    padding: 20px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(46, 92, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.certification-seal-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.seal-icon {
    width: 40px;
    height: 40px;
    color: #FFB800;
}

/* ============================================== */
/* ============== 8. SECCIÓN CONTACTO =========== */
/* ============================================== */
.contacto-seccion {
  width: 100%;
  padding: 80px 20px;
  background-color: #f5f5f5;
}

.contenedor-principal {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 992px) {
    .contenedor-principal {
        grid-template-columns: 1fr 1fr;
    }
}

.formulario-card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 48px;
  transition: all 0.3s ease;
}

.formulario-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.info-contacto-card h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0a2342;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 20px;
}

.info-contacto-card h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.info-contacto-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
}

.mapa-contenedor {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-top: 20px;
}

.mapa-contenedor iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.mapa-popup {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
  z-index: 10;
}

.card-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0a2342;
  letter-spacing: -0.3px;
  position: relative;
  padding-bottom: 16px;
}

.card-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.card-body {
  display: grid;
  gap: 20px;
}

.input-grupo {
  position: relative;
}

.icono {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #999;
  z-index: 1;
}

.input-grupo input:focus ~ .icono,
.input-grupo textarea:focus ~ .icono {
  color: var(--primary-blue);
}

.input-grupo input,
.input-grupo textarea {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1px solid #e0e0e0;
  background-color: #fafafa;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.input-grupo input:focus,
.input-grupo textarea:focus {
  border-color: var(--primary-blue);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(46, 92, 255, 0.1);
  outline: none;
}

.input-grupo textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 14px;
}

.icono-mensaje {
  top: 20px;
  transform: translateY(0);
}

button[type="submit"] {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  background: var(--gradient-primary);
  color: white;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(46, 92, 255, 0.3);
  width: 100%;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 92, 255, 0.4);
}

button[type="submit"] svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

button[type="submit"]:hover svg {
  transform: translateX(4px);
}

/* ============================================== */
/* ============== 9. BOTÓN WHATSAPP ============= */
/* ============================================== */
.whatsapp-float {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6); }
}

.whatsapp-float:hover {
  transform: scale(1.1);
  animation: none;
}

/* ============================================== */
/* ============ FOOTER MODERN PREMIUM =========== */
/* ============================================== */
.footer-modern {
    /* NUEVO DEGRADADO: De un azul más claro a tu azul oscuro corporativo */
    background: linear-gradient(180deg, #133b70 0%, #0a2342 100%);
    color: #b0c4de;
    font-family: 'Inter', sans-serif;
    /* Ajuste de padding para que la tarjeta respire dentro */
    padding: 60px 0 20px;
    margin-top: 60px; /* Separación normal de la sección anterior */
    position: relative;
    border-top: 4px solid #2e5cff;
}

/* --- TARJETA DE NEWSLETTER (AHORA DENTRO) --- */
.newsletter-card {
    /* Fondo ligeramente diferente para que resalte sobre el degradado del footer */
    background: linear-gradient(145deg, #1a4073 0%, #0d2d57 100%);
    border: 1px solid #2e5cff50; /* Borde azul sutil */
    border-radius: 16px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    /* SE ELIMINARON LOS MÁRGENES NEGATIVOS QUE CAUSABAN DISTORSIÓN */
    margin-bottom: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
}

.nl-text h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.nl-text p {
    margin: 0;
    font-size: 1rem;
    color: #dbeafe; /* Texto un poco más claro para contraste */
    max-width: 500px;
}

.nl-form {
    display: flex;
    gap: 16px; /* Un poco más de espacio entre el input y el botón */
    flex: 1;
    max-width: 600px; /* Aumentado de 500px a 600px para que el input sea más ancho */
    width: 100%;
}

.nl-input-group {
    position: relative;
    flex: 1;
}

.nl-input-group .nl-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7995b5;
    font-size: 1.3rem;
}

.nl-input-group input {
    width: 100%;
    min-width: 300px; /* Obliga al input a tener un buen tamaño mínimo */
    background-color: #061830;
    border: 1px solid #1a4073;
    color: #ffffff;
    padding: 16px 16px 16px 48px;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.nl-input-group input:focus {
    border-color: #2e5cff;
    box-shadow: 0 0 0 2px rgba(46, 92, 255, 0.3);
}

.nl-button {
    background: linear-gradient(135deg, #ff6b35 0%, #e85a25 100%);
    color: #ffffff;
    border: none;
    padding: 16px 32px; /* Botón más grande */
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.nl-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.5);
}

/* --- GRID PRINCIPAL --- */
.footer-grid-modern {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid #1a4073;
}

/* Columna Marca */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.brand-logo .logo-icon {
    color: #ff6b35;
    font-size: 2rem;
}

.brand-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 90%;
    color: #dbeafe;
}

.brand-socials {
    display: flex;
    gap: 16px;
}

.brand-socials a {
    color: #7995b5;
    font-size: 1.8rem;
    transition: color 0.3s, transform 0.3s;
}

.brand-socials a:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

/* Columnas Textos */
.footer-links-group h4,
.footer-contact-group h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.footer-links-group ul,
.footer-contact-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-group li {
    margin-bottom: 16px;
}

.footer-links-group a {
    color: #b0c4de;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.footer-links-group a:hover {
    color: #ff6b35; /* Hover naranja para enlaces */
    padding-left: 5px; /* Pequeño movimiento al hover */
}

/* Columna Contacto */
.footer-contact-group li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-contact-group i {
    color: #2e5cff;
    font-size: 1.6rem;
    margin-top: 2px;
}

.contact-data span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7995b5;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-data p,
.contact-data a {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-data a:hover {
    color: #ff6b35;
}

/* --- BOTTOM COPYRIGHT --- */
.footer-bottom-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    font-size: 0.9rem;
    color: #7995b5;
}

.legal-links-modern {
    display: flex;
    gap: 20px;
    align-items: center;
}

.legal-links-modern a {
    color: #b0c4de;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-links-modern a:hover {
    color: #ff6b35;
}

.legal-links-modern .dot {
    color: #1a4073;
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 992px) {
    .newsletter-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px;
    }

    .nl-text p {
        margin: 0 auto;
    }
    
    .footer-grid-modern {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand-info {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .newsletter-card {
        margin-top: 0; /* Asegura que no haya margen negativo en móviles */
    }

    .nl-form {
        flex-direction: column;
        width: 100%;
    }

    .nl-button {
        width: 100%;
    }

    .footer-grid-modern {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-modern {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-bottom: 80px; /* Espacio para el botón de WhatsApp */
    }
}
/* ============================================== */
/* ============== 11. MEDIA QUERIES GLOBALES ==== */
/* ============================================== */
@media (max-width: 1024px) {
    .footer-grid-elite {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .menu-toggle { display: block; }
    .nav-links, .header-actions { display: none; }

    .nav-links.nav-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md) 0;
        gap: 0;
    }

    .nav-links.nav-open li {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-md);
        border-bottom: 1px solid var(--mid-gray);
    }
    
    .nav-links.nav-open li a { justify-content: center; }
    .header-actions.nav-open {
        display: flex;
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }
}

@media (max-width: 640px) {
    .footer-elite { padding: 48px 0 24px; }
    .footer-grid-elite { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom-elite {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .elite-legal { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 600px) {
    #hero {
        padding: 140px 20px 100px;
        min-height: 70vh;
    }
    #hero h1 { font-size: 2rem; line-height: 1.2; }
    #hero p { font-size: 1rem; }
    
    .service-grid { grid-template-columns: 1fr; }
    
    .brands-header h2 { font-size: 1.8rem; }
    .brands-badges { flex-direction: column; align-items: center; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .brand-card { height: 100px; padding: 20px 15px; }
}