  /* Color exclusivo para el párrafo principal de descripción del hero */
  .hero-ivery-bg .hero-desc {
    color: #6200ee !important;
  }
  /* Color exclusivo para los textos de las tarjetas portal del hero */
  .hero-ivery-bg .portal-card .portal-content p {
    color: #6200ee !important;
  }
  /* Color específico para la descripción de certificados */
  .cert-desc {
    color: #a7adbb !important;
  }
  /* Color destacado para detalles de experiencia y certificados */
  .exp-detail,
  .exp-detail p,
  .exp-detail ul,
  .exp-detail li,
  .exp-detail strong,
  .exp-detail span {
    color: #a7adbb !important;
  }
  /* Forzar color en los párrafos de la intro de about */
  .about-section .about-intro-block p {
    color: #a7adbb !important;
  }
  /* Color destacado para el bloque de introducción en about */
  .about-intro-block,
  .about-intro-block p,
  .about-intro-block ul,
  .about-intro-block li {
    color: #a7adbb !important;
  }
  /* Color destacado para textos de servicios de gestión */
  .service-card .service-short-desc,
  .service-card ul li {
    color: #bfc8db !important;
  }
  /* Limpieza y unificación de modales estilo cristal con borde lila */
  .modal-content,
  .design-modal-content {
    border: 2px solid #d946ee !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    background: var(--nav-bg, #181826) !important;
    color: var(--white, #fff) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    position: relative;
  }

  /* Elimina borde y curvatura interna de modal-body */
  .modal-body {
    border: none !important;
    border-radius: 28px !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    padding-bottom: 3.5rem !important;
    overflow-y: auto !important;
    max-height: 60vh;
  }
@media (max-width: 900px) {
  .modal-body {
    padding-bottom: 4.5rem !important;
    max-height: 50vh;
  }
}
@media (max-width: 600px) {
  .modal-body {
    padding-bottom: 5.5rem !important;
    max-height: 40vh;
  }
}

  /* Elimina cualquier referencia a --accent o #E91E63 en los modales */
  .modal-content [style*="#E91E63"],
  .design-modal-content [style*="#E91E63"],
  .modal-content [style*="--accent"],
  .design-modal-content [style*="--accent"] {
    color: inherit !important;
    border-color: #d946ee !important;
  }

  @media (max-width: 900px) {
    .modal-content,
    .design-modal-content {
      width: 98vw;
      max-width: 98vw;
      border-radius: 22px !important;
    }
    .modal-body {
      border-radius: 22px !important;
    }
  }
  @media (max-width: 600px) {
    .modal-content,
    .design-modal-content {
      width: 100vw;
      max-width: 100vw;
      border-radius: 16px !important;
    }
    .modal-body {
      border-radius: 16px !important;
    }
  }
  /* Unificación visual de todos los modales: borde fucsia, esquinas suaves, fondo oscuro */
  .modal-content,
  .design-modal-content {
    border: 2px solid #d946ee !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    background: var(--nav-bg, #181826) !important;
    color: var(--white, #fff) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    position: relative;
  }

  @media (max-width: 900px) {
    .modal-content,
    .design-modal-content {
      width: 98vw;
      max-width: 98vw;
      border-radius: 22px !important;
    }
  }

  @media (max-width: 600px) {
    .modal-content,
    .design-modal-content {
      width: 100vw;
      max-width: 100vw;
      border-radius: 16px !important;
    }
  }
  /* Forzar color en textos de modal-body para accesibilidad */
  .modal-body p,
  .modal-body li {
    color: #a6adbbcc !important;
  }
  /* Mejor contraste para textos secundarios en cards y modales */
  .project-role {
    color: #a6adbbcc !important;
  }
  /* Unifica el modal de proyectos con el diseño de .design-modal-content */
  .modal-body {
    background: var(--nav-bg, #181826) !important;
    color: var(--white, #fff) !important;
    border: 1px solid var(--accent, #E91E63);
    border-radius: 0;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  }

  .modal-body h2,
  .modal-body .modal-h2 {
    background: linear-gradient(90deg, #ff0080 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
  }

  .modal-body .modal-section h3 {
    font-size: 1.2rem;
    color: var(--white, #fff);
    margin-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
  }

  .modal-body .modal-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #a6adbbcc !important;
    font-family: 'Raleway', sans-serif;
  .modal-subtitle {
    color: #a6adbbcc !important;
  }
  }

  .modal-body .modal-badges .tech-badge {
    background: #23234a;
    color: #fff;
    border: 1px solid #444;
    font-size: 0.85rem;
    padding: 6px 14px;
    font-weight: 500;
  }

  @media (max-width: 768px) {
    .modal-body {
      width: 95vw;
      padding: 1rem;
    }
  }
  ul.video-highlights-list li strong {
    color: var(--white, #fff) !important;
    text-shadow: 0 2px 8px rgba(35,41,70,0.18);
    font-weight: 700;
    font-size: 1.13em;
    letter-spacing: 0.01em;
    transition: color 0.3s;
  }
  ul.video-highlights-list li strong:hover {
    color: var(--accent, #E91E63) !important;
    text-decoration: underline;
  }
/* Eliminar reglas huérfanas y llaves sobrantes para corregir errores de sintaxis */
 .video-highlights-list li strong:hover {
  color: var(--accent, #E91E63) !important;
  text-decoration: underline;
}
picture:hover,
.contact-icon:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

picture {
  background: transparent !important;
}

/* Alineación consistente para títulos y subtítulos en todas las páginas */

/* Alineación perfecta con el bloque de videos */

.exp-title,
.page-title,
.category-title,
.category-title-disenos {
  font-size: 2.9em;
  font-weight: 700;
  margin-bottom: 0.7em;
  line-height: 1.1;
  word-break: break-word;
  text-align: left;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  color: var(--primary) !important;
}

@media (max-width: 900px) {

  .exp-title,
  .page-title,
  .category-title,
  .category-title-disenos,
  section h1 {
    font-size: 2em;
  }
}

@media (max-width: 600px) {
  .video-tile-yt .video-hover-desc {
    display: block !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 95vw;
    font-size: 0.98em;
    color: #e0e7ff;
    text-shadow: 0 1px 4px rgba(35, 41, 70, 0.12);
  }

  .category-title-disenos,
  section h1 {
    font-size: 1.8em;
    margin-bottom: 0.5em;
  }
}

@media (max-width: 400px) {

  .exp-title,
  .page-title,
  .category-title,
  .category-title-disenos,
  section h1 {
    font-size: 1.7em;
    margin-bottom: 0.4em;
  }
}

.page-subtitle {
  text-align: justify !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 1.5em;
  padding-left: 0 !important;
  padding-right: 0;
  color: var(--secondary) !important;
}

.subtitle {
  text-align: justify !important;
  line-height: 1.6;
  color: var(--secondary) !important;
  font-size: 1.1em;
  margin-bottom: 2em;
}

.services-desc {
  font-size: 1.15em;
  color: var(--gray);
  margin-bottom: 2em;
  text-align: center;
}

.service-short-desc {
  font-size: 1em;
  color: #4a5568;
  margin-bottom: 0.7em;
  font-weight: 500;
  text-align: center;
}

.service-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 1em;
}

.service-card ul {
  list-style: disc inside;
  padding-left: 0;
  margin: 1em 0 0 0;
  text-align: left;
}

.service-card ul li {
  margin-bottom: 0.5em;
  font-size: 1em;
  color: #444;
}

/* Grid de 4 servicios para servicioGestion */
.services-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
  margin: 2em 0;
}

.service-card {
  background: var(--white, #fff);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(35, 41, 70, 0.10);
  padding: 2em 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.18);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1em;
  object-fit: contain;
}

@media (max-width: 900px) {
  .services-grid-4col {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
  }
}

@media (max-width: 600px) {
  .services-grid-4col {
    grid-template-columns: 1fr;
    gap: 1em;
  }
}

/* Animación para About */
.animate-about {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUpAbout 0.8s cubic-bezier(.77, 0, .18, 1) forwards;
}

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

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#app {
  flex: 1 0 auto;
  padding-top: 0.5em;
  /* Ajusta según la altura real de tu menú */
  padding-bottom: 3em;
  box-sizing: border-box;
}

/* Eliminar padding del #app cuando hay un hero */
#app:has(.hero-ivery-bg) {
  padding-top: 0;
}

:root {
  /* DARK THEME PALETTE inspired by fearg.tech */
  --primary: #818cf8;       /* Indigo-400 */
  --secondary: #cbd5e1;     /* Slate-400 */
  --accent: #d946ef;        /* Fuchsia-500 */
  --background: #0f172a;    /* Slate-900 (Dark Background) */
  --white: #f8fafc;         /* Slate-800 */
  --text: #f8fafc;          /* Slate-50 (Light Text) */
  --gray: #94a3b8;          /* Slate-300 */
  --gradient: linear-gradient(270deg, #818cf8 0%, #c084fc 40%, #f472b6 70%, #818cf8 100%);
  --nav-bg: rgba(15, 23, 42, 0.98); /* Semi-transparent dark nav */
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ANIMATED TEXT GRADIENT (The "Moving Colors" Effect) */
.animated-gradient-text {
  background: linear-gradient(90deg, #ff0080 0%, #ff8c00 25%, #40e0d0 50%, #5602f3 75%, #ff0080 100%);
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: moving-gradient 3s linear infinite;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: none;
  filter: none;
}

.moving-gradient {
  filter: none;
}

@keyframes moving-gradient {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.main-nav {
  background: var(--nav-bg);
  color: var(--white);
}

.nav-links a,
.nav-links a:not(.active),
.nav-links a:visited {
  color: var(--white) !important;
}

.dropdown li a {
  color: var(--primary) !important;
}

.dropdown li a:hover {
  background-color: var(--accent);
  color: var(--white) !important;
}

.copy-card {
  background: rgba(24, 24, 36, 0.98) !important;
  border: 1px solid var(--primary) !important;
}

.copy-card .project-header h3 {
  background: none !important;
  color: var(--primary, #8B5CF6) !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
}

.copy-card .project-brief {
  color: var(--secondary) !important;
}

.copy-card .teleprompter-box p {
  color: var(--white) !important;
}

.copy-card .audio-box span {
  color: var(--primary) !important;
}

/* Hero Title Grande y Elegante */
/* Efectos iniciales para el hero */

.hero-info-scroll h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5.4vw, 4.5rem); /* Reducción ~10% solicitada */
  /* Escalable y grande */
  line-height: 1.05;
  /* ...existing code... */

  /* Fuerza el color #a7adbb en todos los textos de .exp-detail, incluyendo strong y span */
  .exp-detail,
  .exp-detail ul,
  .exp-detail li,
  .exp-detail li strong,
  .exp-detail li span {
    color: #a7adbb !important;
  }
}

@media (max-width: 700px) {
  .hero-info-scroll h1 {
    font-size: 2.2em;
    text-align: left;
    /* Centrar en móvil */
    margin-top: 0;
    /* Asegurar que no tenga margin superior */
    margin-bottom: 0.5em;
  }
}

.nav-links a,
.main-footer,
.subtitle,
.btn,
input,
textarea,
select {
  font-family: 'Montserrat', Arial, sans-serif;
}

.btn {
  display: inline-block;
  padding: 0.85em 2.2em;
  border-radius: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  cursor: pointer;
  border: none;
  outline: none;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.08);
  background: none;
  color: var(--text);
}

.btn-primary {
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  color: var(--white);
  border: none;
  cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(90deg, #5a2d82 0%, #6366f1 100%);
  color: hsl(329, 100%, 50%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.18);
}

.btn-outline {
  background: transparent;
  color: #6366f1;
  border: 2px solid #6366f1;
}

.btn-outline:hover,
.btn-outline:focus {
  background: #f3e9ff;
  color: hsl(329, 100%, 50%);
  border-color: #5a2d82;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.10);
}

/* Asegurar que el botón sea interactivo */
.hero-actions {
  position: relative;
  z-index: 100;
}

.btn-primary {
  position: relative;
  z-index: 101;
  pointer-events: auto;
}

/* Evitar que otros elementos bloqueen el botón */
.hero-overlay {
  pointer-events: none;
}

.hero-img-right {
  pointer-events: none;
}

#flores-cayendo {
  pointer-events: none;
  z-index: -1;
}

/*Hero Section */
.hero-ivery-bg {
  position: relative;
  height: 100vh; /* Altura Fija One-Screen */
  min-height: 0; /* Override */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Cortar excedentes */
  background: #ddd0f4 !important;
  padding-bottom: 0 !important; /* Eliminar padding inferior extra */
  margin: 0;
  padding: 0;
  margin-top: -72px;
  /* Compensar exactamente la altura del navbar (72px) */
  padding-top: 72px;
  /* Añadir padding equivalente para mantener el contenido centrado */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg,
      rgba(244, 238, 252, 0.55) 0%,
      rgba(189, 171, 222, 0.7) 30%,
      rgba(189, 171, 222, 0.7) 20%,
      rgba(86, 2, 243, 0.7) 100%);
  backdrop-filter: blur(6px);
  z-index: 1;
}

.hero-ivery-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center; /* Alineación vertical centrada solicitada */
  gap: 2em; /* Gap reducido para evitar huecos excesivos */
  width: 90%; /* Ancho aumentado al 90% */
  max-width: 1400px; /* Max-width aumentado a 1400px */
  margin: 0 auto;
  padding: 0 2em;
  box-sizing: border-box;
  height: 100%;
}

.hero-info-scroll {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1em;
  width: 60%; /* Ajuste 60/40 solicitado */
  flex: 0 0 60%;
  color: #22223b;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(.77, 0, .18, 1);
  padding-top: 1em;
  position: relative; 
  z-index: 10;
}

.hero-img-right {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Alineación a la derecha */
  flex: 1 1 auto;
  width: 40%; /* Ajuste 60/40 solicitado */
  margin: 0;
  height: 100%;

}

.hero-img-full {
  display: block;
  height: 100%;
  /* Ocupa todo el alto del hero */
  width: auto;
  max-width: 100vw;
  /* No se sale del viewport */
  object-fit: cover;
  /* Llena el área, como en Ivery */
  border-radius: 0;
  box-shadow: none;
  background: none;
  margin: 0;
  padding: 0;
}

.hero-prof,
.hero-desc {
  font-family: 'Rubik', Arial, sans-serif;
  font-weight: 500;
  /* CAMBIO: de 500 a 400 para hero-desc */
  color: #240088;
  margin: 0 0 0.6em 0;
}

.hero-prof {
  font-size: 1em;
  letter-spacing: 0.01em;
  margin-bottom: 0.2em;
  font-weight: 500;
  /* MANTENER: para hero-prof */
}

.hero-desc {
  font-size: 0.9em;
  line-height: 1.5;
  color: #240088;
  margin-bottom: 1.2em;
  font-weight: 400 !important;
  /* CAMBIO: de 500 a 400 para quitar negrita */
}

@media (max-width: 768px) {
  .hero-prof {
    font-size: 1em !important;
    /* Reducir ligeramente */
  }

  .hero-desc {
    font-size: 0.85em !important;
    /* Reducir ligeramente */
  }
}

/* Media query específica para rango 901px-1015px donde se desaparece el H1 */
@media (max-width: 1015px) and (min-width: 901px) {
  .hero-ivery-bg {
    min-height: 100vh;
    height: 100vh;
    padding-top: 72px;
    /* Compensar navbar */
    margin-top: -72px;
  }

  .hero-ivery-content {
    flex-direction: row;
    /* Mantener layout horizontal */
    align-items: center;
    justify-content: space-between;
    /* Distribuir espacio como en móvil */
    max-width: 100vw;
    width: 100vw;
    padding: 2em 1em 0 1em;
    /* Sin padding inferior como en móvil */
    height: calc(100vh - 72px);
    box-sizing: border-box;
    gap: 2em;
    /* Espacio entre texto e imagen */
  }

  .hero-info-scroll {
    max-width: 450px;
    /* Limitar ancho del texto */
    padding-top: 2em;
    /* Espacio superior para el H1 */
    flex-shrink: 0;
  }

  .hero-info-scroll h1 {
    font-size: 2.5em !important;
    /* Tamaño específico para este rango */
    line-height: 1.1 !important;
    margin-top: 0 !important;
    margin-bottom: 0.5em !important;
    text-align: left !important;
  }

  .hero-img-right {
    flex: 1;
    justify-content: center;
    align-items: flex-end;
    /* Alinear al final como en móvil */
    height: auto;
    margin: auto 0 0 0;
    /* Solo margin-top auto, sin bottom */
    padding: 0;
    /* Sin padding */
  }

  .hero-img-full {
    width: auto;
    max-width: 400px;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 18px;
    margin: 0 auto 0 auto;
    /* Solo centrar horizontalmente */
    padding: 0;
    /* Sin padding */
  }

  .hero-img-full {
    max-height: 60vh;
    object-fit: contain;
    border-radius: 18px;
  }
}

/* Media query adicional para tablets y pantallas medianas 1016px-1200px */
@media (max-width: 1200px) and (min-width: 1016px) {
  .hero-ivery-bg {
    padding-top: 72px;
    /* Compensar navbar */
    margin-top: -72px;
  }

  .hero-ivery-content {
    padding: 2em 1.5em 0 1.5em;
    /* Sin padding inferior */
    gap: 2em;
    justify-content: space-between;
    /* Distribuir espacio */
    height: calc(100vh - 72px);
    /* Altura específica */
  }

  .hero-info-scroll {
    max-width: 500px;
    padding-top: 1.5em;
  }

  .hero-info-scroll h1 {
    font-size: 3em !important;
    /* Tamaño apropiado para tablets */
    line-height: 1.1 !important;
    margin-top: 0 !important;
    text-align: left !important;
  }

  .hero-img-right {
    align-items: flex-end;
    /* Alinear al final */
    margin: auto 0 0 0;
    /* Solo margin-top auto */
    padding: 0;
    /* Sin padding */
  }

  .hero-img-full {
    margin: 0 auto 0 auto;
    /* Solo centrar horizontalmente */
    padding: 0;
    /* Sin padding */
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-ivery-bg {
    min-height: 100vh;
    height: 100vh;
    /* Mantener altura fija para evitar espacios extra */
    padding-top: 72px;
    /* Compensar navbar */
    margin-top: -72px;
  }

  .hero-ivery-content {
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    /* Distribuir espacio entre texto e imagen */
    max-width: 100vw;
    width: 100vw;
    padding: 2em 1em 0 1em;
    /* Sin padding inferior */
    margin: 0;
    /* Sin márgenes */
    height: calc(100vh - 72px);
    /* Altura exacta menos navbar */
    box-sizing: border-box;
  }

  .hero-info-scroll {
    max-width: 100%;
    text-align: center;
    /* Centrar el contenido en móvil */
    padding-top: 1.5em;
    /* Más espacio arriba del H1 */
    order: 1;
    /* Asegurar que aparezca primero */
    flex-shrink: 0;
    /* No permitir que se contraiga */
  }

  .hero-info-scroll p {
    text-align: left;
    /* Mantener párrafos alineados a la izquierda */
  }

  .hero-img-right {
    width: 100%;
    justify-content: center;
    /* Centrar horizontalmente en móvil */
    height: auto;
    margin: auto 0 0 0;
    /* Solo margin-top auto, eliminar bottom */
    padding: 0;
    /* Eliminar todo padding */
    align-items: flex-end;
    /* Alinear al final para pegarlo al bottom */
    order: 2;
    /* Imagen después del texto */
    flex-shrink: 0;
    /* No permitir que se contraiga */
    display: flex;
    /* Asegurar que sea flex */
    position: relative;
    z-index: 3;
    /* Por encima del overlay */
  }

  .hero-img-full {
    width: 100%;
    max-width: 320px;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 18px;
    display: block;
    /* Asegurar display block */
    margin: 0 auto 0 auto;
    /* Solo centrar horizontalmente, sin margin bottom */
    padding: 0;
    /* Eliminar padding */
    position: relative;
    z-index: 3;
    /* Por encima del overlay */
  }
}

/* Media query específica para el rango problemático 300-905px */
@media (max-width: 905px) and (min-width: 300px) {
  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Asegurar que no interfiera con el posicionamiento */
  }

  .hero-ivery-content {
    position: relative;
    z-index: 2;
    padding-bottom: 0 !important;
    /* Eliminar cualquier padding inferior */
    margin-bottom: 0 !important;
    /* Eliminar cualquier margen inferior */
    height: 100% !important;
    /* Ocupar toda la altura disponible */
  }

  .hero-img-right {
    margin-bottom: 0 !important;
    /* Sin margen inferior */
    padding-bottom: 0 !important;
    /* Sin padding inferior */
    margin-top: auto !important;
    /* Empujar hacia abajo */
    align-items: flex-end !important;
    /* Alinear al final del contenedor */
    position: relative;
    z-index: 3;
    /* Por encima del overlay */
  }

  .hero-img-full {
    margin-bottom: 0 !important;
    /* Sin margen inferior en la imagen */
    padding-bottom: 0 !important;
    /* Sin padding inferior en la imagen */
    vertical-align: bottom !important;
    /* Alinear al bottom */
    position: relative;
    z-index: 3;
    /* Por encima del overlay */
  }
}

/* Media query para pantallas muy pequeñas menores a 300px */
@media (max-width: 299px) {
  .hero-ivery-bg {
    height: 100vh;
    padding-top: 80px;
    margin-top: -72px;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .hero-ivery-content {
    position: relative;
    z-index: 2;
    padding: 1.5em 0.5em 0 0.5em;
    margin: 0;
    height: calc(100vh - 80px);
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
  }

  .hero-info-scroll {
    padding-top: 1.5em;
    width: 100%;
    order: 1;
    flex-shrink: 0;
  }

  .hero-img-right {
    width: 100%;
    margin: auto 0 0 0;
    padding: 0;
    justify-content: center;
    align-items: flex-end;
    order: 2;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
  }

  .hero-img-full {
    width: 100%;
    max-width: 280px;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    border-radius: 18px;
    margin: 0 auto 0 auto;
    padding: 0;
    position: relative;
    z-index: 3;
  }

  .hero-info-scroll h1 {
    font-size: 1.6em !important;
    line-height: 1.2 !important;
    text-align: left;
  }
}

/* Media query específica para pantallas muy pequeñas */
@media (max-width: 600px) {
  .hero-ivery-bg {
    min-height: 100vh;
    height: 100vh;
    /* Mantener altura fija */
    padding-top: 90px;
    /* Más padding para compensar en pantallas pequeñas */
    margin-top: -72px;
  }

  .hero-ivery-content {
    padding: 1.5em 1em 0 1em;
    /* Sin padding inferior */
    margin: 0;
    /* Sin márgenes */
    height: calc(100vh - 90px);
    /* Altura exacta */
    justify-content: space-between;
    /* Mantener distribución */
  }

  .hero-info-scroll {
    padding-top: 2em;
    /* Aún más espacio para el H1 */
    width: 100%;
  }

  .hero-img-right {
    margin: auto 0 0 0;
    /* Solo margin-top auto */
    padding: 0;
    /* Sin padding */
    justify-content: center;
    /* Centrar horizontalmente */
    align-items: flex-end;
    /* Alinear al final */
  }

  .hero-img-full {
    margin: 0 auto 0 auto;
    /* Solo centrar horizontalmente */
    padding: 0;
    /* Sin padding */
  }

  .hero-info-scroll h1 {
    font-size: 2em !important;
    /* Reducir ligeramente el tamaño en pantallas muy pequeñas */
    line-height: 1.1 !important;
    margin-bottom: 0.8em !important;
  }
}

@media (max-width: 400px) {
  .hero-ivery-bg {
    height: 100vh;
    /* Mantener altura fija */
    padding-top: 100px;
    /* Aún más padding para pantallas extra pequeñas */
  }

  .hero-ivery-content {
    padding: 2em 0.8em 0 0.8em;
    /* Sin padding inferior */
    margin: 0;
    /* Sin márgenes */
    height: calc(100vh - 100px);
    /* Altura exacta */
  }

  .hero-info-scroll {
    padding-top: 2.5em;
  }

  .hero-img-right {
    margin: auto 0 0 0;
    /* Solo margin-top auto */
    padding: 0;
    /* Sin padding */
    justify-content: center;
    /* Centrar horizontalmente */
    align-items: flex-end;
    /* Alinear al final */
  }

  .hero-img-full {
    margin: 0 auto 0 auto;
    /* Solo centrar horizontalmente */
    padding: 0;
    /* Sin padding */
  }

  .hero-info-scroll h1 {
    font-size: 1.8em !important;
    line-height: 1.2 !important;
  }
}

/* Regla específica para móvil/tablet - imagen pegada al bottom */
@media (max-width: 1200px) {
  .hero-ivery-bg .hero-img-right {
    align-items: flex-end !important;
  }

  .hero-ivery-bg .hero-img-full {
    vertical-align: bottom !important;
  }
}

.mobile-home-link {
  display: none !important;
}

.hero-prof,
.hero-desc {
  font-family: 'Rubik', Arial, sans-serif;
  font-weight: 500;
  color: #240088;
  margin: 0 0 0.6em 0;
}

.hero-prof {
  font-size: 1.5em;
  letter-spacing: 0.01em;
  margin-bottom: 0.2em;
}

.hero-desc {
  font-size: 1.1em;
  line-height: 1.5;
  color: #240088;
  margin-bottom: 1.2em;
}


/* Section Styles */


.subtitle {
  color: var(--gray);
  font-size: 1.1em;
  margin-bottom: 2em;
}

/* Services Grid */
.services-grid-2col,
.services-grid {
  padding-left: 3em;
  padding-right: 3em;
  gap: 0.7em;
  column-gap: 0.7em;
  row-gap: 1.2em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.services-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 2.5em;
  /* Espacio extra debajo de las cards */
}

.service-card {
  background: var(--background);
  border-radius: 0px;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.07);
  padding: 2em 1.5em;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 1em;
}

.service-card h3 {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 0.5em;
  text-align: center !important;
  /* CAMBIO: centrar */
  background: linear-gradient(135deg, #ff0080, #5602f3) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.service-short-desc {
  font-size: 1em;
  color: #4a5568;
  margin-bottom: 0.7em;
  font-weight: 500;
  text-align: center !important;
  /* CAMBIO: de center a justify */
}

.icon-bg1 {
  background: #6366f1;
}

.icon-bg2 {
  background: #8b5cf6;
}

.icon-bg3 {
  background: #4f46e5;
}

.icon-bg4 {
  background: #a78bfa;
}

.service-icon {
  width: 80px !important;
  /* CAMBIO: de 64px a 80px */
  height: 80px !important;
  /* CAMBIO: de 64px a 80px */
  margin-bottom: 0.5em !important;
  /* CAMBIO: de 1em a 0.5em */
  object-fit: contain;
}

/* Ajustar contenedor de iconos */
.service-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 0.5em !important;
  /* CAMBIO: reducir espacio debajo */
}

.service-card ul {
  padding-left: 1.2em;
  margin: 0;
}

.service-card li {
  margin-bottom: 0.5em;
  font-size: 1em;
  list-style: disc;
}

.mt-auto {
  margin-top: auto;
}

/* Espacio extra entre filas de cards solo en desktop */
@media (min-width: 801px) {

  .services-grid-2col>.service-card:nth-child(3),
  .services-grid-2col>.service-card:nth-child(4) {
    margin-top: 2.5em;
  }
}

@media (max-width: 900px) {

  .services-grid-2col,
  .services-grid {
    padding-left: 0.5em;
    padding-right: 0.5em;
    gap: 1em;
  }
}

/* Ticker Herramientas */
.tools-ticker {
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  border-radius: 20px;
  margin: 1em 0;
  height: 2.5em;
  position: relative;
  /* background: var(--background);*/
}

.tools-track {
  display: flex;
  width: max-content;
  animation: ticker-move 18s linear infinite;
  align-items: center;
  gap: 1.5em;
  height: 100%;
}

.tools-ticker span {
  display: inline-block;
  background: var(--gray);
  color: var(--secondary);
  padding: 0.4em 1.2em;
  border-radius: 20px;
  font-size: 1em;
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
}

.tools {
  width: 100%;
  box-sizing: border-box;
}

@keyframes ticker-move {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Perfil, Skills, Tools, Experience */
.skills,
.tools,
.experience {
  margin-bottom: 1em;
}

.skills span,
.tools span {
  display: inline-block;
  background: var(--gray);
  color: var(--secondary);
  margin: 0.2em 0.5em 0.2em 0;
  padding: 0.4em 1em;
  border-radius: 20px;
  font-size: 1em;
  font-weight: 500;
  transition: background 0.2s;
}

.skills span:hover,
.tools span:hover {
  background: var(--accent);
  color: var(--secondary);
}

.experience ul {
  padding-left: 1.2em;
}

.experience li {
  margin-bottom: 0.7em;
  font-size: 1.05em;
}

#perfil {
  max-width: 1200px;
  /* Más ancho */
  margin: 3em auto;
  padding: 2em;
  background: var(--white);
  border-radius: 0px;
  box-shadow: 0 4px 24px rgba(35, 41, 70, 0.10);
  box-sizing: border-box;
}


/* Contacto */
.contact-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2em 0;
  background: var(--background);
}

.contact-container {
  max-width: 1200px;
  width: 100%;
  margin: 3em auto;
  padding-left: 3em;
  padding-right: 3em;
  box-sizing: border-box;
  text-align: center;
}

.contact-container h1 {
  font-size: 2.5em;
  margin-bottom: 1.2em;
  color: var(--primary);
  text-align: center !important;
}

.contact-container .subtitle {
  font-size: 1.2em;
  color: var(--secondary);
  margin-bottom: 1.5em;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}

.contact-links {
  display: flex;
  gap: 2.5em;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: transparent !important;
  border-radius: 0 !important;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: none;
}

.contact-link:hover {
  transform: translateY(-5px);
  box-shadow: none !important;
}

.contact-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: transparent !important;
  border-radius: 0 !important;
}

.contact-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: flex-start;
}

.contact-links {
  display: flex;
  gap: 3em;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1em 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-link:hover {
  transform: translateY(-8px) scale(1.1);
}

.contact-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  min-width: 250px;
  flex: 1 1 300px;
}

.contact-form label {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.2em;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.contact-form input,
.contact-form textarea {
  padding: 0.7em 1em;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 1em;
  font-family: inherit;
  background: #f9fafb;
  resize: vertical;
}

.contact-form button {
  margin-top: 0.5em;
}

.contact-container .subtitle {
  text-align: center !important;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    gap: 2em;
    padding: 0 1em;
  }

  main:not(.hero-ivery-bg),
  section:not(.hero-ivery-bg) {
    padding: 1.5em 0.5em;
    border-radius: 0;
    margin: 1em 0;
  }

  .services-grid {
    gap: 1em;
  }

  .contact-flex {
    flex-direction: column;
    gap: 1.5em;
  }

  .contact-section {
    padding: 1em;
    min-height: auto;
  }

  .contact-container {
    padding: 1em;
  }

  .contact-container h1 {
    font-size: 2em;
  }

  .contact-links {
    gap: 2em;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 800px) {
  .services-grid-2col {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 2em;
    padding-bottom: 0;
    /* Quita el padding extra en móvil */
  }

  .services-grid-2col>.service-card:nth-child(3),
  .services-grid-2col>.service-card:nth-child(4) {
    margin-top: 0;
  }
}

/* Galería Parallax Diseños Realizados */
.parallax-gallery {
  display: flex;
  flex-direction: column;
  gap: 2.5em;
  margin: 2em 0;
  margin-bottom: 5em;
  padding-bottom: 6em;
}

.parallax-card-img {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 0px;
  box-shadow: 0 4px 24px rgba(35, 41, 70, 0.10);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  will-change: transform;
  min-height: 220px;
  position: relative;
  z-index: 1;
}

.parallax-card-img .img-container {
  flex: 0 0 220px;
  max-width: 220px;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6fb;
}

.parallax-card-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0;
  max-height: 220px;
  transition: transform 0.3s;
}

.parallax-card-img:hover img {
  transform: scale(1.06);
}

.parallax-card-img .desc {
  padding: 1.5em 2em;
  flex: 1 1 auto;
}

.parallax-card-img h3 {
  margin: 0 0 0.5em 0;
  color: var(--primary);
  font-size: 1.2em;
  font-weight: 700;
}

.parallax-card-img p {
  margin: 0;
  color: #555;
  font-size: 1em;
}

/* Responsive para galería parallax */
@media (max-width: 700px) {
  .parallax-card-img {
    flex-direction: column;
    min-height: unset;
  }

  .parallax-card-img .img-container {
    max-width: 100%;
    width: 100%;
    min-height: 160px;
  }

  .parallax-card-img .desc {
    padding: 1em 1em 1.5em 1em;
  }
}

/* === Servicios tipo Polaroid/Mosaico === */
.services-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem; /* Updated for consistency */
  margin-top: 2.5em;
}

.service-polaroid {
  background: var(--white);
  /*border-radius: 18px;*/
  border-radius: 0;
  box-shadow: 0 8px 32px rgba(35, 41, 70, 0.13), 0 1.5px 8px rgba(99, 102, 241, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  min-height: 420px;
}

.service-polaroid:hover {
  transform: translateY(-8px) scale(1.03) rotate(-1deg);
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.18);
}

.polaroid-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f4f6fb;
  /*border-radius: 18px 18px 0 0;*/
  border-radius: 0;
  overflow: hidden;
  border-bottom: 8px solid #fff;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaroid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /*border-radius: 18px 18px 0 0;*/
  border-radius: 0;
  transition: transform 0.3s;
}

.service-polaroid:hover .polaroid-img img {
  transform: scale(1.06);
}

.polaroid-content {
  padding: 1em 0.8em 0.5em 1.3em;
  /* top right bottom left */
  width: 100%;
  background: #f3e9ff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  word-break: break-word;
  flex-grow: 1;
  justify-content: flex-end;
}

.polaroid-content h3 {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--primary);
  margin: 0.5em 0 0.3em 0;
}

.polaroid-content p {
  color: #555;
  margin-bottom: 0.7em;
  font-size: 1em;
}

.polaroid-content ul {
  padding-left: 1.2em;
  margin: 0 0 1em 0;
}

.polaroid-content li {
  margin-bottom: 0.4em;
  font-size: 0.98em;
  list-style: disc;
}

.mt-auto {
  margin-top: auto;
}

@media (max-width: 700px) {
  .services-mosaic-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }

  .service-polaroid {
    min-height: 320px;
  }

  .polaroid-content {
    padding: 0.8em 0.5em 0.5em 1em;
    /* top right bottom left */
  }
}

/* === Barras de las skills === */
.skills-bars {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.5em;
  margin-bottom: 1em;
}

.skill-bar {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1.2em;
  width: 100%;
}

.bar-bg {
  flex: 1;
  background: #e5e7eb;
  border-radius: 8px;
  height: 16px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.skill-bar span {
  min-width: 140px;
  font-weight: 600;
  color: var(--primary, #6366f1);
}



.bar-fill {
  background: var(--primary, #6366f1);
  height: 100%;
  width: 0;
  border-radius: 8px;
  transition: width 1.2s cubic-bezier(.77, 0, .18, 1);
}

.skill-bar .percent {
  min-width: 40px;
  text-align: right;
  font-weight: 600;
  color: #444;
}

/* PERFIL - Sin animaciones de aparición */
#perfil.about-section {
  opacity: 1;
  transform: none;
  animation: none;
}

#perfil.about-section h1 {
  opacity: 1;
  transform: none;
  animation: none;
}

#perfil.about-section p {
  opacity: 1;
  transform: none;
  animation: none;
}

#perfil.about-section::before {
  animation: none;
  opacity: 0;
}

/* === Servicios detalle copy === */
.copy-cards-flex {
  display: flex;
  justify-content: center;
  margin-top: 2em;
  gap: 1.5em;
}

.copy-card {
  background: var(--white, #fff);
  border-radius: 0px;
  box-shadow: 0 4px 24px rgba(35, 41, 70, 0.10);
  padding: 2em 1.5em;
  max-width: 350px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5em;
  box-sizing: border-box;
  text-align: center;
}

/* MÓVIL: Cards apiladas verticalmente */
@media (max-width: 900px) {
  .copy-cards-flex {
    flex-direction: column;
    align-items: center;
  }

  .copy-card {
    max-width: 100%;
    width: 100%;
  }
}

.teleprompter-box {
  background: #181a2a;
  color: #fff;
  border-radius: 0px;
  height: 200px;
  /* Más alto */
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.07);
  position: relative;
  padding: 0.2em 0.7em;
  font-size: 1.08em;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5em;
}

.teleprompter-track {
  overflow-y: hidden;
  height: 100%;
  width: 100%;
  position: relative;
  scroll-behavior: smooth;
}

.teleprompter-track p {
  margin-bottom: 1.5em;
  font-size: 1.08em;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: pre-line;
  opacity: 0.8;
  transition: opacity 0.3s;
  text-align: center;
  /* <-- Esto centra el texto */
}

.audio-box {
  background: var(--background, #f3f4f6);
  border-radius: 0px;
  padding: 0.5em 0.7em;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  max-width: 220px;
  margin: 0 auto;
}

.audio-box h3 {
  margin: 0.5em 0 0.2em 0;
  font-size: 1em;
  color: var(--primary, #6366f1);
}

.audio-box audio {
  width: 100%;
  outline: none;
}

/* flores cayendo*/
#flores-cayendo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 20;
  /* VOLVER a 20 para que se vean */
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

/*footer*/
#footer-global {
  width: 100%;
  background: transparent !important; /* Ajuste 3: Fondo transparente solicitado */
  /* Fondo igual que la web */
  color: var(--primary, #6366f1);
  /* Texto morado */
  text-align: center;
  padding: 1.2em 0 1em 0;
  font-size: 1em;
  position: relative;
  z-index: 10;
  margin-top: 3em;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  align-items: center;
}

#footer-global a {
  color: var(--primary, #6366f1);
  /* Enlaces morados */
  text-decoration: underline;
}

/* NAV MODERNO Y RESPONSIVE */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary, #6366f1);
  color: #fff;
  padding: 0 1.2em;
  min-height: 62px;
  height: 72px;
  /* <-- Altura fija */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.4em;
  /* Antes 2em, ahora más discreto */
  max-width: 220px;
  /* Limita el ancho */
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  white-space: nowrap;
  /* Evita que se parta en dos líneas */
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-logo:hover,
.nav-logo:focus {
  color: hsl(329, 100%, 50%);
  /* Un color de acento claro para hover */
}

.nav-links {
  display: flex;
  gap: 1.5em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 0.7em;
  border-radius: 0px;
  transition: color 0.2s, border-bottom 0.2s;
  /*transition: background 0.2s;*/
}

/* Hover: cambia el color y agrega el borde */
.nav-links a:hover {
  color: hsl(329, 100%, 50%);
  border-bottom: 2px solid hsl(329, 100%, 50%);
}

/* Activo: aplica el color y el borde */
.nav-links .active {
  border-bottom: 2px solid hsl(329, 100%, 50%);
}

/* Enlaces no activos: asegúrate de que vuelvan al color blanco */
.nav-links a:not(.active) {
  color: #fff !important;
  /* Fuerza el color blanco */
  border-bottom: none !important;
}

.nav-links a:visited {
  color: #fff;
  /* Asegúrate de que los enlaces visitados vuelvan al color blanco */
}

.nav-links a:focus {
  outline: none;
  /* Elimina el borde de enfoque si está causando problemas */
}

/* Enlaces no activos: asegúrate de que vuelvan al color blanco */
.nav-links a:not(.active):hover,
.nav-links a:not(.active):focus {
  color: #fff !important;
  border-bottom: none !important;
}

/* === DROPDOWN STYLES - SIMPLE === */
.dropdown {
  display: none;
  position: absolute;
  background: var(--nav-bg, #181826) !important;
  color: var(--white, #fff) !important;
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  border-radius: 8px;
  border: 1px solid var(--primary, #8B5CF6);
  top: 100%;
  left: 0;
  z-index: 2000;
  margin-top: 0.2em;
  overflow: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;

}

.dropdown li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.dropdown li a {
  color: var(--white, #fff) !important;
  background: transparent !important;
  padding: 0.7em 1em;
  margin: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition: background 0.2s, color 0.2s;
  font-size: 0.95em;
  font-weight: 500;
  text-decoration: none;
}

.has-dropdown .dropdown li a {
  color: var(--white, #fff) !important;
}

.nav-links .dropdown li a {
  color: var(--white, #fff) !important;
}

.dropdown li a:hover {
  background-color: var(--accent, #E91E63) !important;
  color: var(--white, #fff) !important;
  /* FUCSIA AL HOVER */
}

/* HOVER MÁS ESPECÍFICO TAMBIÉN */
.has-dropdown .dropdown li a:hover,
.nav-links .dropdown li a:hover {
  background-color: var(--accent, #E91E63) !important;
  color: var(--white, #fff) !important;
}

.dropdown li a:hover {
  background-color: var(--accent, #E91E63) !important;
  /* FONDO HOVER FUCSIA SÓLIDO */
  color: var(--white, #fff) !important;
}

/* Mostrar dropdown cuando tiene clase open */
.has-dropdown.open .dropdown,
.has-dropdown:hover .dropdown {
  display: block;
}


.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.3em;
}

.nav-toggle-label span {
  display: block;
  width: 28px;
  height: 4px;
  background: #fff;
  border-radius: 0px;
  transition: 0.3s;
}

/* --- Menú móvil tipo teatrlalka.pl --- */
@media (max-width: 900px) {
  .main-nav {
    flex-wrap: wrap;
    padding: 0.5em 1em;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    /* CAMBIO: quitar right: 0 */
    width: 220px;
    /* AGREGAR: ancho fijo */
    bottom: 0;
    background: var(--primary, #6366f1);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-content: flex-start;
    /* CAMBIO: de center a flex-start */
    align-items: flex-start;
    /* CAMBIO: de center a flex-start */
    gap: 1em;
    /* CAMBIO: de 2em a 1em */
    display: none;
    z-index: 999;
    min-height: 100vh;
    padding-top: 3em;
    /* AGREGAR: espacio desde arriba */
    overflow-y: auto;
    /* NUEVO: scroll si el contenido es muy largo */
  }

  .nav-toggle:checked+.nav-toggle-label+.nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    /* NUEVO: para el posicionamiento de dropdowns */
  }

  .nav-links li.has-dropdown {
    position: relative;
  }

  .nav-links a {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    font-size: 1.1em;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.01em;
    background: none;
    border-radius: 0px;
    padding: 0.7em 1.2em;
    /* CAMBIO: más padding */
    display: flex;
    align-items: center;
    gap: 0.5em;
    transition: color 0.18s, background 0.18s, border-color 0.18s;
    justify-content: flex-start;
    /* AGREGAR */
    width: 100%;
    box-sizing: border-box;
  }

  /* SOLO AGREGAR ESTAS 3 LÍNEAS PARA EL COLOR BLANCO DEL DROPDOWN EN MÓVIL */
  .dropdown li a {
    color: #fff !important;
    padding: 0.5em 1em !important;
    /* CAMBIO: padding más pequeño */
    font-size: 0.95em !important;
  }

  .dropdown {
    position: static;
    /* CAMBIAR: de static a absolute */
    left: 100%;
    /* CAMBIAR: se abre hacia la derecha */
    top: 0;
    /* CAMBIAR: desde arriba del elemento padre */
    margin-left: 0;
    /* CAMBIAR: quitar margen izquierdo */
    width: 200px;
    /* CAMBIAR: ancho fijo */

    display: none !important;
    opacity: 1;
    transform: none;
    padding-left: 1em;
    /* NUEVO: indentación visual */
    background: rgba(255, 255, 255, 0.08) !important;
  }

  /* MOSTRAR DROPDOWN SOLO EN HOVER */
  .has-dropdown:hover>.dropdown {
    display: block !important;
  }

  .dropdown li a:hover {
    color: hsl(0, 0%, 100%) !important;
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .nav-toggle {
    display: none !important;
  }

  .mobile-home-link {
    display: flex !important;
    width: 100%;
  }

  .nav-logo {
    display: flex !important;
    align-items: center !important;
    color: #fff !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
  }
}

@media (max-width: 480px) {
  .nav-links {
    width: 200px !important;
    min-width: 0 !important;
    max-width: 100vw !important;
  }

  .dropdown {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-left: 2px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
    display: none !important;
    /* OCULTO POR DEFECTO */
    padding-left: 0.5em !important;
    /* CAMBIO: menos indentación */
  }

  .has-dropdown.open>.dropdown {
    display: block !important;
    /* SOLO SE MUESTRA SI EL PADRE TIENE .open */
  }

  .dropdown li a {
    color: #fff !important;
    padding: 0.4em 0.8em !important;
    font-size: 0.9em !important;
  }

  .dropdown li a:hover {
    color: #5a2d82 !important;
    /* CAMBIO: morado oscuro al hover */
    background: rgba(255, 255, 255, 0.1) !important;
    /* MANTENER: el sombreado */
  }

  .mobile-home-link {
    display: flex !important;
    width: 100%;
  }
}

.nav-ico {
  width: 1.5em;
  height: 1.5em;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5em;
}

.nav-label {
  font-size: 0.95em;
  /* Texto pequeño */
  letter-spacing: 0.5px;
  opacity: 0.85;
  font-weight: 500;
  display: block;
}

/* === CONTENIDO PRINCIPAL === */
#intro-overlay {
  position: fixed;
  inset: 0;
  background: var(--primary, #6366f1);
  color: #fff;
  /* <-- TEXTO BLANCO */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Solo modifica la transición: */
  transition: opacity 1.5s cubic-bezier(.77, 0, .18, 1),
    transform 1.5s cubic-bezier(.77, 0, .18, 1);
  transform: scale(1);
  backdrop-filter: blur(10px);
}

/* Cuando se oculta el intro */
#intro-overlay.hide {
  opacity: 0;
  transform: scale(1.1);
  /* Efecto zoom out */
  pointer-events: none;
}

.intro-content h1 {
  font-size: 2.5em;
  font-weight: 800;
  text-align: center;
  letter-spacing: 1px;
  min-width: 2em;
  white-space: pre-line;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  animation: introKominiEffect 2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
  animation-delay: 0.5s;
  transition: all 1.5s cubic-bezier(.77, 0, .18, 1);
}

#intro-typer::after {
  content: '|';
  animation: blink 1s steps(1) infinite;
}

/* Efecto de "explosión" como Komini */
#intro-overlay.hide {
  opacity: 0;
  transform: scale(1.3);
  filter: blur(10px);
}

#intro-overlay.hide .intro-content h1 {
  opacity: 0;
  transform: translateY(-80px) scale(1.5);
  filter: blur(8px);
  letter-spacing: 0.2em;
  /* Las letras se separan */
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

#intro-typer {
  color: #fff !important;
}

/* Solo agrega estas dos animaciones nuevas */
@keyframes introKominiEffect {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }

  70% {
    opacity: 0.8;
    transform: translateY(10px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes breatheEffect {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-3px) scale(1.02);
  }
}

/* Experiencia */
.experience-section {
  max-width: 1200px;
  margin: 3em auto;
  padding: 2em;
  background: var(--white);
  border-radius: 0px;
  box-shadow: 0 4px 24px rgba(35, 41, 70, 0.10);
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.experience-item {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1em;
}

.exp-toggle {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0.7em 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  font-size: 1.1em;
  position: relative;
  outline: none;
}

.exp-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.15em;
}

.exp-role {
  color: var(--secondary);
  font-size: 1em;
  opacity: 0.8;
}

.exp-arrow {
  position: absolute;
  right: 0;
  top: 1em;
  font-size: 1.2em;
  transition: transform 0.3s;
}

.exp-toggle[aria-expanded="true"] .exp-arrow {
  transform: rotate(180deg);
}

.exp-detail {
  display: none;
  margin-top: 0.7em;
  color: #444;
  animation: fadeIn 0.4s;
}

.experience-item.active .exp-detail {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.exp-toggle .exp-title {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(.77, 0, .18, 1), color 0.2s;
  will-change: transform;
}

.exp-toggle:hover .exp-title,
.experience-item.active .exp-title {
  transform: translateX(12px);
  color: #ff00a6 !important;
}

.exp-toggle:hover .exp-role,
.experience-item.active .exp-role {
  color: #ff00a6;
  opacity: 1;
}

.exp-toggle:hover .exp-arrow img,
.experience-item.active .exp-arrow img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(99%) saturate(7492%) hue-rotate(299deg) brightness(99%) contrast(101%);
}

@media (max-width: 900px) {
  .nav-toggle-label {
    display: flex;
    margin-left: auto;
  }

  .nav-toggle {
    display: block;
  }
}


/* about */
.about-links {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.about-link-btn {
  padding: 0.7em 1.5em;
  background: #f3e9ff;
  color: #5a2d82;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}

.about-link-btn:hover {
  background: #e0cfff;
}

/* Centrado y estilo para About Me y Certificados */

.about-section,
.certificados-section {
  max-width: 1200px;
  margin: 2em auto;
  padding: 2em;
  background: var(--white);
  border-radius: 0px;
  box-shadow: 0 4px 24px rgba(35, 41, 70, 0.10);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-section p {
  opacity: 0;
  transform: translateY(20px);
  animation: aboutReveal 1.2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
  animation-delay: 0s;
  /* Texto más pequeño y ancho completo */
  font-size: 1rem;
  /* CAMBIAR de 1.1rem a 1rem */
  line-height: 1.5;
  /* CAMBIAR de 1.6 a 1.5 */
  color: #4a5568;
  max-width: 100%;
  /* CAMBIAR de 700px a 100% */
  margin: 0 0 1.2rem 0;
  /* CAMBIAR para que no centre, margin solo abajo */
  text-align: justify;
  /* AGREGAR para alineación izquierda */
}

/* ABOUT-ABAJO */

.about-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  margin-top: 2em;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

/* Card base style */
.about-card {
  position: relative;
  height: 320px;
  border-radius: 0%;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.77, 0, 0.18, 1);
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.about-card:hover {
  transform: translateY(-6px) scale(1.03);
}

.bg-exp {
  background-image: linear-gradient(135deg, rgba(86, 2, 243, 0.3) 0%, rgba(99, 102, 241, 0.3) 100%),
    url('/experiencia.webp');
  background-size: cover;
  /* Ya está */
  background-position: center;
  /* Ya está */
  background-repeat: no-repeat;
  /* AGREGAR */
}

.bg-cert {
  background-image: linear-gradient(135deg, rgba(86, 2, 243, 0.3) 0%, rgba(99, 102, 241, 0.3) 100%),
    url('/estudios.webp');
  background-size: cover;
  /* Ya está */
  background-position: center;
  /* Ya está */
  background-repeat: no-repeat;
  /* AGREGAR */
}


/* EFECTOS PARA ABOUT-SECTION */
.about-section {
  max-width: 1200px;
  /* CAMBIAR de 1200px a 900px */
  margin: 2em auto;
  /* CAMBIAR de 3em a 2em */
  padding: 3em 2em;
  opacity: 0;
  transform: translateY(40px);
  animation: aboutReveal 1.2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
  animation-delay: 0s;
}

.about-section h1 {
  opacity: 0;
  transform: translateY(30px);
  animation: aboutReveal 1.2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
  animation-delay: 0s;

  /* Sobrescribir la regla general */
  font-size: clamp(2.5rem, 4vw, 3rem) !important;
  font-family: 'Playfair Display', serif !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
  margin-bottom: 1.2rem !important;

  /* Tu estilo específico */
  background: linear-gradient(135deg, #5602f3, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: left;
  margin-left: 0;
  padding-left: 0;
  position: relative;
  left: 0;
  width: 100%;
  box-sizing: border-box;
}

.about-section p {
  opacity: 0;
  transform: translateY(20px);
  animation: aboutReveal 0.3s cubic-bezier(0.77, 0, 0.18, 1) forwards;
  animation-delay: 0.1s;

  font-size: 1rem !important;
  line-height: 1.5 !important;
  color: #4a5568 !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 0 1.2rem 0 !important;
  text-align: justify !important;
  padding: 0 !important;
}

.about-section p:nth-of-type(2) {
  animation-delay: 0.15s;
}

.about-section p:nth-of-type(3) {
  animation-delay: 0.2s;
}

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

/* Elemento decorativo de fondo */
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #5602f3, #6366f1);
  border-radius: 0px;
  opacity: 0;
  animation: decorLine 0.2s ease-out forwards;
  animation-delay: 0.05s;
}

@keyframes decorLine {
  to {
    opacity: 1;
    width: 200px;
  }
}

/* HIGHLIGHTS/STATS */
.about-highlights {
  display: flex;
  /* CAMBIAR de grid a flex */
  justify-content: center;
  /* Centrar horizontalmente */
  align-items: center;
  /* Centrar verticalmente */
  gap: 3rem;
  /* Más espacio entre elementos */
  margin-top: 2rem auto 0;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  animation: aboutReveal 1.2s cubic-bezier(0.77, 0, 0.18, 1) forwards;
  animation-delay: 1.3s;
}

/* Para móviles, que sí se pongan en columna */
@media (max-width: 768px) {
  .about-highlights {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch; /* Ensure children take full width */
  }

  .highlight-item {
    width: 100%;
    flex: 1; /* Match user request for uniformity */
    min-height: 140px; /* Ensure uniform height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

.highlight-item {
  text-align: center;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0px;
  border: 0px solid rgba(86, 2, 243, 0.1);
  transition: all 0.3s ease;
  min-width: 140px;
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(86, 2, 243, 0.1);
  border-color: rgba(86, 2, 243, 0.2);
}

.highlight-number {
  font-size: 2rem;
  font-weight: 900;
  color: hsl(329, 100%, 50%);
  display: block;
  margin-bottom: 0.3rem;
}

.highlight-text {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 600;
}

/* Highlights compactos para Copy - ahora con título y descripción */
.copy-highlights {
  display: flex;
  justify-content: center;
  gap: 2em;
  margin: 2em 0;
  flex-wrap: wrap;
}

.copy-highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: transparent;
  /* CAMBIO: de var(--white) a transparent */
  border-radius: 0px;
  box-shadow: none;
  /* CAMBIO: sin sombra inicial */
  padding: 1.5em;
  max-width: 300px;
  min-width: 280px;
  flex: 1 1 280px;
  transition: all 0.3s ease;
  /* CAMBIO: transition más completa */
}

.copy-highlight-item:hover {
  transform: translateY(-5px);
  background: var(--white);
  /* CAMBIO: fondo blanco solo en hover */
  box-shadow: 0 8px 32px rgba(35, 41, 70, 0.15);
  /* CAMBIO: sombra solo en hover */
  border-radius: 8px;
  /* OPCIONAL: bordes redondeados solo en hover */
}

.copy-highlight-item h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2em;
  color: #5602f3;
  margin: 0 0 0.8em 0;
  line-height: 1.3;
}

.copy-highlight-item p {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  font-size: 0.9em;
  color: #4a5568;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .copy-highlights {
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
  }

  .copy-highlight-item {
    max-width: 100%;
    min-width: 280px;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .copy-highlights {
    gap: 1.2em;
  }

  .copy-highlight-item {
    min-width: 250px;
    padding: 1.2em;
  }

  .copy-highlight-item h3 {
    font-size: 1.1em;
  }

  .copy-highlight-item p {
    font-size: 0.85em;
  }
}

/* Video highlights - más compactos para no romper alineación */
.video-highlights {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  margin: 2em 0;
  flex-wrap: wrap;
}

.video-highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  background: transparent;
  /* CAMBIO: de var(--white) a transparent */
  border-radius: 0px;
  box-shadow: none;
  /* CAMBIO: sin sombra inicial */
  padding: 1.2em;
  max-width: 220px;
  min-width: 200px;
  flex: 1 1 200px;
  transition: all 0.3s ease;
  /* CAMBIO: transition más completa */
}

.video-highlight-item:hover {
  transform: translateY(-5px);
  background: var(--white);
  /* CAMBIO: fondo blanco solo en hover */
  box-shadow: 0 8px 32px rgba(35, 41, 70, 0.15);
  /* CAMBIO: sombra solo en hover */
  border-radius: 8px;
  /* OPCIONAL: bordes redondeados solo en hover */
}

.video-highlight-item h3 {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 600;
  font-size: 1.1em;
  margin: 0 0 0.6em 0;
  line-height: 1.3;
  background: linear-gradient(135deg, #ff0080, #5602f3) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.video-highlight-item p {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  font-size: 0.85em;
  color: #4a5568;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 900px) {
  .video-highlights {
    flex-direction: column;
    align-items: center;
    gap: 1.2em;
  }

  .video-highlight-item {
    max-width: 100%;
    min-width: 250px;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .video-highlights {
    gap: 1em;
  }

  .video-highlight-item {
    min-width: 220px;
    padding: 1em;
  }

  .video-highlight-item h3 {
    font-size: 1em;
  }

  .video-highlight-item p {
    font-size: 0.8em;
  }
}

/* Títulos de proyectos en copy-cards */
.project-header h3 {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 700;
  color: var(--primary, #8B5CF6) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
  font-size: 1.3em;
  margin-bottom: 0.5em;
}

/* Títulos de highlights en copy */
.copy-highlight-item h3 {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 600;
  background: linear-gradient(135deg, #ff0080, #5602f3) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-size: 1.2em;
  margin: 0 0 0.8em 0;
  line-height: 1.3;
}

/* CTA section h2 en copy */
.cta-section p {
  text-align: center !important;
  margin: 0 auto !important;
  max-width: 80% !important;
}

/* Asegurar que el contenedor CTA también esté centrado */
.cta-section {
  text-align: center !important;
  margin: 2em auto !important;
  padding: 1.5em !important;
}

.cta-section h2 {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 600;
  background: linear-gradient(135deg, #ff0080, #5602f3) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-size: 1.8em;
  text-align: center !important;
  margin-bottom: 1em !important;
}

/* Card link */
.about-card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Overlay para mejor contraste */
.about-card-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 1;
}

/* Icon container */
.about-card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0%;
  backdrop-filter: none;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 3;
}

.card-icon {
  width: 50px;
  height: 50px;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.18, 1);
  /* Aplicar gradiente morado */
}

/* Content */
.about-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  transform: translateY(80%);
  transition: all 0.5s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 2;
}

.about-card-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.18, 1) 0.1s;
}

.about-card-content span {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.18, 1) 0.2s;
}

@media (max-width: 900px) {
  .about-card-content {
    transform: translateY(0) !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)) !important;
  }

  .about-card-content h3,
  .about-card-content span {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
}

/* HOVER EFFECTS (Como Ballsymedia) */
.about-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.about-card:hover .about-card-link::before {
  background: rgba(0, 0, 0, 0.1);
}

.about-card:hover .about-card-icon {
  transform: translate(-50%, -50%) scale(1.3) rotate(15deg);
  background: transparent;
  border-color: transparent;
}

.about-card:hover .card-icon {
  transform: scale(1.2) rotate(-15deg);
}

.about-card:hover .about-card-content {
  transform: translateY(0);
}

.about-card:hover .about-card-content h3 {
  transform: translateY(0);
  opacity: 1;
}

.about-card:hover .about-card-content span {
  transform: translateY(0);
  opacity: 1;
}

/* Efectos de color más intensos al hover */
.about-card:hover.bg-exp {
  background-image: linear-gradient(135deg, rgba(86, 2, 243, 0.5) 0%, rgba(99, 102, 241, 0.5) 100%),
    url('/experiencia.webp');
}

.about-card:hover.bg-cert {
  background-image: linear-gradient(135deg, rgba(86, 2, 243, 0.5) 0%, rgba(99, 102, 241, 0.5) 100%),
    url('/estudios.webp');
}

/* Responsive */
@media (max-width: 768px) {
  .about-cards-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-card {
    height: 280px;
  }

  .about-card-icon {
    width: 80px;
    height: 80px;
  }

  .card-icon {
    font-size: 2rem;
  }
}

.about-outer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em;
  box-sizing: border-box;
}




/* Servicios */
.services-outer {
  max-width: 1200px !important;
  margin: 3em auto !important;
  padding-left: 3em !important;
  padding-right: 3em !important;
  box-sizing: border-box !important;
}


.services-grid {
  /* quita el padding lateral aquí si lo tienes */
  padding-left: 0;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.7em;
}

@media (max-width: 900px) {
  .services-outer {
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
}

@media (max-width: 768px) {
  .services-outer {
    margin: 2em auto !important;
    padding-left: 1.5em !important;
    padding-right: 1.5em !important;
  }

  .cta-section p {
    max-width: 95% !important;
  }
}

/* Nueva sección: Reels y Videos de YouTube */
.videos-mosaic-section {
  max-width: 1200px;
  margin: 3em auto 2em auto;
  width: 100%;
  /* Cambiado de 100vw para evitar overflow */
  padding-left: 1.5em;
  padding-right: 1.5em;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .videos-mosaic-section {
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
}

@media (max-width: 509px) {
  .videos-mosaic-section {
    padding-left: 0.2em;
    padding-right: 0.2em;
  }
}

.videos-desc-box,
.reels-row,
.videos-mosaic-grid {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.videos-mosaic-grid.custom-mosaic-layout {
  max-width: 900px;
  /* Igual que reels-row */
  margin: 0 auto 2.5em auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr) auto;
  gap: 3rem; /* Updated to 3rem (gap-12) for better spacing */
  width: 100%;
  margin-top: 5rem; /* Increased margin to separate from reels-row */
}

/* YouTube videos: 2x2 grid */
.video-tile-idx0 {
  grid-row: 1;
  grid-column: 1;
  aspect-ratio: 16/9;
}

.video-tile-idx1 {
  grid-row: 1;
  grid-column: 2;
  aspect-ratio: 16/9;
}

@media (max-width: 900px) {

  .video-tile-yt.video-tile-idx0,
  .video-tile-yt.video-tile-idx1 {
    width: 100% !important;
    max-width: 100vw !important;
    min-height: unset !important;
    aspect-ratio: 16/9 !important;
    font-size: 1em;
  }

  .video-tile-yt .video-hover-desc {
    display: none !important;
  }
}

.video-tile-idx2 {
  grid-row: 2;
  grid-column: 1;
  aspect-ratio: 16/9;
}

.video-tile-idx3 {
  grid-row: 2;
  grid-column: 2;
  aspect-ratio: 16/9;
}

/* Reels: 4 en fila, ocupando el ancho total del grid de los 4 videos de YouTube */
.videos-mosaic-grid.custom-mosaic-layout {
  max-width: 900px;
  /* Igual que reels-row */
  margin: 0 auto;
  /* Centrado */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Ajustar columnas */
  gap: 3rem; /* Updated to 3rem for consistency */
  /* Espacio entre los videos */
}

.reels-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 3rem; /* Increased spacing */
  margin: 2em auto 0 auto;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 900px;
}

.reels-row .video-tile {
  aspect-ratio: 9/16;
  flex: 1 1 0;
  max-width: 22vw;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
}

/* REEMPLAZA completamente las media queries de videos (líneas ~2070-2150) */

@media (max-width: 900px) {
  .videos-mosaic-grid.custom-mosaic-layout {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 4vw;
  }

  .video-tile-idx0 {
    grid-row: 1;
    grid-column: 1;
  }

  .video-tile-idx1 {
    grid-row: 2;
    grid-column: 1;
  }

  .video-tile-idx2 {
    grid-row: 3;
    grid-column: 1;
  }

  .video-tile-idx3 {
    grid-row: 4;
    grid-column: 1;
  }

  .reels-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 3vw;
    margin: 2vw auto;
    max-width: 900px;
    justify-content: center;
  }

  .reels-row .video-tile {
    max-width: 22vw;
    aspect-ratio: 9/16;
  }
}

/* CAMBIO PRINCIPAL: Usar 601px para que no haya conflicto */
@media (max-width: 601px) {
  .videos-mosaic-grid.custom-mosaic-layout {
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(4, 1fr) !important;
    gap: 4vw !important;
  }

  /* Los reels se apilan verticalmente igual que los videos horizontales */
  .reels-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 4vw !important;
    align-items: center !important;
    margin: 2vw auto !important;
    max-width: 90vw !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
  }

  .reels-row .video-tile {
    display: block !important;
    width: 90vw !important;
    max-width: 400px !important;
    aspect-ratio: 9/16 !important;
    margin: 0 !important;
    flex: none !important;
    min-width: auto !important;
    height: auto !important;
  }

  /* Asegurar que los videos horizontales también se vean bien */
  .video-tile {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
  }
}

/* Para pantallas muy pequeñas (opcional) */
@media (max-width: 400px) {
  .reels-row .video-tile {
    width: 95vw !important;
    max-width: 350px !important;
  }
}

/* Efectos generales para los tiles */
.video-tile {
  position: relative;
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(99, 102, 241, 0.10);
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  outline: none;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.video-tile:hover,
.video-tile.hovered,
.video-tile:focus {
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.18);
  transform: translateY(-4px) scale(1.03);
  z-index: 3;
}

.video-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: filter 0.2s, transform 0.22s cubic-bezier(.77, 0, .18, 1);
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  position: relative;
}

.video-tile:hover .video-thumb,
.video-tile.hovered .video-thumb,
.video-tile:focus .video-thumb {
  filter: brightness(0.92);
  transform: scale(1.08);
}

.video-hover-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(35, 41, 70, 0.92) 80%, rgba(35, 41, 70, 0.0) 100%);
  color: #fff;
  padding: 1.1em 1em 1.2em 1em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
  z-index: 2;
  border-radius: 0 0 0 0;
  min-height: 4.5em;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.video-tile.hovered .video-hover-info,
.video-tile:focus .video-hover-info {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .video-hover-info {
    opacity: 1 !important;
    pointer-events: auto !important;
    background: linear-gradient(0deg, rgba(35, 41, 70, 0.65) 80%, rgba(35, 41, 70, 0.0) 100%) !important;
    transition: opacity 0.22s;
  }
}

.video-hover-title {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 0.3em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(35, 41, 70, 0.18);
}

.video-hover-desc {
  font-size: 0.98em;
  color: #e0e7ff;
  text-shadow: 0 1px 4px rgba(35, 41, 70, 0.12);
}

/* Modal centrado y por encima de todo */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 41, 70, 0.88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

.video-modal-content {
  background: var(--nav-bg, #181826);
    color: var(--white, #fff);
    border: 1px solid var(--accent, #E91E63);
  border-radius: 0px;
  /* El modal sí puede tener border-radius para diferenciarse */
  box-shadow: 0 8px 48px rgba(35, 41, 70, 0.22);
  padding: 1.5em 1.2em 1.2em 1.2em;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.video-modal-iframe,
.video-modal-video {
  width: 70vw;
  max-width: 800px;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 0px;
  background: #000;
  margin-bottom: 1em;
}

.video-modal-title {
  font-size: 1.2em;
  font-weight: 700;
  color: #232946;
  margin-top: 0.2em;
  text-align: center;
}

.video-modal-close {
  position: absolute;
  top: 0.7em;
  right: 1em;
  background: none;
  border: none;
  font-size: 2em;
  color: #6366f1;
  cursor: pointer;
  z-index: 2;
  transition: color 0.18s;
}

.video-modal-close:hover {
  color: #a21caf;
}

.videos-desc-box {
  background: #fff;
  border-radius: 0;
  box-shadow: 0 4px 24px rgba(35, 41, 70, 0.10);
  padding: 2em 1.5em 1.2em 1.5em;
  margin-bottom: 2.5em;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  box-sizing: border-box;
}

.videos-desc-box h2 {
  color: var(--primary);
  font-size: 1.5em;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  margin-top: 0;
  margin-bottom: 0.5em;
}

.videos-desc-box p {
  color: #444;
  font-size: 1.08em;
  margin: 0;
}

/* === Servicios Diseños - Mural Categorizado === */
.disenos-categorized-wall {
  padding: 2rem 0;
  background: var(--background);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.diseno-category {
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.category-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-align: right !important;
  background: linear-gradient(135deg, #ff0080, #5602f3) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-family: 'Playfair Display', serif;
}

.category-title-disenos {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.8em !important;
  background: linear-gradient(135deg, #ff0080, #5602f3) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-align: left !important;
  margin-bottom: 1.5rem !important;
}

.diseno-category h3.category-title-disenos,
.disenos-categorized-wall .diseno-category h3.category-title-disenos {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.8em !important;
  background: linear-gradient(135deg, #ff0080, #5602f3) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  /* FORZAR transparencia */
  margin-bottom: 1.5rem !important;
  line-height: 1.3 !important;
  letter-spacing: 0.01em !important;
  text-align: left !important;
  /* IZQUIERDA */
  display: block !important;
  width: 100% !important;
}

.category-title {
  display: none !important;
  /* Ocultar la clase antigua */
}

/* ASEGURAR que no hay conflictos con h3 general */
.diseno-category h3 {
  text-align: left !important;
  /* Forzar izquierda */
  color: transparent !important;
  /* Asegurar transparencia */
}

@media (max-width: 768px) {

  .category-title-disenos,
  .diseno-category h3.category-title-disenos {
    font-size: 1.5em !important;
    margin-bottom: 1.2rem !important;
    text-align: left !important;
  }
}

h3:not(.category-title-disenos) {
  color: #5602f3;
}

@media (max-width: 480px) {

  .category-title-disenos,
  .diseno-category h3.category-title-disenos {
    font-size: 1.3em !important;
    margin-bottom: 1rem !important;
    text-align: left !important;
  }
}

.diseno-grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0 auto;
}

.diseno-tile {
  position: relative;
  height: 300px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.77, 0, 0.18, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.diseno-tile:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.diseno-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.diseno-tile:hover .diseno-image {
  transform: scale(1.1);
}

.diseno-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  padding: 1.5rem;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.diseno-tile:hover .diseno-overlay {
  transform: translateY(0);
}

@media (max-width: 900px) {
  .diseno-overlay {
    transform: translateY(0) !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 50%, transparent 100%) !important;
    transition: transform 0.3s ease;
  }
}

.diseno-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: white;
}

.diseno-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.4;
}

/* === Modal de Carrusel === */
.design-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.design-modal-content {
  background: var(--nav-bg, #181826);
  color: var(--white, #fff);
  border: 1px solid var(--accent, #E91E63);
  border-radius: 0;
  max-width: 90vw;
  max-height: 90vh;
  width: 800px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.design-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  background-image: url('/iconos/close.webp');
  background-size: 30px 30px;
  background-repeat: no-repeat;
  background-position: center;
  outline: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.design-modal-close:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

/* Responsive para el botón de cerrar */
@media (max-width: 768px) {
  .design-modal-close {
    width: 36px;
    height: 36px;
    background-size: 26px 26px;
    top: 0.8rem;
    right: 0.8rem;
  }
}

@media (max-width: 480px) {
  .design-modal-close {
    width: 32px;
    height: 32px;
    background-size: 22px 22px;
    top: 0.6rem;
    right: 0.6rem;
  }
}

.design-modal-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.design-modal-header h2 {
    background: linear-gradient(90deg, #ff0080 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  font-size: 1.8rem;
  color: var(--primary);
  margin: 0 0 0.5rem 0;
}

.design-modal-header p {
  color: #a6adbbcc !important;
  margin: 0;
  font-size: 1rem;
}

/* === Carrusel === */
.design-carousel {
  position: relative;
  margin-bottom: 1rem;
}

.design-carousel .carousel-btn {
  position: absolute !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 15 !important;
}

.carousel-container {
  overflow: hidden;
  border-radius: 0;
  position: relative;
  height: 500px;
  background: #f8f9fa;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carousel-slide.active {
  display: flex;
  opacity: 1;
  position: relative;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  width: auto;
  height: auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 0;
  cursor: pointer;
  z-index: 10;
  outline: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  background-image: url('/iconos/down.webp');
  background-size: 30px 30px;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  visibility: visible;
  opacity: 1;
}

.carousel-btn:focus {
  outline: none;
  box-shadow: none;
}

.prev-btn {
  left: 1rem;
  transform: translateY(-50%) rotate(90deg);
}

.next-btn {
  right: 1rem;
  transform: translateY(-50%) rotate(-90deg);
}

/* === Indicadores === */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 0;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s ease;
}

.indicator.active {
  background: var(--primary);
}

.indicator:hover {
  background: var(--accent);
}

/* === Responsive === */
@media (max-width: 768px) {
  .diseno-grid-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .diseno-tile {
    height: 250px;
  }

  .design-modal-content {
    width: 95vw;
    padding: 1rem;
  }

  .carousel-container {
    height: 300px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    outline: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background-size: 24px 24px;
  }

  .prev-btn {
    transform: translateY(-50%) rotate(90deg);
  }

  .next-btn {
    transform: translateY(-50%) rotate(-90deg);
  }
}

@media (max-width: 480px) {
  .category-title {
    font-size: 1.5rem;
  }

  .diseno-tile {
    height: 200px;
  }

  .carousel-container {
    height: 250px;
  }
}

/* Mobile View Adjustments < 768px - Grid Content Flow & Scroll Fix */
@media (max-width: 768px) {
  /* Reseteo Global */
  * { 
    box-sizing: border-box !important; 
  }
  
  body, html { 
    overflow-x: hidden !important; 
    width: 100% !important;
    height: auto !important; /* Permitir scroll infinito si es necesario */
  }

  /* 1. Contenedor Principal (Altura Dinámica Real) */
  .hero-ivery-bg { 
    padding-top: 100px !important; 
    padding-bottom: 20px !important; /* Reducido a 20px máx */
    height: auto !important; 
    min-height: auto !important; /* CLAVE: Anular altura mínima */
    align-items: start !important;
    display: block !important; 
  }

  /* 2. Grid Layout (Compacto a la Izquierda) */
  .hero-ivery-content { 
    display: grid !important; 
    grid-template-columns: 1fr 100px !important; 
    align-items: start !important; 
    gap: 10px !important; 
    padding: 0 20px 0 20px !important; /* Padding bottom 0 */
    margin-top: 0 !important;
    width: 100% !important;
    overflow: visible !important; 
  }

  /* 3. Desencapsular Contenedor de Texto */
  .hero-info-scroll { 
    display: contents !important; 
  }

  /* 4. Elementos del Grid */
  .hero-info-scroll h1 { 
    grid-column: 1 / 2;
    grid-row: 1;
    font-size: 1.4rem !important; 
    line-height: 1.1 !important; 
    margin: 0 !important; 
    text-align: left !important;
    align-self: center !important;
  }

  .hero-img-right { 
    grid-column: 2 / 3;
    grid-row: 1; 
    width: 100px !important; 
    height: auto !important; 
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important; 
  }

  .hero-img-full { 
    width: 90px !important; 
    height: 90px !important; 
    border-radius: 50% !important; 
    object-fit: cover !important; 
    display: block !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .hero-prof { 
    grid-column: 1 / -1; 
    grid-row: 2;
    margin-top: 15px !important;
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
  }

  .hero-desc { 
    grid-column: 1 / -1;
    grid-row: 3;
    font-size: 0.85rem !important;
    margin-bottom: 10px !important;
  }

  .hero-actions { 
    grid-column: 1 / -1;
    grid-row: 4;
    margin-bottom: 10px !important; /* Reducido */
  }

  /* 5. Tarjetas (Full Width Debajo) */
  .hero-info-scroll .portal-grid { 
    grid-column: 1 / -1;
    grid-row: 5;
    display: flex !important; 
    flex-direction: column !important; 
    width: 100% !important; 
    gap: 15px !important; 
    margin: 0 !important;
    padding: 0 0 10px 0 !important; /* Mínimo relleno inferior */
  }
  
  .portal-card { 
    width: 100% !important; 
    margin: 0 !important; 
    background: rgba(255, 255, 255, 0.1) !important; 
    backdrop-filter: blur(10px) !important; 
    flex-shrink: 0 !important; 
  }

  /* Footer y Extras (Compacto y Pegado) */
  footer, .footer-container, #footer-global { 
    height: auto !important; 
    min-height: 0 !important; 
    padding: 10px 0 20px 0 !important; 
    margin-top: 0 !important; /* Espacio cero */
    position: relative !important;
    z-index: 5 !important;
    background: transparent !important;
  }

    /* Restaurar Flores (LLUVIA FRONTAL TOTAL) */
  #flores-cayendo, canvas { 
    z-index: 9999 !important; /* Por encima de TODO */
    opacity: 0.8 !important; /* Más visibles */
    pointer-events: none !important; /* Clics traspasan */
    display: block !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
  }
  
  /* Asegurar contexto de apilamiento para el contenido */
  .hero-ivery-content {
      position: relative !important;
      z-index: 20 !important; /* Subimos a 20 por seguridad */
  }
}


/* Estilos para el Portal - Glassmorphism Final & Layout */
.hero-info-scroll .portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 2.5rem;
    width: 100%; /* Ajuste: No exceder contenedor del 55% */
    max-width: 100%;
    position: relative;
    z-index: 50;
}

.portal-card {
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 0;
}

.portal-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    border-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portal-icon {
    font-size: 26px;
    margin: 0;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.portal-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0; /* Text truncation fix */
}

.portal-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #ffffff; /* Ajuste: Blanco puro para mejor contraste */
    line-height: 1.1;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.portal-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.95); /* Ajuste: Casi blanco para legibilidad */
    line-height: 1.35;
    font-weight: 500;
}

/* Mobile & Responsive Logic */
@media (max-width: 900px) {
    .hero-ivery-content {
        flex-direction: column;
        padding-top: 90px;
        gap: 3rem;
        height: auto;
        overflow: visible;
        width: 100%; /* Asegurar ancho completo en móvil */
        max-width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-info-scroll {
        width: 100%;
        flex: none;
        order: 1; /* Texto y Cards PRIMERO */
    }

    .hero-info-scroll .portal-grid {
        grid-template-columns: 1fr; /* Stack vertical */
        width: 100%;
    }

    /* Solicitud 2: Corrección visibilidad imagen móvil */
    .hero-img-right {
        order: 2;
        width: 100%;
        height: auto;
        justify-content: center;
        margin-top: 20px; /* Margen solicitado */
        margin-bottom: 20px; /* Margen solicitado */
        z-index: 100; /* Z-index mayor para estar sobre flores */
        overflow: visible !important; /* Evitar recorte */
        display: flex; /* Asegurar centrado */
    }
    
    .hero-img-full {
        width: auto; /* Ancho automático para respetar ratio */
        max-width: 100%;
        height: auto;
        max-height: 350px; /* Límite de altura solicitado */
        object-fit: contain; /* Mostrar imagen completa */
        opacity: 1;
        margin: 0; 
    }

    .hero-ivery-bg:has(.portal-grid) {
        height: auto !important;
        min-height: 100vh;
        padding-bottom: 4rem;
        background-attachment: scroll; 
    }
}
