/* =========================================================
   diseno.css · diseño centrado "cristal violeta"
   Solo se carga en páginas con cabecera de página (servicios, zonas, casos, guías)
   ========================================================= */

/* Cabecera centrada */
.page-hero { align-items: center; justify-content: center; text-align: center; }
.page-hero .hero-content { margin: 0 auto; max-width: 980px; }
.page-hero .hero-text, .page-hero .hero-tags { margin-left: auto; margin-right: auto; max-width: 760px; text-align: center; }
.page-hero .hero-buttons { justify-content: center; }
.page-hero .eyebrow {
  display: inline-block; padding: 9px 20px; border: 1px solid rgba(190,175,255,.4);
  border-radius: 999px; background: rgba(142,120,255,.12); letter-spacing: 4px; color: #d9d0ff; font-size: 12px;
}
.breadcrumb { text-align: center; }

/* Secciones centradas con brillo suave */
.block { text-align: center; padding: 120px 7vw; position: relative; overflow: hidden; }
.block::before {
  content: ""; position: absolute; left: 50%; top: -140px; width: 760px; max-width: 90vw; height: 340px;
  transform: translateX(-50%); background: radial-gradient(closest-side, rgba(142,120,255,.2), transparent);
  pointer-events: none;
}
.block > * { position: relative; }
.block.alt { background: #0a0a0d; }
.block.violet { background: #14111d; }
.block .section-heading { margin: 0 auto 8px; text-align: center; }
.block .eyebrow {
  display: inline-block; padding: 9px 20px; border: 1px solid rgba(190,175,255,.4);
  border-radius: 999px; background: rgba(142,120,255,.1); letter-spacing: 4px; color: #d9d0ff; font-size: 12px;
}
.block .section-heading h2, .guide h2 {
  font-size: clamp(30px, 4vw, 52px); font-weight: 600; letter-spacing: -1px; line-height: 1.12;
  background: linear-gradient(180deg, #fff, #cfc6f5); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.block p.copy, .block .lead { margin-left: auto; margin-right: auto; text-align: center; }

/* Listas en tarjetas numeradas / con check */
.check-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 1100px; margin: 0 auto; gap: 22px;
}
.check-list li {
  padding: 34px 26px 30px; border-radius: 26px; text-align: center; font-size: 17px; line-height: 1.65; color: #ececec;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.check-list li::before {
  content: "✓"; position: static; display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, #8e78ff, #d99cff); color: #0b0b0b; font-weight: 700; font-size: 20px;
}

/* Pasos en tarjetas */
.steps { max-width: 1100px; margin: 0 auto; }
.steps li {
  text-align: center; border-radius: 26px; padding: 34px 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

/* Guías: títulos y texto centrados */
.guide { max-width: 860px; margin: 0 auto; }
.guide h2 { margin: 56px 0 18px; text-align: center; }
.guide h2:first-child { margin-top: 0; }
.guide p.copy { margin-left: auto; margin-right: auto; text-align: center; }

/* Preguntas frecuentes en tarjetas centradas */
.faq { margin: 0 auto; max-width: 860px; text-align: left; }
.faq details {
  border-radius: 20px; margin-bottom: 14px; padding: 6px 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1);
}
.faq summary { text-align: left; }
.faq details p { margin-left: 0; margin-right: 0; text-align: left; }

/* Medios y enlaces */
.gallery-grid img { border-radius: 22px; }
.video-frame { margin-left: auto; margin-right: auto; border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.related { justify-content: center; }

/* Móvil */
@media (max-width: 760px) {
  .block { padding: 80px 6vw; }
  .page-hero { text-align: center; }
  .check-list { grid-template-columns: 1fr; }
  .block .section-heading h2, .guide h2 { letter-spacing: -.5px; }
}

/* =========================================================
   Galerías cuadradas y simétricas (sin huecos)
   ========================================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 14px; max-width: 1200px; margin: 0 auto; }
.gallery-grid img { aspect-ratio: 1 / 1; width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Tarjetas de casos: 2 x 2 simétricas */
.cases-grid { grid-template-columns: repeat(2, 1fr); }
.cases-grid .service-card, .cases-grid .service-card:nth-child(n+4) { grid-column: auto; }
@media (max-width: 760px) { .cases-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Resto de la web: portada, secciones propias, pie, legales
   ========================================================= */
.eyebrow {
  display: inline-block; padding: 9px 20px; border: 1px solid rgba(190,175,255,.4);
  border-radius: 999px; background: rgba(142,120,255,.1); letter-spacing: 4px; color: #d9d0ff; font-size: 12px;
}
.hero-tags { text-align: center; }

/* Portada: cabecera centrada */
.hero { justify-content: center; text-align: center; }
.hero-content { margin: 0 auto; max-width: 980px; }
.hero-overlay {
  background: radial-gradient(ellipse at center, rgba(0,0,0,.35), rgba(0,0,0,.82)),
              linear-gradient(to top, rgba(0,0,0,.7), transparent 45%);
}
.hero h1 { margin-left: auto; margin-right: auto; }
.hero .hero-text { margin-left: auto; margin-right: auto; text-align: center; }
.hero .hero-buttons { justify-content: center; }
.hero .hero-tags { margin-left: auto; margin-right: auto; }

/* Secciones propias de la portada */
.clients-logos, .stats, .about, .portfolio, .google-reviews, .map-section { text-align: center; }
.section-title, .section-heading h2, .about h2, .about-content h2, .contact h2, .clients-logos h2 {
  background: linear-gradient(180deg, #fff, #cfc6f5); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600;
}
.section-description { margin-left: auto; margin-right: auto; text-align: center; }
.clients-logos .logos-grid { margin-left: auto; margin-right: auto; justify-items: center; }
.stats { position: relative; overflow: hidden; }
.stats-grid { max-width: 1200px; margin: 0 auto; }
.stat {
  padding: 34px 20px; border-radius: 26px; text-align: center;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.about-content { margin: 0 auto; text-align: center; }
.about-content .about-open { margin-left: auto; margin-right: auto; }
.portfolio-overlay { text-align: center; align-items: center; justify-content: flex-end; }
.portfolio-overlay p { margin-left: auto; margin-right: auto; }
.reviews-widget { border-radius: 28px; }
.map-section .section-heading { text-align: center; }

/* Páginas legales: título y columna centrados, texto legible */
.legal-page { text-align: center; }
.legal-container { margin: 0 auto; max-width: 760px; }
.legal-container h1, .legal-container h2 {
  background: linear-gradient(180deg, #fff, #cfc6f5); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.legal-container h2 { margin-top: 44px; }
.legal-container p, .legal-container li { text-align: left; }
.legal-container ul { display: block; text-align: left; }
.legal-back { text-align: center; }

/* Reseñas: rejilla simétrica con tarjetas de la misma altura por fila */
.reviews-grid { columns: auto; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 22px; max-width: 1200px; margin: 0 auto 50px; }
.review {
  margin: 0; display: flex; flex-direction: column; justify-content: center; text-align: center; border-radius: 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.12);
}
.reviews-score { text-align: center; }
@media (max-width: 800px) { .reviews-grid { grid-template-columns: 1fr; grid-auto-rows: auto; } }


/* ---- Ajustes tras la revisión ---- */
/* Títulos de sección de la portada, bien centrados */
.section-title { max-width: 900px; margin-left: auto; margin-right: auto; text-align: center; }
.stats .section-title { margin-bottom: 44px; }

/* Contacto: información a la izquierda y formulario a la derecha, con la misma tipografía que el resto */
.contact h2 {
  font-size: clamp(30px, 4vw, 52px); font-weight: 600; letter-spacing: -1px; line-height: 1.12; text-align: left;
  background: linear-gradient(180deg, #fff, #cfc6f5); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact .eyebrow { margin-bottom: 20px; }

/* Pie de página: sin centrar y con el texto más suave */
footer { color: rgba(255,255,255,.55); }
.footer-cols p, .footer-cols a, .footer-cols li { color: rgba(255,255,255,.55); }
.footer-cols h2 { color: rgba(255,255,255,.8); }
.footer-cols a:hover { color: #fff; }

/* Preguntas frecuentes de la portada: botón «Ver más» */
.faq-more-wrap { max-width: 860px; margin: 18px auto 0; text-align: center; }
.faq-more > summary {
  display: inline-block; cursor: pointer; padding: 12px 24px; border: 1px solid rgba(190,175,255,.4); border-radius: 999px;
  background: rgba(142,120,255,.1); color: #d9d0ff; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; list-style: none;
}
.faq-more > summary::-webkit-details-marker { display: none; }
.faq-more[open] > summary { margin-bottom: 22px; }
.faq-more .faq { text-align: left; }

/* Reseñas: tarjetas cortas con «Leer más» */
.review { padding: 24px 24px 20px; }
.review blockquote p { font-size: 15px; line-height: 1.65; margin-bottom: 10px; }
.review details summary { display: inline-block; margin-bottom: 10px; color: #d9d0ff; }
.review figcaption { margin-top: 4px; }

/* Ventana de un proyecto destacado (al pulsar una tarjeta de «Trabajos destacados») */
.video-modal { background: rgba(8,6,14,.62); }
.modal-content {
  width: min(1040px, 100%); max-height: 90vh; overflow-y: auto; padding: 32px; gap: 20px; text-align: center; border-radius: 30px;
  background: linear-gradient(160deg, rgba(36,30,56,.92), rgba(14,12,22,.96)); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
}
.modal-content video { border-radius: 22px; width: 100%; background: #000; }
.modal-info h3 {
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.5px; margin-bottom: 12px;
  background: linear-gradient(180deg, #fff, #cfc6f5); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.modal-info p { margin: 0 auto; color: #d6d6d6; }
.modal-gallery { margin-top: 8px; display: grid; columns: auto; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.modal-gallery img { aspect-ratio: 1 / 1; height: 100%; object-fit: cover; margin: 0; border-radius: 20px; }
.modal-gallery img:nth-child(n+10) { display: none; }
@media (max-width: 700px) {
  .modal-content { padding: 18px; border-radius: 22px; }
  .modal-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .modal-gallery img:nth-child(n+9) { display: none; }
}

/* =========================================================
   Adaptación a móvil y tablet
   ========================================================= */
/* Logos de clientes: sin desbordes y siempre en filas completas (12 logos: 6 / 4 / 3 por fila) */
.clients-logos.top .logos-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.clients-logos.top .logos-grid a { min-width: 0; }
@media (max-width: 1000px) { .clients-logos.top .logos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; } }
@media (max-width: 700px) {
  .clients-logos.top { padding: 40px 6vw; }
  .clients-logos.top .logos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; }
  .clients-logos.top .logos-grid img { max-width: 92px; max-height: 40px; }
}

/* Aviso de cookies: nunca más ancho que la pantalla */
.cookie-banner { left: 12px; right: 12px; bottom: 12px; gap: 14px; padding: 16px 18px; max-width: calc(100vw - 24px); box-sizing: border-box; }
.cookie-actions { flex-wrap: wrap; flex-shrink: 1; gap: 10px 12px; }
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions { width: 100%; }
  .cookie-actions button { flex: 1 1 auto; }
}

/* Etiquetas, títulos y botones en pantallas pequeñas */
@media (max-width: 600px) {
  .eyebrow, .block .eyebrow, .page-hero .eyebrow { letter-spacing: 2.5px; font-size: 11px; padding: 8px 14px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .page-hero h1, .hero h1 { letter-spacing: -1.5px; }
  .modal-content { padding: 16px; }
}

/* Tablet */
@media (min-width: 701px) and (max-width: 1000px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 1000px) and (min-width: 341px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .reviews-grid { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: 1fr; } }
.contact .eyebrow { font-size: 12px; letter-spacing: 4px; }

/* Fechas en línea aparte y redes en el pie */
.service-body .fecha, .hero-date { margin-top: 8px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.62); }
.hero-date { margin: 4px 0 18px; }
.footer-social { display: flex; justify-content: flex-start; gap: 18px; margin: 26px 0 8px; }
.footer-social a { opacity: .7; transition: opacity .2s, transform .2s; display: inline-flex; }
.footer-social a:hover { opacity: 1; transform: translateY(-2px); }
.footer-social img { width: 24px; height: 24px; object-fit: contain; filter: none; }
@media (min-width: 1001px) and (max-width: 1180px) { .social-nav.desktop { display: none; } .nav.desktop { gap: 22px; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-date.byline { margin-top: -6px; opacity: .8; letter-spacing: 1px; text-transform: none; font-size: 13px; }
