  :root {
    /* Colores */
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --success: #10b981;
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);

    /* Transiciones */
    --transition: all 0.3s ease;

    /* Tipografía */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --primary: #2563eb;
    --primary-dark: #1148e2;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
  
  /* A rich dark gradient background */
  --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);

  /* Glassmorphism Settings */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 15px;

  /* Brand Colors */
  --primary-gradient: linear-gradient(to bottom right, #00c6ff, #0072ff);
  --text-main: #3328c7;
  --text-muted: rgba(255, 255, 255, 0.6);

  --nav-height: 65px;
  --btn-width: 110px;    
  }
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    /* 'Inter' is the industry standard for UI */
  }
  
  body {
    font-family: var(--font-sans);
    line-height: 1.6;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    scroll-behavior: smooth; /* Para navegación suave */
  }

  .container {
    width: 90%;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* Header */
  .header {
    background: var(--bg-gradient);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }
  
  .header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem;
  }
  
  .logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
  }
  
 
  .social-icons a {
    display: inline-block;
    margin-left: 1rem;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    text-align: center;
    line-height: 32px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
  }
  .icon-container {
    display: flex;
    gap: 30px;
    perspective: 1000px;
}

.icon-card {
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    overflow: hidden; /* For the shine effect */
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* The Interactive Shine Layer */
.shine {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.icon-card:hover .shine {
    opacity: 1;
}

.icon-card i {
    font-size: 36px;
    color: #94a3b8;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(20px);
}

.icon-card span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 12px;
    opacity: 0;
    transform: translateZ(10px) translateY(10px);
    transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    color: white;
}

/* Hover Enhancements */
.icon-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.icon-card:hover i {
    color: var(--color);
    transform: translateZ(60px) scale(1.1);
    filter: drop-shadow(0 0 10px var(--color));
}

.icon-card:hover span {
    opacity: 1;
    transform: translateZ(40px) translateY(0);
}

/* Underlying Glow */
.icon-card::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background: var(--color);
    filter: blur(40px);
    opacity: 0;
    transition: 0.4s;
    z-index: -1;
    bottom: -20px;
}

.icon-card:hover::after {
    opacity: 0.3;
}
/* === HERO SECTION - VERSION CORREGIDA === */
.hero3d {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  overflow: hidden;
  color: white;
  margin-bottom: 40px;
  text-align: center;    
}


.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
  line-height: 1.3;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--gray);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === MEDIA QUERIES PARA MÓVILES === */
@media (max-width: 768px) {
  .hero {
    padding: 140px 0;
    min-height: auto;
  }
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }
  
  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 10px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  
  .btn {
    width: 100%;
    max-width: 320px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    margin: 0;
  }
}

/* === PANTALLAS MUY PEQUEÑAS === */
@media (max-width: 480px) {
  .hero {
    padding: 140px 15px 30px;
  }
  
  .hero h1 {
    font-size: 1.7rem;
    margin-bottom: 0.7rem;
  }
  
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }
  
  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }
}

/* === AJUSTE PARA EVITAR CORTES EN MÓVILES === */
@media (max-width: 375px) {
  .hero {
    padding: 70px 10px 25px;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}
  
  .btn.primary {
    background-color: var(--primary);
    color: white;
  }
  
  .btn.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
  }
  
  .btn.secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
  }
  
  .btn.secondary:hover {
    background-color: var(--primary);
    color: white;
  }
  
  /* Secciones */
  section {
    padding: 0.2rem 0;
  }
  
  h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--dark);
  }
  
  /* Servicios */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
  }
  
  .service-card:hover {
    transform: translateY(-5px);
  }
  
  .service-card h3 {
    margin-bottom: 0.8rem;
    color: var(--primary);
  }
  
  /* Contacto */
  .contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
  }
  
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
  }
  
  .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
  }
  
  .checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
  }
  
  /* Footer */
  .footer {
    background: var(--bg-gradient);
    color: white;
    padding: 3rem 0 1.5rem;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
  }
  
  .footer-links a,
  .footer-contact p,
  .footer-social a {
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
  }
  
  .footer-social a {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: #334155;
    text-align: center;
    line-height: 32px;
    border-radius: 50%;
    margin-right: 0.5rem;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .header .container {
      flex-direction: column;
      padding: 0.8rem;
    }
  
    .nav {
      margin: 0.8rem 0;
    }
  
    .nav a {
      margin: 0 0.8rem;
    }
  
    .hero h1 {
      font-size: 2rem;
    }
  
    .hero-buttons {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  
    .btn {
      width: 100%;
      max-width: 300px;
    }
  }


/* === CAROUSEL DE PROYECTOS === */
.portfolio-showcase {
  padding: 5rem 0;
  background-color: var(--light);
}

.portfolio-showcase h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: var(--dark);
}



/* Responsive */
@media (max-width: 768px) {
  .carousel-item img {
    height: 350px;
  }
  
  .carousel-caption {
    padding: 1.5rem;
  }
  
  .carousel-caption h3 {
    font-size: 1.5rem;
  }
  
  .carousel-caption p {
    font-size: 1rem;
  }
  
  .carousel-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .carousel-indicators {
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .carousel-item img {
    height: 280px;
  }
  
  .carousel-caption {
    padding: 1rem;
  }
  
  .carousel-caption h3 {
    font-size: 1.3rem;
  }
  
  .carousel-caption p {
    font-size: 0.9rem;
  }
  
  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}
/* Mostrar redes sociales en tablets y escritorio */
@media (min-width: 992px) {
  .social-icons {
      display: flex;
  }
}
.float-wa {
  position: fixed; /* Permite que el botón esté fijo en la pantalla */
  width: 80px;
  height: 60px;
  bottom: 40px; /* Distancia desde la parte inferior */
  right: 80px; /* Distancia desde la parte derecha */
  background-color: #25d366; /* Color verde de WhatsApp */
  color: #fff; /* Color blanco para el icono */
  border-radius: 50px; /* Para que sea circular */
  text-align: center;
  font-size: 30px; /* Tamaño del icono */
  box-shadow: 2px 2px 3px #999; /* Sombra para dar profundidad */
  z-index: 100; /* Asegura que el botón esté sobre otros elementos */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease; /* Transición suave al pasar el mouse */
  }

  .float-wa:hover {
  background-color: #128c7e; /* Color de fondo al pasar el mouse */
  }

  .whatsapp-icon {
  margin: 0;
  width: 60px; /* Ajusta el tamaño de la imagen del icono */
  height: 60px;
  }

  /* Estilos para las estrellas */
  .rating {
    direction: rtl;
    unicode-bidi: bidi-override;
  }
  .rating input { display: none; }
  .rating label.star {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
  }
  .rating input:checked ~ label.star,
  .rating label.star:hover,
  .rating label.star:hover ~ label.star {
    color: #ffc107;
  }
  /* Estrellas en reseñas publicadas */
.card-reseña .estrellas {
  font-size: 1.8rem; /* Estrellas más grandes */
  line-height: 1;
  margin: 0.4rem 0;
}
  /* Estilo para las reseñas publicadas */
  .card-reseña {
    background-color: #badff8; /* Azul claro suave */
    border: none;
    border-radius: 10px;
    transition: background-color 0.3s ease; /* Transición suave al pasar el mouse */
  }
  .card-reseña:hover {
    background-color: #4796f0; /* Color de fondo al pasar el mouse */
    }
  /* Estilo para el formulario de reseñas */
  .form-reseña .rating {
    justify-content: center; /* Centra las estrellas */
    margin: 10px 0;
  }
  .form-reseña .rating label.star {
    font-size: 2rem; /* Estrellas más grandes */
    color: #bbb;
    cursor: pointer;
    transition: color 0.2s;
  }
  .form-reseña .rating input:checked ~ label.star,
  .form-reseña .rating label.star:hover,
  .form-reseña .rating label.star:hover ~ label.star {
    color: #ffc107;
  }


/* Decorative background orbs to show off the glass effect */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: float 10s infinite ease-in-out;
}

.orb-1 {
  width: 200px;
  height: 100px;
  background: #7b2cbf;
  top: 20%;
  left: 20%;
  animation-delay: -5s;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: #00c6ff;
  bottom: 20%;
  right: 20%;
  animation-delay: -5s;
}

@keyframes float {

  0%,
  100% {
      transform: translateY(0);
  }

  50% {
      transform: translateY(-30px);
  }
}

/* --- 2. THE GLASS NAVBAR --- */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  /* Safari support */
  border: 1px solid var(--glass-border);
  padding: 10px 15px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  position: relative;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
}

/* --- 3. NAV ITEMS --- */
.nav-item a {
  display: block;
  height: var(--nav-height);
  width: var(--btn-width);
  overflow: hidden;
  text-decoration: none;
  border-radius: 16px;
  position: relative;
  transition: background 0.3s ease;
}

/* Subtle hover state for non-active items */
.nav-item a:hover {
  background: rgba(255, 255, 255, 0.03);
}

.nav-content {
  height: 100%;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  /* Bouncier pop */
}

/* Common flex centering */
.nav-content span {
  display: flex;
  justify-content: center;
  align-items: center;
  height: var(--nav-height);
  width: 100%;
}

/* --- 4. TYPOGRAPHY & ICONOGRAPHY --- */
.text {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

/* When active, text becomes white (before it disappears) */
.nav-item.active .text {
  color: var(--text-main);
}

.icon {
  font-size: 1.4rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Gradient Icon */
  opacity: 0;
  transform: scale(0.5);
  /* Start small */
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- 5. INTERACTION STATES --- */

/* The Slide Effect */
.nav-item:hover .nav-content,
.nav-item.active .nav-content {
  transform: translateY(-100%);
}

/* Icon Animation on Reveal */
.nav-item:hover .icon,
.nav-item.active .icon {
  opacity: 1;
  transform: scale(1.2);
  /* Pop effect */
}

/* The "Active" Glow Indicator */
.nav-item {
  position: relative;
}

/* Creates a glowing dot at the bottom of the active item */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  /* Position slightly outside or at very bottom */
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 10px;
  box-shadow: 0 0 10px #00c6ff;
  transition: transform 0.4s ease;
}

.nav-item.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Focus rings for accessibility */
.nav-item a:focus-visible {
  outline: 2px solid #00c6ff;
  outline-offset: -2px;
}

@media (max-width: 650px) {
  .navbar {
      padding: 10px;
      width: 95%;
  }

  .nav-item a {
      width: auto;
      flex: 1;
      min-width: 60px;
  }

  .text {
      font-size: 0.7rem;
  }
}

/* ESTILOS PARA LOS SERVICIOS */

canvas { 
  position: fixed;
  top: 10;
  left: 0;
  z-index: -1;
}

/* --- Layout --- */
.container-servicios {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 50px;
  min-height: 100vh;
  box-sizing: border-box;
  perspective: 1000px;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Warp Animation State */
.container.zoom-out {
  opacity: 0;
  transform: scale(0.8) translateZ(-100px);
  pointer-events: none;
}

/* --- GLASSMORPHISM CARD --- */
.glass-card {
  width: 320px;
  max-width: 100%; /* Prevents overflow on small screens */
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); 
  backdrop-filter: blur(16px); 
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}

.card-content, .card-image-wrapper { transform: translateZ(20px); }

.card-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Only hover zoom on non-touch devices */
@media (hover: hover) {
  .glass-card:hover .card-image-wrapper img { transform: scale(1.15); }
}

.card-content {
  padding: 25px;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.glass-card h2 {
  margin-top: 0;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #fff, #4deeea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(77, 238, 234, 0.3);
}

.glass-card p {
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: #4deeea;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 1px solid rgba(77, 238, 234, 0.3);
  cursor: pointer;
  width: fit-content;
}

.btn:active, .btn:hover {
  background: rgba(77, 238, 234, 0.1);
  box-shadow: 0 0 15px rgba(77, 238, 234, 0.4);
  border-color: #4deeea;
  color: white;
}

/* White Flash Overlay */
.warp-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.5s ease-in;
}
.warp-overlay.active { opacity: 1; }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  .container {
      padding: 20px 15px; /* Reduce padding */
      gap: 25px;
      flex-direction: column; /* Stack cards */
  }

  .glass-card {
      width: 100%; /* Full width */
      transform: none !important; /* Disable 3D Tilt on mobile */
  }

  .card-image-wrapper {
      height: 180px; /* Slightly shorter images */
  }
  
  .glass-card h2 {
      font-size: 1.4rem;
  }
}
.solo-mayusculas {
  text-transform: uppercase;
}