/* styles.css - Estilos Globales de la Agencia Digital */

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

/* Variables de Diseño (Tokens) */
:root {
  --color-bg: #ffffff;
  --color-header-bg: #ffffff;
  --color-footer-bg: #1e3a8a; /* Azul premium para el footer */
  --color-text-main: #1f2937; /* Gris oscuro para el cuerpo */
  --color-text-nav: #000000;
  --color-text-footer: #ffffff;
  
  /* Colores de marca */
  --color-primary: #4054b2; /* Azul para botones y hovers */
  --color-secondary: #7c3aed; /* Morado para el estado de hover alternativo */
  --color-black: #000000;
  --color-logo-blue: #4054b2; /* Azul extraído del logo */
  --color-whatsapp: #4054b2;

  /* Fuentes */
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transiciones */
  --transition-normal: 0.3s ease;
  --transition-button: 1s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transición de 1s para hovers solicitados */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
}

/* Medios fluidos: evita desbordes horizontales en pantallas pequeñas */
img {
  max-width: 100%;
}

p {
  text-align: justify;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: #111827;
}

/* Contenedor Principal */
main {
  background-color: var(--color-bg);
  min-height: 70vh;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
  background-color: var(--color-header-bg);
  width: 100%;
  padding: 15px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo (Izquierda) */
.header-logo-container {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 65px; /* Tamaño reducido para mayor nitidez y elegancia */
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.header-logo:hover {
  transform: scale(1.03);
}

/* Grupo del lado derecho (Navegación + Redes) */
.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Navegación */
nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: var(--color-text-nav);
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: color var(--transition-normal);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  -webkit-tap-highlight-color: transparent;
}

nav ul li a:focus {
  outline: none;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

nav ul li a:hover {
  color: var(--color-primary);
}

nav ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav ul li a.active {
  color: var(--color-logo-blue);
  font-weight: 600;
}

nav ul li a.active::after {
  transform: scaleX(1);
  background-color: var(--color-logo-blue);
}

/* Redes Sociales */
.social-buttons {
  display: flex;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: var(--color-logo-blue);
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 18px;
  transition: background-color 0.4s ease, transform 0.4s ease;
}

.social-btn:hover {
  background-color: var(--color-secondary); /* Cambia a morado al pasar el mouse */
  transform: translateY(-3px);
}

/* Hamburger Menu para Móviles */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-black);
  border-radius: 2px;
  transition: var(--transition-normal);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background-color: var(--color-footer-bg);
  color: var(--color-text-footer);
  padding: 40px 5% 30px;
  text-align: center;
  font-family: var(--font-body);
}

footer p {
  text-align: center;
}


.footer-info {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 15px;
  line-height: 1.8;
  letter-spacing: 0.3px;
}

.footer-copyright {
  font-size: 13px;
  opacity: 0.8;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 15px;
  display: inline-block;
  width: 100%;
  max-width: 600px;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 62px;
  height: 62px;
  background-color: var(--color-whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 28px rgba(64, 84, 178, 0.45);
  z-index: 9999;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  animation: whatsapp-bounce 5s infinite;
}

.whatsapp-float:hover {
  animation: none;
  transform: scale(1.14) translateY(-4px);
  background-color: var(--color-secondary);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.7);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-whatsapp);
  z-index: -1;
  animation: whatsapp-pulse 2.8s infinite;
  transition: background-color 0.3s ease;
}

.whatsapp-float:hover::before {
  background: var(--color-secondary);
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes whatsapp-bounce {
  0%, 10%, 20%, 30%, 100% {
    transform: translateY(0);
  }
  5% {
    transform: translateY(-15px);
  }
  15% {
    transform: translateY(-8px);
  }
  25% {
    transform: translateY(-3px);
  }
}

/* ==========================================================================
   DISEÑO RESPONSIVO (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 991px) {
  header {
    padding: 15px 4%;
  }
  
  .header-logo {
    height: 45px;
  }
  
  .header-right {
    gap: 20px;
  }
  
  nav ul {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  header {
    position: relative;
  }

  .menu-toggle {
    display: flex;
    order: 3;
  }

  .header-logo-container {
    order: 1;
  }

  .header-right {
    order: 2;
    display: none; /* Se activará dinámicamente con JS */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #f3f4f6;
    gap: 20px;
    z-index: 100;
  }

  .header-right.active {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 15px;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: inline-block;
    padding: 10px 0;
  }

  .social-buttons {
    justify-content: center;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
  }

  /* WhatsApp Flotante en Móvil */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    font-size: 1.7rem;
  }
}

/* ==========================================================================
   BANNER DE LAS SUBPÁGINAS (Compartido por Nosotros, Servicios y Contacto)
   ========================================================================== */
.subpage-banner {
  width: 100%;
  height: 400px; /* Tamaño consistente solicitado */
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.subpage-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.subpage-banner.nosotros-banner img {
  object-position: center 15%;
}

@media (max-width: 991px) {
  .subpage-banner {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .subpage-banner {
    height: 220px;
  }
}

/* ==========================================================================
   INICIO (home.css)
   ========================================================================== */

/* Hero 1 - inicio-1 */
.hero-inicio-1 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.67), rgba(0, 0, 0, 0.67)), url('../img/inicio-1.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 270px 10%;
  color: #ffffff;
}

@media (min-width: 1025px) {
  .hero-inicio-1 {
    background-attachment: fixed; /* Imagen estática al hacer scroll en desktop */
  }
}

.hero-inicio-1 h1 {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 8px 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.hero-inicio-1 h2 {
  font-size: 64px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 30px;
  text-shadow: 8px 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

/* Hero 2 - inicio-2 */
.hero-inicio-2 {
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../img/inicio-2.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Imagen estática al hacer scroll */
  width: 100%;
  min-height: 550px; /* min-height evita que el contenido se recorte en pantallas estrechas */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end; /* Alineado a la derecha */
  text-align: right;     /* Alineado a la derecha */
  padding: 40px 10%;
  color: #ffffff;
}

.hero-inicio-2 h2 {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 650px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.hero-inicio-2-content {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra el botón horizontalmente debajo del párrafo */
  text-align: center;  /* Centra el texto del párrafo para consistencia visual */
}

.hero-inicio-2-content p {
  font-size: 17px;
  margin-bottom: 30px;
  line-height: 1.7;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Botones con transición de 1 segundo y escala */
.btn-agency {
  background-color: var(--color-primary); /* Azul inicial */
  color: #ffffff !important;
  border: none;
  padding: 16px 28px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  /* Transición exacta de 1 segundo solicitada */
  transition: transform 1s ease, background-color 1s ease, box-shadow 1s ease;
}

.btn-agency:hover {
  background-color: var(--color-secondary); /* Cambia a morado */
  transform: scale(1.08); /* Se vuelve más grande */
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

/* Ajustes de anchos específicos */
.btn-width-50 {
  width: 28%;
  max-width: 450px;
}

.btn-width-30 {
  width: 30%;
  max-width: 300px;
  min-width: 200px;
}

/* Sección Intermedia - Somos tu alternativa */
.section-alternative {
  background-color: var(--color-bg);
  padding: 80px 10%;
  text-align: center;
}

.section-alternative h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}


.section-alternative p {
  font-size: 18px;
  color: #4b5563;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Sección Marketing Digital (2 Columnas) */
.section-marketing {
  background-color: var(--color-bg);
  padding: 80px 10%;
  display: flex;
  gap: 50px;
  align-items: center;
}

.marketing-left {
  flex: 1;
  text-align: left;
}

.marketing-left h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-align: center;
}

.marketing-left p {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 35px;
  line-height: 1.8;
}

.marketing-left .btn-agency {
  display: block;
  margin: 0 auto;
}

.marketing-right {
  flex: 1;
}

/* Grid de Imágenes de la Derecha (2x2) */
.image-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-image {
  width: 100%;
  aspect-ratio: 4/3; /* Misma proporción para todas */
  object-fit: cover;  /* Misma escala y encuadre */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991px) {
  .hero-inicio-1 {
    padding: 120px 5% 100px 5%;
    height: auto;
  }
  .hero-inicio-1 h1 {
    font-size: 26px;
  }
  .hero-inicio-1 h2 {
    font-size: 44px;
  }
  .hero-inicio-2 h2 {
    font-size: 28px;
  }
  .section-alternative {
    padding: 60px 5%;
  }
  .btn-width-50 {
    width: 60%;
  }
  .section-marketing {
    flex-direction: column;
    padding: 60px 5%;
    gap: 40px;
  }
  .marketing-left {
    text-align: center;
  }
  .marketing-left .btn-agency {
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-inicio-1 {
    padding: 70px 5% 60px 5%;
    height: auto;
  }
  .hero-inicio-1 h1 {
    font-size: 22px;
  }
  .hero-inicio-1 h2 {
    font-size: 30px;
  }
  .hero-inicio-2 {
    min-height: 480px;
    padding-top: 60px;
    padding-bottom: 60px;
    align-items: center;
    text-align: center;
    background-attachment: scroll;
  }
  .btn-width-50, .btn-width-30 {
    width: 80%;
    max-width: 100%;
  }
  .image-grid-2x2 {
    gap: 12px;
  }
}

/* ==========================================================================
   NOSOTROS (nosotros.css)
   ========================================================================== */

/* Sección de Contenido Nosotros (2 Columnas) */
.section-nosotros {
  background-color: var(--color-bg);
  padding: 80px 10%;
  display: flex;
  gap: 60px;
  align-items: center;
}

.nosotros-content-left {
  flex: 1;
  text-align: left;
}

.nosotros-content-left h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: var(--color-black);
  position: relative;
  text-align: center;
}


.nosotros-content-left p {
  font-size: 17px;
  color: #4b5563;
  line-height: 1.8;
}

.nosotros-content-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nosotros-image {
  width: 100%;
  max-width: 550px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.nosotros-image:hover {
  transform: scale(1.02);
}

@media (max-width: 991px) {
  .section-nosotros {
    flex-direction: column;
    padding: 60px 5%;
    gap: 40px;
  }
  .nosotros-content-left {
    text-align: center;
  }
  .nosotros-content-left h2::after {
    margin: 10px auto 0;
  }
}

/* ==========================================================================
   SERVICIOS (servicios.css)
   ========================================================================== */

/* Sección de Servicios */
.section-services {
  background-color: var(--color-bg);
  padding: 80px 10%;
  text-align: center;
}

.services-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 50px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}


/* Grid de Servicios (2x2) */
.services-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px 40px; /* Separación entre filas y columnas */
}

/* Tarjeta de Servicio */
.service-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.service-card-img-wrapper {
  width: 100%;
  aspect-ratio: 16/9; /* Asegura el mismo tamaño de imagen */
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recorte premium manteniendo proporciones */
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  color: var(--color-black);
}

.service-card p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.7;
  padding: 0 10px;
  flex-grow: 1;
}

@media (max-width: 991px) {
  .section-services {
    padding: 60px 5%;
  }
  .services-grid-2x2 {
    grid-template-columns: 1fr; /* Una columna en tablets y móviles */
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .services-title {
    font-size: 30px;
    margin-bottom: 35px;
  }
}

/* ==========================================================================
   CONTACTO (contacto.css)
   ========================================================================== */

/* Sección de Contacto */
.section-contacto {
  background-color: var(--color-bg);
  padding: 80px 10%;
  text-align: center;
}

.contacto-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}


.contacto-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 40px;
  text-align: center;
}

/* Contenedor del Formulario */
.form-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #f3f4f6;
}

/* Campos de Formulario (Vertical) */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  display: none;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: #f9fafb;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* Botón de Enviar (Ancho 30%, hover con escala y transición de 1s) */
.btn-submit {
  width: 25%;
  min-width: 180px;
  background-color: var(--color-primary); /* Azul */
  color: #ffffff !important;
  border: none;
  padding: 16px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  margin: 40px auto 0; /* Centrado y con más separación superior (margin-top: 30px) */
  text-align: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  /* Transición exacta de 1 segundo solicitada */
  transition: transform 1s ease, background-color 1s ease, box-shadow 1s ease;
}

.btn-submit:hover {
  background-color: var(--color-secondary); /* Morado */
  transform: scale(1.08); /* Se agranda */
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

.btn-submit:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Mensajes de Estado */
.message-status {
  margin-top: 25px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  display: none; /* Se activa con JS */
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.message-success {
  background-color: #ecfdf5;
  color: #059669; /* Verde para éxito solicitado */
  border: 1px solid #a7f3d0;
}

.message-error {
  background-color: #fef2f2;
  color: #dc2626; /* Rojo para error solicitado */
  border: 1px solid #fca5a5;
}

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

@media (max-width: 991px) {
  .section-contacto {
    padding: 60px 5%;
  }
  .form-container {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .contacto-title {
    font-size: 30px;
  }
  .btn-submit {
    width: 80%;
    margin-top: 15px;
  }
}

/* ==========================================================================
   SCROLL AND PAGE TRANSITIONS
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grids */
/* Marketing image grid in index.html */
.image-grid-2x2 .grid-image:nth-child(1) { transition-delay: 0s; }
.image-grid-2x2 .grid-image:nth-child(2) { transition-delay: 0.1s; }
.image-grid-2x2 .grid-image:nth-child(3) { transition-delay: 0.2s; }
.image-grid-2x2 .grid-image:nth-child(4) { transition-delay: 0.3s; }

/* Service cards grid in servicios.html */
.services-grid-2x2 .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid-2x2 .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid-2x2 .service-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid-2x2 .service-card:nth-child(4) { transition-delay: 0.3s; }

/* ==========================================================================
   MEJORAS RESPONSIVE ADICIONALES
   (Solo ajustan tamaños/espaciados: NO modifican hovers, transiciones ni animaciones)
   ========================================================================== */

/* --- Objetivos táctiles cómodos en móvil (>= 44px recomendado) --- */
@media (max-width: 768px) {
  .social-btn {
    width: 46px;
    height: 46px;
  }
}

/* --- Teléfonos pequeños (<= 480px) --- */
@media (max-width: 480px) {
  header {
    padding: 12px 5%;
  }
  .header-logo {
    height: 40px;
  }

  /* Hero principal */
  .hero-inicio-1 {
    padding: 64px 6% 52px;
  }
  .hero-inicio-1 h1 {
    font-size: 19px;
  }
  .hero-inicio-1 h2 {
    font-size: 27px;
    letter-spacing: 1px;
  }

  /* Somos tu alternativa */
  .section-alternative {
    padding: 48px 6%;
  }
  .section-alternative h2 {
    font-size: 24px;
  }
  .section-alternative p {
    font-size: 16px;
  }

  /* Hero secundario */
  .hero-inicio-2 {
    min-height: 420px;
    padding-left: 6%;
    padding-right: 6%;
  }
  .hero-inicio-2 h2 {
    font-size: 23px;
  }
  .hero-inicio-2-content p {
    font-size: 15.5px;
  }

  /* Marketing digital */
  .section-marketing {
    padding: 48px 6%;
    gap: 28px;
  }
  .marketing-left h2 {
    font-size: 26px;
  }
  .marketing-left p {
    font-size: 15.5px;
  }
  .image-grid-2x2 {
    gap: 10px;
  }

  /* Nosotros */
  .section-nosotros {
    padding: 48px 6%;
    gap: 28px;
  }
  .nosotros-content-left h2 {
    font-size: 28px;
  }
  .nosotros-content-left p {
    font-size: 15.5px;
  }

  /* Servicios */
  .section-services {
    padding: 48px 6%;
  }
  .services-title {
    font-size: 25px;
    margin-bottom: 28px;
  }
  .service-card h3 {
    font-size: 18px;
  }
  .service-card p {
    font-size: 14.5px;
  }

  /* Contacto */
  .section-contacto {
    padding: 48px 6%;
  }
  .contacto-title {
    font-size: 26px;
  }
  .contacto-subtitle {
    font-size: 15px;
  }
  .form-container {
    padding: 24px 16px;
  }
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* 16px evita el zoom automático de iOS al enfocar */
  }
  .btn-submit {
    width: 100%;
    min-width: 0;
  }

  /* Banners de subpáginas */
  .subpage-banner {
    height: 180px;
  }

  /* Footer */
  .footer-info {
    font-size: 14px;
  }
  .footer-copyright {
    font-size: 12px;
  }
}

/* --- Pantallas muy anchas (>= 1600px): centra el contenido para mejor lectura --- */
/* Nota: por debajo de ~2000px el max() conserva el 10% actual, así que los monitores
   comunes (1366-1920) NO cambian; solo se limita el ancho en pantallas ultra-anchas/4K. */
@media (min-width: 1600px) {
  .hero-inicio-1,
  .hero-inicio-2,
  .section-alternative,
  .section-marketing,
  .section-nosotros,
  .section-services,
  .section-contacto {
    padding-left: max(10%, calc((100% - 1600px) / 2));
    padding-right: max(10%, calc((100% - 1600px) / 2));
  }
}


