/*
Theme Name: Sempatiza Child
Theme URI: https://sempatiza.es
Description: Child theme de Twenty Twenty-Five para Sempatiza Agencia. Migración de Enfold/Avia a Gutenberg nativo. Solo bloques core. Typography y colores se controlan vía theme.json.
Author: Yellows / Sempatiza
Author URI: https://sempatiza.es
Template: twentytwentyfive
Version: 2.0.0
Text Domain: sempatiza-child
*/

/* ============================================================
 * Sempatiza Child Theme — CSS minimal
 *
 * IMPORTANT: La mayoría de estilos (typography, colores, button, link)
 * están definidos en theme.json. Aquí solo hay clases utilitarias
 * que aplican via "Additional CSS class(es)" en el editor.
 * ============================================================ */


/* === Section padding === */
.wp-block-group.is-section {
  padding: 60px 16px;
}
@media (min-width: 768px) {
  .wp-block-group.is-section {
    padding: 80px 32px;
  }
}
@media (min-width: 1024px) {
  .wp-block-group.is-section {
    padding: 120px 32px;
  }
}


/* === Hero alignment === */
.wp-block-column.centradoencel {
  text-align: left;
}
.wp-block-column.centradoencel > h1,
.wp-block-column.centradoencel > h2,
.wp-block-column.centradoencel > h3 {
  text-align: left;
}
.wp-block-column.centradoencel .wp-block-buttons {
  justify-content: flex-start;
}


/* === Eyebrow tipo "Si no vendes, no es Marketing. Punto." === */
p.subtitulo,
.sempatiza-eyebrow {
  font-family: 'Meera Inimai', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #555555;
  margin-bottom: 12px;
}


/* === Columnas con cards (listaicono) === */
.wp-block-column.listaicono {
  text-align: center;
  padding: 12px;
}
.wp-block-column.listaicono img {
  max-width: 80px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}

/* Listaiconocaja = card oscura con fondo */
.wp-block-column.listaiconocaja {
  background: #2b2b2b;
  color: #ffffff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  text-align: center;
}
.wp-block-column.listaiconocaja h3,
.wp-block-column.listaiconocaja h4 {
  color: #ffffff !important;
}
.wp-block-column.listaiconocaja p {
  color: #dddddd;
}
.wp-block-column.listaiconocaja img {
  filter: brightness(0) invert(1);
  max-width: 60px;
}


/* === Numbered steps (01, 02, 03, 04) === */
.wp-block-column.numero {
  text-align: center;
}
.wp-block-column.numero .sempatiza-eyebrow {
  font-size: 24px;
  font-weight: 300;
  color: #ba1c75;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}
.wp-block-column.numero.numeropar {
  margin-top: 32px;
}


/* === FAQ accordion (details/summary) === */
.faq-container .wp-block-details {
  background: #f9fafc;
  border-radius: 0;
  margin-bottom: 2px;
  padding: 0;
  border: 0;
}
.faq-container .wp-block-details summary {
  padding: 18px 56px 18px 24px;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-family: 'Hammersmith One', Helvetica, Arial, sans-serif;
  font-size: 17px;
  color: #010101;
}
.faq-container .wp-block-details summary::-webkit-details-marker {
  display: none;
}
.faq-container .wp-block-details summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ddd;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}
.faq-container .wp-block-details[open] summary::after {
  content: '−';
}
.faq-container .wp-block-details > p {
  padding: 0 24px 18px;
}


/* === Header (sticky topbar with Contáctanos rosa) === */
.site-header-topbar {
  position: absolute;
  top: 8px;
  right: 32px;
  z-index: 200;
}
.site-contactanos-link {
  margin: 0;
}
.site-contactanos-link a {
  color: #ba1c75;
  text-decoration: none;
  font-family: 'Biryani', Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
}
.site-contactanos-link a:hover {
  text-decoration: underline;
}

.site-header > .wp-block-group.alignwide {
  padding: 24px 32px;
  align-items: center;
}
.wp-block-navigation a {
  font-family: 'Biryani', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #000000;
}


/* === Footer === */
.site-footer {
  background: #010101;
  color: #ffffff;
  padding: 64px 32px 32px;
}
.site-footer h3 {
  color: #ffffff !important;
  font-family: 'Hammersmith One', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer p,
.site-footer li,
.site-footer a {
  color: #ffffff;
  font-size: 13px;
  font-weight: 200;
}
.site-footer a:hover {
  color: #ba1c75;
}
.site-footer ul.wp-block-list {
  list-style: disc;
  padding-left: 18px;
}


/* === SVG dividers (top + bottom) === */
.has-divider-top,
.has-divider-bottom {
  position: relative;
}
.has-divider-top::before,
.has-divider-bottom::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 50px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  pointer-events: none;
}
.has-divider-top::before {
  top: -1px;
}
.has-divider-bottom::after {
  bottom: -1px;
  transform: rotate(180deg);
}
.divider-waves.has-divider-top::before,
.divider-waves.has-divider-bottom::after {
  background-image: url('assets/dividers/waves.svg');
}
.divider-curve.has-divider-bottom::after {
  background-image: url('assets/dividers/curve.svg');
}


/* === Decorative section backgrounds === */
.entry-content > .wp-block-group.is-section:first-of-type,
.wp-block-post-content > .wp-block-group.is-section:first-of-type {
  position: relative;
  overflow: hidden;
}
.entry-content > .wp-block-group.is-section:first-of-type::before,
.wp-block-post-content > .wp-block-group.is-section:first-of-type::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 60%;
  height: 130%;
  background: radial-gradient(ellipse at center, #d4f1f4 0%, #c5e8eb 40%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}


/* === Image sanity (Gutenberg figure can collapse without these) === */
figure.wp-block-image,
.wp-block-image {
  margin: 0;
  display: block;
}
.wp-block-image img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* === Columns: keep wp-block-column with explicit flex-basis intact === */
.wp-block-columns {
  align-items: center;
  gap: 32px;
}
@media (max-width: 781px) {
  .wp-block-columns {
    flex-direction: column;
    gap: 24px;
  }
  .wp-block-column[style*="flex-basis"] {
    flex-basis: 100% !important;
  }
}


/* === Team avatares circulares (quienes-somos) === */
.wp-block-image.is-style-sempatiza-avatar img,
.card-equipo img {
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 180px;
  height: 180px;
}


/* === Mobile === */
@media (max-width: 781px) {
  .site-header > .wp-block-group.alignwide {
    flex-wrap: wrap;
    padding: 16px;
  }
  .site-header-topbar {
    top: auto;
    right: 16px;
    position: relative;
  }
  body { overflow-x: hidden; }
}
