/* ==========================================================================
   SISTEMA DE DISEÑO & VARIABLES (CMG BRANDING)
   ========================================================================== */
:root {
  /* Paleta de Colores */
  --primary-color: #00bce1;       /* Celeste verdoso principal */
  --primary-dark: #008eb4;        /* Celeste verdoso oscuro */
  --primary-light: #e0f8fc;       /* Celeste verdoso súper claro */
  --teal-green: #00ffd5;          /* Turquesa brillante */
  --deep-blue: #0072ff;           /* Azul de soporte */
  --text-dark: #0f172a;           /* Gris casi negro para títulos (Slate 900) */
  --text-medium: #334155;         /* Gris oscuro para lectura principal */
  --text-muted: #64748b;          /* Gris medio para descripciones */
  --bg-white: #ffffff;            /* Fondo predominante */
  --bg-light: #f8fafc;            /* Fondo secundario sutil (Slate 50) */
  --bg-gradient-hero: linear-gradient(135deg, #ffffff 0%, #f0f7f9 100%);
  
  /* Gradientes de marca */
  --grad-teal-blue: linear-gradient(135deg, #00ffd5 0%, #4facfe 100%);
  --grad-logo-tl: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --grad-logo-br: linear-gradient(135deg, #00f2fe 0%, #0072ff 100%);
  --grad-btn: linear-gradient(135deg, #00ffd5 0%, #00bce1 100%);
  --grad-btn-hover: linear-gradient(135deg, #00bce1 0%, #0072ff 100%);
  
  /* Fuentes */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Espaciado e Interlineado */
  --container-max-width: 1200px;
  --section-padding-desktop: 120px;
  --section-padding-mobile: 70px;
  
  /* Efectos y Bordes */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 40px -15px rgba(0, 188, 225, 0.15);
  --shadow-floating: 0 15px 30px rgba(0, 188, 225, 0.25);
  
  /* Transiciones */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   ESTILOS GENERALES Y RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-white);
  color: var(--text-medium);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Tipografía */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

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

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

ul {
  list-style: none;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition-bounce);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--grad-btn);
  color: var(--text-dark);
  box-shadow: 0 8px 20px -6px rgba(0, 254, 213, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -5px rgba(0, 188, 225, 0.5);
  background: var(--grad-btn-hover);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background-color: var(--bg-light);
  border-color: var(--primary-color);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.icon-right {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn:hover .icon-right {
  transform: translateX(4px);
}

/* Elementos comunes de Sección */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-dark);
  background-color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.text-cyan {
  color: var(--primary-color) !important;
}

.icon-cyan {
  color: var(--primary-color);
}

/* ==========================================================================
   HEADER / NAVEGACIÓN
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  height: 70px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  transition: var(--transition-bounce);
}

.logo-link:hover .logo-icon {
  transform: rotate(-5deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-dark);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-medium);
}

.nav-link:hover {
  color: var(--primary-dark);
}

.nav-btn {
  background: var(--grad-btn);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px -3px rgba(0, 254, 213, 0.3);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 188, 225, 0.4);
  background: var(--grad-btn-hover);
  color: #fff;
}

/* Menú móvil (Hamburguesa) */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.mobile-toggle .line {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-dark);
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: var(--bg-gradient-hero);
  padding-top: 140px;
  padding-bottom: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 600px;
}

.hero-content .badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  background-color: var(--primary-light);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title .highlight {
  position: relative;
  color: var(--primary-dark);
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: rgba(0, 254, 213, 0.3);
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Animación de la composición abstracta en Hero */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.visual-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
}

.interactive-shape-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* 4 bloques inspirados en el logo de CMG con flotación */
.shape {
  position: absolute;
  border-radius: 12px;
  transform: skewX(-16deg);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.shape-1 {
  /* Bloque Superior Izquierdo */
  top: 15%;
  left: 20%;
  width: 80px;
  height: 110px;
  background: var(--grad-logo-tl);
  animation: floatShape1 6s ease-in-out infinite alternate;
}

.shape-2 {
  /* Bloque Superior Derecho */
  top: 25%;
  left: 55%;
  width: 48px;
  height: 48px;
  background: var(--grad-teal-blue);
  animation: floatShape2 7s ease-in-out infinite alternate-reverse;
}

.shape-3 {
  /* Bloque Inferior Izquierdo */
  top: 55%;
  left: 15%;
  width: 48px;
  height: 48px;
  background: var(--grad-teal-blue);
  animation: floatShape3 5s ease-in-out infinite alternate;
}

.shape-4 {
  /* Bloque Inferior Derecho */
  top: 55%;
  left: 36%;
  width: 100px;
  height: 80px;
  background: var(--grad-logo-br);
  animation: floatShape4 6.5s ease-in-out infinite alternate-reverse;
}

.shape-glow {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(0, 254, 213, 0.35) 0%, rgba(0, 114, 255, 0) 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
}

/* Animaciones del Hero Visual */
@keyframes floatShape1 {
  0% { transform: skewX(-16deg) translateY(0) rotate(0deg); }
  100% { transform: skewX(-16deg) translateY(-15px) rotate(2deg); }
}

@keyframes floatShape2 {
  0% { transform: skewX(-16deg) translateY(0) scale(1); }
  100% { transform: skewX(-16deg) translateY(12px) scale(1.05); }
}

@keyframes floatShape3 {
  0% { transform: skewX(-16deg) translateY(0) scale(1); }
  100% { transform: skewX(-16deg) translateY(-10px) scale(0.95); }
}

@keyframes floatShape4 {
  0% { transform: skewX(-16deg) translateY(0) rotate(0deg); }
  100% { transform: skewX(-16deg) translateY(18px) rotate(-1deg); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Elementos de fondo */
.hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.bg-circle-1 {
  top: -10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background-color: rgba(0, 254, 213, 0.2);
}

.bg-circle-2 {
  bottom: 10%;
  left: -10%;
  width: 350px;
  height: 350px;
  background-color: rgba(79, 172, 254, 0.15);
}

/* ==========================================================================
   SERVICIO ESTRELLA (COMMUNITY MANAGEMENT)
   ========================================================================== */
.service-star-section {
  padding-top: var(--section-padding-desktop);
  padding-bottom: var(--section-padding-desktop);
  background-color: var(--bg-white);
}

.star-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  margin-top: 60px;
  align-items: center;
}

.lead-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 40px;
  line-height: 1.5;
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pillar-item {
  display: flex;
  gap: 20px;
}

.pillar-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.pillar-text h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.pillar-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Feed Interactivo de Visualización */
.star-visual-preview {
  display: flex;
  justify-content: center;
}

.preview-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  width: 100%;
  max-width: 400px;
  border: 1px solid #e2e8f0;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.preview-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.toggle-container {
  display: flex;
  background-color: var(--bg-light);
  padding: 4px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
}

.toggle-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-muted);
}

.toggle-btn.active {
  background: var(--primary-color);
  color: var(--text-dark);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* Estilo Grid del Feed de Instagram simulado */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.feed-grid.hidden {
  display: none;
}

.feed-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}

.feed-post-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: transform 0.3s ease;
}

.feed-item:hover .feed-post-img {
  transform: scale(1.05);
}

.post-quote {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.65rem;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.post-quote-bad {
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

.post-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  gap: 4px;
}

.feed-item:hover .post-overlay {
  opacity: 1;
}

.preview-metrics {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #edf2f7;
  padding-top: 20px;
}

.metric-box {
  text-align: center;
  width: 48%;
}

.metric-num {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  transition: var(--transition-bounce);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SERVICIOS ADICIONALES (IDENTIDAD & WEB)
   ========================================================================== */
.additional-services-section {
  padding-top: var(--section-padding-desktop);
  padding-bottom: var(--section-padding-desktop);
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.service-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 28px;
  transition: var(--transition-bounce);
}

.service-card:hover .service-card-icon {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--primary-color);
  color: var(--text-dark);
}

.service-card-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.service-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-card-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.service-card-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-medium);
}

/* ==========================================================================
   QUIÉNES SOMOS (EL EQUIPO)
   ========================================================================== */
.team-section {
  padding-top: var(--section-padding-desktop);
  padding-bottom: var(--section-padding-desktop);
  background-color: var(--bg-white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.team-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.team-img-wrapper {
  padding-top: 40px;
  display: flex;
  justify-content: center;
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition-bounce);
}

.team-card:hover .team-avatar {
  transform: scale(1.06);
}

.avatar-icon {
  font-size: 3rem;
  color: #fff;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.team-info {
  padding: 30px;
}

.team-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-role {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.team-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.team-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.team-social a:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* ==========================================================================
   CASOS DE ÉXITO (CLIENTES)
   ========================================================================== */
.cases-section {
  padding-top: var(--section-padding-desktop);
  padding-bottom: var(--section-padding-desktop);
  background-color: var(--bg-light);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.case-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  transition: var(--transition-smooth);
  position: relative;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.case-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
  letter-spacing: 0.02em;
}

.case-img-container {
  height: 240px;
  position: relative;
  overflow: hidden;
}

.case-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.case-card:hover .case-image {
  transform: scale(1.05);
}

.case-body {
  padding: 30px;
}

.case-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.case-title a {
  color: inherit;
  transition: var(--transition-smooth);
}

.case-title a:hover {
  color: var(--primary-dark);
}

.case-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.case-metrics {
  display: flex;
  gap: 30px;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.case-metric {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.metric-det {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CONTACTO Y FOOTER
   ========================================================================== */
.footer-section {
  background-color: var(--bg-white);
  padding-top: var(--section-padding-desktop);
  padding-bottom: 40px;
  border-top: 1px solid #f1f5f9;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 80px;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-brand {
  max-width: 320px;
}

.logo-icon-footer {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.footer-logo-text {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  display: inline-block;
  margin-bottom: 10px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-links h4,
.footer-contact-info h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-links ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary-dark);
  padding-left: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-info a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  transition: var(--transition-smooth);
}

.footer-contact-info a:hover {
  color: var(--primary-dark);
}

/* Caja de Llamado a la Acción en Footer (Forma de tarjeta destacada) */
.footer-cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.footer-cta-box h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.footer-cta-box p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.footer-cta-btn {
  width: 100%;
}

.whatsapp-icon {
  font-size: 1.25rem;
  margin-right: 10px;
}

/* Bottom del Footer */
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 30px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-social {
  display: flex;
  gap: 16px;
}

.footer-bottom-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.footer-bottom-social a:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-bounce);
}

.whatsapp-float::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25d366;
  top: 0;
  left: 0;
  animation: pulseRing 1.8s infinite;
  opacity: 0;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background-color: #0f172a;
  color: #fff;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background-color: #0f172a;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ==========================================================================
   TRANSICIONES DE REVELADO (ANIMACIÓN SCROLL)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Clases de retraso para cascadas */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Animaciones del Hero cargadas al inicio */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-up-delay {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.fade-in-up-delay-2 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

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

/* ==========================================================================
   DISEÑO ADAPTATIVO (MEDIA QUERIES)
   ========================================================================== */

/* Tablets y pantallas medianas (max-width: 1024px) */
@media (max-width: 1024px) {
  :root {
    --section-padding-desktop: 90px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-container {
    gap: 30px;
  }
  
  .star-grid {
    gap: 40px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .team-grid {
    gap: 24px;
  }
  
  .cases-grid {
    gap: 24px;
  }
}

/* Tablets en vertical (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --section-padding-mobile: 60px;
  }
  
  /* Header y Menú móvil */
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    z-index: 1005;
    padding: 100px 40px;
    transition: var(--transition-smooth);
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  
  .nav-link {
    font-size: 1.2rem;
    font-weight: 600;
  }
  
  .nav-btn {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 12px 24px;
  }
  
  /* Hamburguesa cruz */
  .mobile-toggle.open .line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  
  .mobile-toggle.open .line:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.open .line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
  
  /* Hero */
  .hero-section {
    padding-top: 120px;
    padding-bottom: 70px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    order: 1;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    order: 2;
    margin-bottom: 20px;
  }
  
  /* Servicio Estrella */
  .star-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .star-visual-preview {
    order: 2;
  }
  
  /* Servicios Adicionales */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Equipo */
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    gap: 30px;
  }
  
  /* Casos */
  .cases-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    gap: 30px;
  }
  
  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-cta-box {
    align-items: center;
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Celulares pequeños (max-width: 480px) */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .preview-card {
    padding: 16px;
  }
  
  .feed-grid {
    gap: 4px;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    font-size: 1.8rem;
  }
  
  .whatsapp-tooltip {
    display: none; /* Ocultar tooltip en pantallas muy chicas */
  }
}

/* Banner de Agencia Partner de Desarrollo Web */
.web-partner-banner {
  margin-top: 50px;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 22px 30px;
  text-align: center;
  border: 1px dashed rgba(0, 188, 225, 0.45);
  box-shadow: var(--shadow-sm);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  transition: var(--transition-smooth);
}

.web-partner-banner:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.web-partner-banner p {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.web-partner-banner a {
  font-weight: 700;
  border-bottom: 2px solid transparent;
}

.web-partner-banner a:hover {
  border-bottom-color: var(--primary-color);
}
