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

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

.page-title {
  text-align: left;
 max-width: 100% !important; /* CAMBIO: de 900px a 100% para que ocupe todo el ancho */
  margin-left: 0 !important; /* CAMBIO: de auto a 0 */
  margin-right: 0 !important; /* CAMBIO: de auto a 0 */
  margin-bottom: 0.5em;
  padding-left: 0 !important;
  padding-right: 0 !important;
  color: #5602f3 !important;
}
.page-subtitle {
 text-align: justify !important; 
  max-width: 100% !important; /* CAMBIO: de 900px a 100% para que ocupe todo el ancho */
  margin-left: 0 !important; /* CAMBIO: de auto a 0 */
  margin-right: 0 !important; /* CAMBIO: de auto a 0 */
  margin-bottom: 1.5em;
  padding-left: 0 !important;
  padding-right: 0;
}
.subtitle {
  text-align: justify !important; /* CAMBIO: justificar texto */
  line-height: 1.6; /* MEJORAR: espaciado entre líneas para mejor legibilidad */
  color: var(--gray);
  font-size: 1.1em;
  margin-bottom: 2em;
}
.services-desc {
  font-size: 1.15em;
  color: #4a5568;
  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;
}

:root {
  --primary: #6366f1;
  --secondary: #232946;
  --accent: hsl(329, 100%, 50%);
  --background: #f4f6fb;
  --white: #fff;
  --text: #232946;
  --gray: #b8c1ec;
  --gradient: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
}

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

h1 {
  font-size: 2.8em;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 2em;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 0.4em;
}

h3 {
  font-size: 1.4em;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.18;
  margin-bottom: 0.3em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #5602f3;
  
}


/* 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.5rem, 6vw, 5rem);
  /* Escalable y grande */
  line-height: 1.05;
   background: linear-gradient(135deg, #ff0080, #5602f3) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  letter-spacing: -0.03em;
  margin-bottom: 0.2em;
  margin-top: 0;
  text-align: left;
  text-shadow: 0 2px 16px rgba(70, 3, 255, 0.08);
  transition: transform 0.3s cubic-bezier(.77, 0, .18, 1);
  word-break: break-word;
  
}

@media (max-width: 700px) {
  .hero-info-scroll h1 {
    font-size: 2.2em;
    text-align: left;
  }
}

.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;
  min-height: 80vh;
  /* Antes: 100vh */
  height: 80vh;
  /* Añadido: limita la altura máxima */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary);
  margin: 0;
  padding: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(99, 102,241, 0.55) 0%, rgba(245, 245, 255, 0.7) 100%);
  backdrop-filter: blur(6px);
  z-index: 1;
}

.hero-ivery-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3em;
  width: 100%;
  max-width: 1200px;
  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;
  max-width: 480px;
  color: #22223b;
  will-change: transform;
  transition: transform 0.3s cubic-bezier(.77, 0, .18, 1);
}

.hero-img-right {
  display: flex;
  align-items: center;
  /* Centra verticalmente la imagen */
  justify-content: flex-end;
  flex: 1 1 0;
  margin: 0;
  height: 100%;
  /* Igual que el hero */
}

.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: #7443fa;
  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: #4500b4;
  margin-bottom: 1.2em;
  font-weight: 400 !important; /* CAMBIO: de 500 a 400 para quitar negrita */
}

@media (max-width: 768px) {
  .hero-prof {
    font-size: 1.1em !important;
  }
  
  .hero-desc {
    font-size: 0.9em !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-ivery-content {
    flex-direction: column;
    align-items: center;
    max-width: 100vw;
    width: 100vw;
    padding: 0 1em;
    height: auto;
  }

  .hero-img-right {
    width: 100%;
    justify-content: center;
    height: auto;
    margin-top: 2em;
    align-items: center;
  }

  .hero-img-full {
    width: 100%;
    max-width: 320px;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 18px;
  }
}
.mobile-home-link {
  display: none !important;
}
.hero-prof,
.hero-desc {
  font-family: 'Rubik', Arial, sans-serif;
  font-weight: 500;
  color: #5c21ff;
  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: #5c21ff;
  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: 80px;
  height: 80px;
  background: var(--background);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.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: 2.5em;
  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: var(--background);
  /* 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: transparent !important;
  backdrop-filter: blur(10px);
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 0px;
  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: #8B5CF6 !important; /* MORADO MEJORADO */
  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: #200169 !important;
}
.nav-links .dropdown li a {
  color: #200169 !important;
}

.dropdown li a:hover {
  background-color: rgba(243, 233, 255, 0.8) !important;
  color: #E91E63!important; /* FUCSIA AL HOVER */
}

/* HOVER MÁS ESPECÍFICO TAMBIÉN */
.has-dropdown .dropdown li a:hover,
.nav-links .dropdown li a:hover {
  color: #E91E63 !important;
}
.dropdown li a:hover {
  background-color:  rgba(243, 233, 255, 0.8) !important; /* FONDO HOVER SEMI-TRANSPARENTE */
  color: #E91E63 !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: var(--accent);
  /* opcional: cambia color al hacer hover */
}

@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.jpg');
  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.jpg');
  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;
  }
}

.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: 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.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: rgba(255, 255, 255, 0.15);
  border-radius: 0%;
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  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;
}

/* 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: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.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.jpg');
}

.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.jpg');
}
/* 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: 100vw; /* Ocupa todo el ancho de la pantalla */
  padding: 0;
}
.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;
  margin: 0 auto 2.5em auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr) auto;
  gap: 2vw;
  width: 100%;
  margin-top: 2vw;
}

/* 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; }
.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: 2vw; /* Espacio entre los videos */
}

.reels-row {
  max-width: 900px; /* Igual que videos-mosaic-grid */
  margin: 0 auto 2em auto; /* Centrado y espacio debajo */
  display: flex !important;
  padding-left: 2vw;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  justify-content: center;
  gap: 2vw; /* Espacio entre los reels */
  margin-bottom: 2vw; 
}
.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;
}

.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: #fff;
  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 16px 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);
}

.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: white;
  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.png');
  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 {
  font-size: 1.8rem;
  color: var(--primary);
  margin: 0 0 0.5rem 0;
}

.design-modal-header p {
  color: #666;
  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.png');
  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;
  }
}