/* Valores visuales predeterminados. Los controles de estilo nativos prevalecen. */
.sm-v1-home {
  --zafiro:#2D4FC7; --verde:#087C72; --girasol:#F2B632;
  --marfil:#FBF8F2; --carbon:#22262A;
  font-family:'Source Sans 3',sans-serif; font-size:18px; color:var(--carbon);
  line-height:1.65; width:100%;
}
.sm-v1-home,.sm-v1-home * { box-sizing:border-box; }
.sm-v1-home h1,.sm-v1-home h2,.sm-v1-home h3 {
  font-family:'Sora',sans-serif; color:inherit; line-height:1.25;
  margin-top:0; margin-bottom:1rem;
}
.sm-v1-home h1 { font-size:clamp(2rem,4vw,3rem); font-weight:700; }
.sm-v1-home h2 { font-size:clamp(1.55rem,3vw,2.25rem); font-weight:700; }
.sm-v1-home h3 { font-size:clamp(1.2rem,2vw,1.5rem); font-weight:600; }
.sm-v1-home p { margin-top:0; margin-bottom:1.15rem; }
.sm-v1-home a { text-decoration:none; }
.sm-v1-home a:focus-visible { outline:3px solid var(--girasol); outline-offset:4px; }
.sm-v1-home .sm-container { max-width:1180px; width:100%; margin-left:auto; margin-right:auto; padding-left:1.5rem; padding-right:1.5rem; }
.sm-v1-home .sm-section { position:relative; }
:where(.sm-v1-home .sm-section) { margin:0; }
.sm-v1-home .wp-block-columns { margin-bottom:0; }
:where(.sm-v1-home .sm-grid-two) { gap:3.5rem; align-items:center; }
:where(.sm-v1-home .sm-grid-three) { gap:2rem; }
:where(.sm-v1-home .sm-buttons) { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; }
.sm-v1-home .wp-block-column { min-width:0; }
.sm-v1-home .sm-grid-three > .wp-block-column { display:flex; flex-direction:column; }
.sm-v1-home .sm-card { flex:1; display:flex; flex-direction:column; justify-content:space-between; }
.sm-v1-home .sm-card > .sm-buttons { margin-top:auto; padding-top:1rem; }
.sm-v1-home .sm-eyebrow { font-family:'Sora',sans-serif; text-transform:uppercase; letter-spacing:.06em; margin-bottom:.5rem; }
.sm-v1-home .sm-accent-underline { text-decoration:underline; text-decoration-color:var(--girasol); text-decoration-thickness:4px; text-underline-offset:6px; }
.sm-v1-home .wp-block-button__link { font-family:'Sora',sans-serif; line-height:1.5; text-align:center; text-decoration:none; transition:transform .15s ease; }
.sm-v1-home .wp-block-button__link:hover { transform:translateY(-2px); }
.sm-v1-home .sm-text-link a { color:var(--zafiro); font-weight:600; text-decoration:underline; text-decoration-color:var(--verde); text-underline-offset:4px; }
.sm-v1-home .sm-photo-tag { display:table; text-transform:uppercase; border-radius:4px; margin-bottom:.75rem; line-height:1.6; }
.sm-v1-home .sm-video-frame { background:#000; border-radius:14px; border-left:6px solid var(--zafiro); box-shadow:0 16px 36px #22262a14; overflow:hidden; margin-bottom:1.5rem; }
.sm-v1-home .sm-video-presencia { border-bottom:6px solid var(--verde); }
.sm-v1-home .sm-video-wipr,.sm-v1-home .sm-video-contacto { border-left:0; border-bottom:6px solid var(--girasol); }
.sm-v1-home .sm-video-frame .wp-block-embed { margin:0; }
.sm-v1-home .sm-video-frame iframe { width:100%; aspect-ratio:16/9; height:auto; border:0; display:block; }
.sm-v1-home .sm-video-frame .wp-block-embed__wrapper { position:relative; }
.sm-v1-home .sm-video-frame .wp-block-embed__wrapper:before { content:none; }
.sm-v1-home .sm-philosophy > :last-child,.sm-v1-home .sm-testimonial > :last-child { margin-bottom:0; }
.sm-v1-home .sm-pillars { border-top:1px solid #D8D4CC; border-bottom:1px solid #D8D4CC; }
.sm-v1-home .sm-pillar-title { display:inline-block; border-bottom:3px solid var(--girasol); padding-bottom:.25rem; align-self:flex-start; }
.sm-v1-home .sm-media-list { list-style:none; margin:1.25rem 0; padding:0; }
.sm-v1-home .sm-media-list li { padding:.75rem 0; border-bottom:1px solid #D8D4CC; }
.sm-v1-home .sm-hero-banner { margin:0; width:100%; border-bottom:6px solid var(--zafiro); background:var(--marfil); overflow:hidden; }
.sm-v1-home .sm-hero-banner img { width:100%; height:50vh; min-height:400px; max-height:600px; object-fit:cover; object-position:center 20%; display:block; }

/* Ajustes del contenedor Astra: únicamente en páginas que contienen este diseño. */
body.sm-gutenberg-page { overflow-x:clip; }
body.sm-gutenberg-page .site-content { padding-top:0; }
body.sm-gutenberg-page .site-content > .ast-container { max-width:100%; padding-left:0; padding-right:0; display:block; }
body.sm-gutenberg-page #primary { width:100%; margin:0; padding:0; }
body.sm-gutenberg-page #secondary { display:none; }
body.sm-gutenberg-page .ast-article-single { margin:0; padding:0; border:0; background:transparent; }
body.sm-gutenberg-page header.entry-header { display:none; }
body.sm-gutenberg-page .entry-content { margin:0; padding-top:0; }
body.sm-gutenberg-page .entry-content > .sm-v1-home { max-width:none; width:100%; margin-left:0; margin-right:0; }
/* Astra añade padding al Grupo exterior aunque su contenedor sea de ancho completo. */
body.sm-gutenberg-page .entry-content > .sm-v1-home:not(.sm-inner-page) { padding:0; margin-left:0; margin-right:0; }
/* El modo «ancho amplio» de Astra también limita los hijos directos del Grupo. */
body.sm-gutenberg-page .entry-content > .sm-v1-home:not(.sm-inner-page) > :is(.sm-hero-banner,.sm-section) { max-width:none; width:100%; }

@media (max-width:860px) {
  .sm-v1-home .wp-block-columns { flex-wrap:wrap !important; gap:2rem !important; }
  .sm-v1-home .wp-block-columns > .wp-block-column { flex-basis:100% !important; }
  .sm-v1-home .sm-hero-banner { height:auto; min-height:0; max-height:none; }
  .sm-v1-home .sm-hero-banner img { width:100%; height:auto; min-height:0; max-height:none; object-fit:contain; object-position:center; }
  .sm-v1-home .sm-buttons { flex-direction:column; align-items:stretch; gap:.5rem; }
  .sm-v1-home .sm-buttons > .wp-block-button,.sm-v1-home .sm-buttons .wp-block-button__link { width:100%; }
  .sm-v1-home .sm-container { padding-left:1.25rem; padding-right:1.25rem; }
}
@media (prefers-reduced-motion:reduce) {
  .sm-v1-home .wp-block-button__link { transition:none; }
  .sm-v1-home .wp-block-button__link:hover { transform:none; }
}

/* Páginas interiores: grupos, columnas, portadas y listas editables. */
.sm-v1-home.sm-inner-page { padding:1.5rem; }
.sm-inner-page > .wp-block-group { max-width:1180px; margin-left:auto; margin-right:auto; }
.sm-inner-page .smi-section { border-radius:12px; }
.sm-inner-page .smi-card { box-shadow:0 12px 30px -8px #22262a12; }
.sm-inner-page .wp-block-columns { row-gap:2rem; }
.sm-inner-page .smi-media-cover { width:100%; }
.sm-inner-page .smi-media-cover p { margin-bottom:.5rem; }
.sm-inner-page .smi-timeline { border-left:4px solid var(--verde); padding-left:2rem; margin:3rem 0 3rem 1rem; }
.sm-inner-page .smi-timeline-item { position:relative; margin-bottom:3rem; }
.sm-inner-page .smi-timeline-item:before { content:''; position:absolute; left:-2.75rem; top:.25rem; width:20px; height:20px; border-radius:50%; background:var(--zafiro); border:4px solid var(--girasol); }
.sm-inner-page .smi-timeline-year { font-family:'Sora',sans-serif; font-weight:700; color:var(--zafiro); font-size:1.25rem; margin-bottom:.5rem; }
.sm-inner-page .smi-press-list { list-style:none; margin:0; padding:0; }
.sm-inner-page .smi-press-list li { padding:1.25rem 0; border-bottom:1px solid #d8d4cc; }
.sm-inner-page a:not(.wp-block-button__link) { color:var(--zafiro); font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.sm-inner-page p,.sm-inner-page h1,.sm-inner-page h2,.sm-inner-page h3 { overflow-wrap:anywhere; }
.sm-inner-page .smgb-field { margin-bottom:1.5rem; }
.sm-inner-page .smgb-field label { display:block; font-weight:600; margin-bottom:.5rem; }
.sm-inner-page .smgb-field input,.sm-inner-page .smgb-field select,.sm-inner-page .smgb-field textarea {
  width:100%; max-width:100%; padding:.85rem 1rem; font:inherit; font-size:1rem; border:2px solid #C5C0B7; border-radius:8px; background:white; color:var(--carbon);
}
.sm-inner-page .smgb-field :is(input,select,textarea):focus-visible { outline:3px solid var(--zafiro); outline-offset:2px; }
.sm-inner-page .smgb-contact-form > button { width:100%; background:var(--zafiro); color:white; border:0; border-radius:8px; padding:1rem; cursor:pointer; }
.sm-inner-page .smgb-editor-note { font-size:.85rem; color:var(--verde); }
@media(max-width:600px) { .sm-v1-home.sm-inner-page { padding:.5rem; } }
.sm-inner-page .sm-eyebrow { color:var(--verde); font-size:.85rem; font-weight:700; }
