:root {
  --bg: #000000;
  --bg-1: #0B0B0B;
  --bg-2: #1C1C1C;
  --text: #FFFFFF;
  --muted: #C9C9C9;
  --green: #3EC091;
  --green-2: #2CA77A;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --container: 1200px;
}

/* ===== ESTILOS GLOBALES ===== */
html, body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  font-family: Inter, Montserrat, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Acari Sans', Inter, Montserrat, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

h1 {
  font-size: clamp(32px, 8vw, 160px);
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
}

h2 {
  font-size: clamp(24px, 6vw, 90px);
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
}

h3 {
  font-size: clamp(20px, 4vw, 60px);
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
}

h4 {
  font-size: clamp(18px, 3vw, 40px);
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
}

h5 {
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
}

h6 {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
}

.container-lg {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Prevenir desbordamiento horizontal */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

/* Mejorar responsividad de textos largos */
.hero-content, .section {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Asegurar que las imágenes sean responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Mejorar espaciado en móviles */
@media (max-width: 768px) {
  .container-lg {
    padding: 0 16px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  /* Ajustar tamaños de texto específicos que puedan causar problemas */
  .hero-title, .hero h1 {
    font-size: clamp(28px, 8vw, 56px) !important;
    line-height: 1.1;
  }
  
  /* Mejorar legibilidad en móviles */
  p, .text {
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.5;
  }
  
  /* Deshabilitar animaciones de letras en móviles */
  .letter-animation .letter {
    display: inline !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    margin-right: 0 !important;
    position: static !important;
  }
  
  .letter-animation .space {
    display: inline !important;
    width: 0.5em !important; /* Doble espacio en móviles */
  }
  
  /* Simplificar títulos con animación en móviles */
  .letter-animation {
    letter-spacing: normal !important;
    overflow: visible !important;
  }
  
  /* Espaciado especial para el título hero en móviles */
    .hero-title.letter-animation .space {
        width: 2em !important; /* Espacios más amplios para el título principal */
    }
    
    /* Ajustar tamaño de logos en móvil */
    header img[alt="WebStudioExpress"] {
        height: 60px !important;
    }
    
    footer img[alt="WebStudioExpress"] {
        height: 110px !important;
    }
}

/* Responsive logo sizing for desktop and tablet */
@media (min-width: 1400px) {
  header img[alt="WebStudioExpress"] {
    height: 45px !important;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  header img[alt="WebStudioExpress"] {
    height: 42px !important;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  header img[alt="WebStudioExpress"] {
    height: 38px !important;
  }
}

@media (min-width: 769px) and (max-width: 899px) {
  header img[alt="WebStudioExpress"] {
    height: 35px !important;
  }
}

.section {
  padding: 80px 0;
}
@media (max-width: 1024px) { .section { padding: 64px 0; } }
@media (max-width: 640px) { .section { padding: 48px 0; } }

/* ===== BOTONES GLOBALES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all .25s ease;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #000;
}
.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(60, 192, 145, .3);
}

.btn-outline {
  color: var(--text);
  border-color: var(--green);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(60, 192, 145, .12);
  transform: translateY(-1px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  transition: all .3s ease;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(60, 192, 145, 0.4);
  border-color: rgba(60, 192, 145, 0.3);
}

/* Botón de llamada a la acción con efecto de resplandor asimétrico */
.btn-project-cta {
  box-shadow: 
    -20px 0 40px rgba(0, 255, 127, 0.4),
    -10px 0 20px rgba(0, 255, 127, 0.3),
    2px 0 8px rgba(0, 255, 127, 0.1);
  border: 1px solid rgba(0, 255, 127, 0.4);
  transition: all 0.3s ease;
}
.btn-project-cta:hover {
  box-shadow: 
    -40px 0 80px rgba(0, 255, 127, 0.8),
    -20px 0 40px rgba(0, 255, 127, 0.6),
    -10px 0 20px rgba(0, 255, 127, 0.4),
    4px 0 16px rgba(0, 255, 127, 0.2),
    0 0 60px rgba(0, 255, 127, 0.5);
  border: 1px solid rgba(0, 255, 127, 0.8);
  transform: translateY(-2px);
}

.btn-project-cta::before {
  content: '';
  position: absolute;
  top: 0;
  right: 10%;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(0, 255, 127, 0.2) 0%, 
    rgba(0, 255, 127, 0.1) 70%, 
    transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-project-cta:hover::before {
  opacity: 1;
}

/* Responsive para móvil */
@media (max-width: 768px) {
  /* Botón redondo solo en header para móvil */
  header .btn-project-cta {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    min-width: 48px;
    /* Ajustar resplandor para móvil */
    box-shadow: 
      -10px 0 20px rgba(0, 255, 127, 0.4),
      -5px 0 10px rgba(0, 255, 127, 0.3),
      2px 0 4px rgba(0, 255, 127, 0.1);
  }
  
  header .btn-project-cta:hover {
    box-shadow: 
      -20px 0 40px rgba(0, 255, 127, 0.8),
      -10px 0 20px rgba(0, 255, 127, 0.6),
      -5px 0 10px rgba(0, 255, 127, 0.4),
      2px 0 8px rgba(0, 255, 127, 0.2),
      0 0 30px rgba(0, 255, 127, 0.5);
  }
  
  /* Ocultar texto en botón del header en móvil */
  header .btn-project-cta .btn-text {
    display: none;
  }
  
  /* Mostrar solo el ícono en el botón del header */
  header .btn-project-cta svg {
    width: 20px;
    height: 20px;
  }
  
  /* Otros botones mantienen su estilo normal en móvil */
  .btn-project-cta:not(header .btn-project-cta) {
    padding: 12px 24px;
    width: auto;
    box-shadow: 
      -15px 0 30px rgba(0, 255, 127, 0.4),
      -8px 0 15px rgba(0, 255, 127, 0.3),
      2px 0 6px rgba(0, 255, 127, 0.1);
  }
  
  .btn-project-cta:not(header .btn-project-cta):hover {
    box-shadow: 
      -30px 0 60px rgba(0, 255, 127, 0.8),
      -15px 0 30px rgba(0, 255, 127, 0.6),
      -8px 0 15px rgba(0, 255, 127, 0.4),
      3px 0 12px rgba(0, 255, 127, 0.2),
      0 0 40px rgba(0, 255, 127, 0.5);
  }
}

/* ===== BOTÓN FLOTANTE DE WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  z-index: 1000;
  transition: all 0.3s ease;
  /* Efecto de resplandor similar al botón "Iniciar Proyecto" */
  box-shadow: 
    -20px 0 40px rgba(37, 211, 102, 0.4),
    -10px 0 20px rgba(37, 211, 102, 0.3),
    2px 0 8px rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.4);
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    -40px 0 80px rgba(37, 211, 102, 0.8),
    -20px 0 40px rgba(37, 211, 102, 0.6),
    -10px 0 20px rgba(37, 211, 102, 0.4),
    4px 0 16px rgba(37, 211, 102, 0.2),
    0 0 60px rgba(37, 211, 102, 0.5);
  border: 1px solid rgba(37, 211, 102, 0.8);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  top: 0;
  right: 10%;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(37, 211, 102, 0.2) 0%, 
    rgba(37, 211, 102, 0.1) 70%, 
    transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.whatsapp-float:hover::before {
  opacity: 1;
}

/* Animación de pulso sutil */
@keyframes whatsapp-pulse {
  0% {
    box-shadow: 
      -20px 0 40px rgba(37, 211, 102, 0.4),
      -10px 0 20px rgba(37, 211, 102, 0.3),
      2px 0 8px rgba(37, 211, 102, 0.1);
  }
  50% {
    box-shadow: 
      -25px 0 50px rgba(37, 211, 102, 0.5),
      -12px 0 25px rgba(37, 211, 102, 0.4),
      3px 0 10px rgba(37, 211, 102, 0.2);
  }
  100% {
    box-shadow: 
      -20px 0 40px rgba(37, 211, 102, 0.4),
      -10px 0 20px rgba(37, 211, 102, 0.3),
      2px 0 8px rgba(37, 211, 102, 0.1);
  }
}

.whatsapp-float {
  animation: whatsapp-pulse 3s ease-in-out infinite;
}

/* Responsive para móvil */
@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    /* Ajustar resplandor para móvil */
    box-shadow: 
      -15px 0 30px rgba(37, 211, 102, 0.4),
      -8px 0 15px rgba(37, 211, 102, 0.3),
      2px 0 6px rgba(37, 211, 102, 0.1);
  }
  
  .whatsapp-float:hover {
    box-shadow: 
      -30px 0 60px rgba(37, 211, 102, 0.8),
      -15px 0 30px rgba(37, 211, 102, 0.6),
      -8px 0 15px rgba(37, 211, 102, 0.4),
      3px 0 12px rgba(37, 211, 102, 0.2),
      0 0 40px rgba(37, 211, 102, 0.5);
  }
  
  @keyframes whatsapp-pulse {
    0% {
      box-shadow: 
        -15px 0 30px rgba(37, 211, 102, 0.4),
        -8px 0 15px rgba(37, 211, 102, 0.3),
        2px 0 6px rgba(37, 211, 102, 0.1);
    }
    50% {
      box-shadow: 
        -18px 0 36px rgba(37, 211, 102, 0.5),
        -10px 0 18px rgba(37, 211, 102, 0.4),
        3px 0 8px rgba(37, 211, 102, 0.2);
    }
    100% {
      box-shadow: 
        -15px 0 30px rgba(37, 211, 102, 0.4),
        -8px 0 15px rgba(37, 211, 102, 0.3),
        2px 0 6px rgba(37, 211, 102, 0.1);
    }
  }
}

/* ===== HEADER ===== */
header.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: saturate(120%) blur(6px);
}

.glass-menu {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 16px;
}

header .nav a:hover { 
  color: var(--text) !important; 
  background: rgba(60, 192, 145, 0.2); 
}

/* Header responsive styles */
@media (min-width: 900px) { 
  header .nav { display: flex !important; } 
  #menuToggle { display: none !important; } 
  .actions .btn-glass { display: inline-flex !important; }
}
@media (max-width: 1400px) {
  header > div { padding: 14px 100px !important; }
}
@media (max-width: 1200px) {
  header > div { padding: 14px 50px !important; }
}
@media (max-width: 900px) {
  header > div { padding: 14px 20px !important; }
  .glass-menu { display: none !important; }
  .actions .btn-glass { display: none !important; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.75) 45%, rgba(0,0,0,.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(102px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
}

.hero .hero-title {
  font-size: clamp(102px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
}

.hero p {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 900px;
  margin: 0 auto 28px;
}

.hero .cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Animación de letras para el h1 del hero */
.letter-animation {
  overflow: visible;
  position: relative;
  letter-spacing: 3px;
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: translateX(-200px);
  filter: blur(15px);
  animation: letterWalk 1.2s ease-out forwards;
  position: relative;
  margin-right: -30px;
}

.space {
  display: inline-block;
  width: 0.3em;
}

/* Animación escalonada para cada letra */
.letter:nth-child(1) { animation-delay: 0.1s; }
.letter:nth-child(2) { animation-delay: 0.15s; }
.letter:nth-child(3) { animation-delay: 0.2s; }
.letter:nth-child(4) { animation-delay: 0.25s; }
.letter:nth-child(5) { animation-delay: 0.3s; }
.letter:nth-child(6) { animation-delay: 0.35s; }
.letter:nth-child(7) { animation-delay: 0.4s; }
.letter:nth-child(9) { animation-delay: 0.5s; }
.letter:nth-child(10) { animation-delay: 0.55s; }
.letter:nth-child(11) { animation-delay: 0.6s; }
.letter:nth-child(12) { animation-delay: 0.65s; }
.letter:nth-child(13) { animation-delay: 0.7s; }
.letter:nth-child(14) { animation-delay: 0.75s; }
.letter:nth-child(15) { animation-delay: 0.8s; }
.letter:nth-child(16) { animation-delay: 0.85s; }
.letter:nth-child(17) { animation-delay: 0.9s; }
.letter:nth-child(18) { animation-delay: 0.95s; }
.letter:nth-child(19) { animation-delay: 1s; }
.letter:nth-child(20) { animation-delay: 1.05s; }
.letter:nth-child(22) { animation-delay: 1.15s; }
.letter:nth-child(23) { animation-delay: 1.2s; }
.letter:nth-child(24) { animation-delay: 1.25s; }
.letter:nth-child(25) { animation-delay: 1.3s; }
.letter:nth-child(26) { animation-delay: 1.35s; }
.letter:nth-child(27) { animation-delay: 1.4s; }
.letter:nth-child(28) { animation-delay: 1.45s; }
.letter:nth-child(29) { animation-delay: 1.5s; }
.letter:nth-child(30) { animation-delay: 1.55s; }
.letter:nth-child(32) { animation-delay: 1.65s; }
.letter:nth-child(33) { animation-delay: 1.7s; }
.letter:nth-child(34) { animation-delay: 1.75s; }
.letter:nth-child(36) { animation-delay: 1.85s; }
.letter:nth-child(37) { animation-delay: 1.9s; }
.letter:nth-child(38) { animation-delay: 1.95s; }
.letter:nth-child(39) { animation-delay: 2s; }
.letter:nth-child(40) { animation-delay: 2.05s; }
.letter:nth-child(41) { animation-delay: 2.1s; }
.letter:nth-child(42) { animation-delay: 2.15s; }

@keyframes letterWalk {
  0% {
    opacity: 0;
    transform: translateX(-200px);
    filter: blur(15px);
  }
  20% {
    opacity: 0.3;
    transform: translateX(-120px);
    filter: blur(12px);
  }
  40% {
    opacity: 0.6;
    transform: translateX(-60px);
    filter: blur(8px);
  }
  60% {
    opacity: 0.8;
    transform: translateX(-20px);
    filter: blur(4px);
  }
  80% {
    opacity: 0.9;
    transform: translateX(-5px);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0px);
  }
}

/* ===== PORTAFOLIO ===== */
.grid {
  display: grid;
  gap: 24px;
}

.grid-portfolio {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1200px) { .grid-portfolio { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .grid-portfolio { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .grid-portfolio { grid-template-columns: 1fr; } }

.grid-2x2 { 
  grid-template-columns: repeat(2, 1fr); 
} 
@media (max-width: 900px) { 
  .grid-2x2 { 
    grid-template-columns: 1fr; 
  } 
}

.grid-2x4 { 
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
} 
@media (max-width: 1200px) { 
  .grid-2x4 { 
    grid-template-columns: repeat(2, 1fr); 
  } 
} 
@media (max-width: 900px) { 
  .grid-2x4 { 
    grid-template-columns: repeat(2, 1fr); 
  } 
} 
@media (max-width: 580px) { 
  .grid-2x4 { 
    grid-template-columns: 1fr; 
  } 
}

/* Carrusel para móvil */
.portfolio-carousel {
  display: none;
  position: relative;
}

.carousel-container {
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  gap: 0;
}

.carousel-item {
  flex: 0 0 100%;
  max-width: 100%;
  margin-right: 0;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.carousel-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: #000;
  transform: scale(1.05);
}
.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.carousel-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

/* Responsive para portafolio */
@media (max-width: 768px) { 
  .portfolio-grid { 
    display: none !important; 
  }
  .portfolio-carousel {
    display: block !important;
  }
}
@media (min-width: 769px) {
  .portfolio-grid {
    display: grid !important;
  }
  .portfolio-carousel {
    display: none !important;
  }
}

/* Etiquetas de categoría */
.project-tags { 
  display: flex; 
  gap: 6px; 
  margin-bottom: 8px; 
  flex-wrap: wrap; 
} 
.tag { 
  font-size: 11px; 
  padding: 4px 8px; 
  background: rgba(60, 192, 145, 0.15); 
  color: var(--green); 
  border-radius: 4px; 
  font-weight: 500; 
}

/* Header de sección con botón */
.section-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-end; 
  margin-bottom: 28px; 
} 
@media (max-width: 700px) { 
  .section-header { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 12px; 
  } 
}

/* Cards */
.card {
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card.hoverable { transition: transform .25s ease, box-shadow .25s ease; }
.card.hoverable:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.5); }

.card-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.card-media img, .card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.06); }
.card-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
  transition: opacity .25s ease;
}
.card:hover .card-overlay { 
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
}
.card-body { padding: 16px 18px; }
.card-title { font-weight: 700; margin: 0 0 4px; }
.card-desc { color: var(--muted); margin: 0; font-size: 14px; }

/* ===== SERVICIOS ===== */
.services-grid { 
  grid-template-columns: repeat(3, 1fr); 
}
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .services-grid { grid-template-columns: 1fr; } }

.service-card { 
  padding: 22px; 
}
.service-icon { 
  width: 42px; 
  height: 42px; 
  border-radius: 10px; 
  background: rgba(60,192,145,.1); 
  display: grid; 
  place-items: center; 
  margin-bottom: 14px; 
}
.service-card h3 { 
  margin: 0 0 8px; 
}
.service-card p { 
  margin: 0; 
  color: var(--muted); 
}

/* Nuevos estilos para servicios con video */
.service-video-card {
  position: relative;
  min-height: 400px;
  cursor: pointer;
  overflow: hidden;
}

.service-video-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.service-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.service-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(0, 0, 0, 0.9) 0%, 
    rgba(0, 0, 0, 0.6) 25%, 
    rgba(0, 0, 0, 0.2) 75%, 
    rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-video-card:hover .service-thumbnail {
  opacity: 0;
}

.service-video-card:hover .service-video {
  opacity: 1;
}

.service-video-card:hover .service-overlay {
  opacity: 1;
}

.service-content {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-content h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.5rem;
}

.service-content p {
  margin: 0 0 15px;
  color: var(--muted);
  line-height: 1.6;
}

.service-cta-text {
  display: block;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.service-cta-text:hover {
  text-shadow: 0 0 10px #00ff7f;
  transform: translateY(-1px);
}

/* Modal de servicios */
.service-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.service-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.service-modal-content {
  position: relative;
  max-width: 1035px;
  width: 100%;
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  margin: auto;
  z-index: 1001;
}

.service-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  z-index: 1002;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.3s ease;
}

.service-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.service-modal-video {
  width: 100%;
  aspect-ratio: 16/9;
}

.service-modal-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-modal-info {
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-modal-info h3 {
  margin: 0 0 15px;
  color: var(--text);
  font-size: 2rem;
}

.service-modal-info p {
  margin: 0 0 25px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Responsive para servicios */
@media (max-width: 768px) {
  .services-grid-row {
    grid-template-columns: 1fr !important;
  }
  
  .service-video-card {
    border-left: none !important;
    border-bottom: 1px solid #EAEFF2;
  }
  
  .service-video-card:last-child {
    border-bottom: none;
  }
  
  .service-modal-content {
    max-width: 95%;
    margin: 10px;
  }
  
  .service-modal-info {
    padding: 20px;
  }
}

/* ===== NOSOTROS ===== */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.about .media { 
  border-radius: var(--radius); 
  overflow: hidden; 
  border: 1px solid var(--bg-2); 
  box-shadow: var(--shadow); 
}
.about .text h2 { 
  margin-top: 0; 
  font-size: clamp(28px, 3.2vw, 40px); 
}
.about .text p { 
  color: var(--muted); 
}

/* ===== CONTACTO ===== */
.contact {
  background: radial-gradient(1200px 1200px at 50% 0%, rgba(60,192,145,.08) 0%, rgba(0,0,0,.0) 60%), var(--bg);
  border-top: 1px solid var(--bg-2);
}
.form {
  display: grid; 
  gap: 16px;
  background: var(--bg-1);
  border: 1px solid var(--bg-2);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form .row { 
  display: grid; 
  gap: 16px; 
  grid-template-columns: 1fr 1fr; 
}
@media (max-width: 700px) { .form .row { grid-template-columns: 1fr; } }
.input, .textarea {
  width: 100%;
  background: #0A0A0A;
  color: var(--text);
  border: 1px solid #202020;
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.input::placeholder, .textarea::placeholder { 
  color: #8f8f8f; 
}
.input:focus, .textarea:focus { 
  border-color: var(--green); 
  box-shadow: 0 0 0 3px rgba(60,192,145,.15); 
}
.textarea { 
  min-height: 140px; 
  resize: vertical; 
}
