html,
body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
}

body {
    font-family: var(--se-font-body);
    color: var(--se-color-text);
    background: var(--se-color-white);
    letter-spacing: -0.01em;
}

h1,
h2,
h3 {
    font-family: var(--se-font-heading);
    color: var(--se-dark);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

h4,
h5,
h6 {
    font-family: var(--se-font-body);
    color: var(--se-dark);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

p {
    line-height: 1.7;
    color: var(--se-color-text);
}

a {
    color: var(--se-color-primary);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.wp-site-blocks,
main.wp-block-group,
.se-home {
    overflow: visible;
    height: auto;
    min-height: auto;
}

.se-skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 100000;
    padding: 0.6rem 1rem;
    background: var(--se-color-primary);
    color: var(--se-color-white);
    border-radius: var(--se-radius-sm);
}

.se-skip-link:focus {
    top: 12px;
    outline: 2px solid var(--se-color-white);
    outline-offset: 2px;
    text-decoration: none;
}

.wp-block-button__link:focus-visible,
.wp-element-button:focus-visible,
a:focus-visible,
.se-search-form button:focus-visible,
.se-contact-form button:focus-visible {
    outline: 3px solid var(--se-primary);
    outline-offset: 4px;
}

.wp-block-button__link,
.wp-element-button {
    border-radius: var(--se-radius-button);
    padding: 15px 26px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background: var(--se-primary);
    color: #fff;
    border: 2px solid var(--se-primary);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    background: var(--se-primary-dark);
    border-color: var(--se-primary-dark);
    color: #fff;
    text-decoration: none;
}

.wp-block-buttons {
    gap: 0.75rem;
}

.wp-block-navigation a {
    font-weight: 550;
    color: var(--se-color-text);
}

.site-header-shadow {
    box-shadow: none;
    background: var(--se-color-white);
}

/* Header */
.se-site-header,
header.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgb(255 255 255 / 88%);
    border-bottom: 1px solid transparent;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    backdrop-filter: blur(16px);
}

.se-site-header.is-stuck,
header.wp-block-template-part.is-stuck {
    border-bottom-color: var(--se-color-border);
    box-shadow: 0 10px 30px rgb(12 15 18 / 6%);
}

.se-site-header__bar {
    padding: 0.7rem 0;
    gap: 0.85rem 1.25rem;
}

.se-site-brand {
    gap: 0.75rem;
    min-width: 0;
}

.se-site-title {
    font-family: var(--se-font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.se-site-title a {
    color: var(--se-color-text);
    text-decoration: none;
}

.se-site-brand:has(.wp-block-site-logo img) .se-site-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.se-site-header .wp-block-navigation {
    flex: 1 1 auto;
}

header.wp-block-template-part .wp-block-navigation,
header.wp-block-template-part .wp-block-navigation-item__content {
    font-size: 0.9rem !important;
    font-weight: 550;
    color: var(--se-color-text);
}

.se-site-header .wp-block-navigation-item__content:hover,
.se-site-header .wp-block-navigation-item__content:focus {
    color: var(--se-color-primary);
    text-decoration: none;
}

.se-site-header .wp-block-search {
    min-width: min(100%, 200px);
}

.se-site-header .wp-block-search__inside-wrapper {
    border: 1px solid var(--se-color-border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--se-color-white);
}

.se-site-header .wp-block-search__input {
    border: 0;
    min-height: 40px;
    padding-left: 0.9rem;
}

.se-site-header .wp-block-search__button {
    border: 0;
    background: transparent;
    color: var(--se-color-text);
}

.se-site-header .wp-block-buttons .wp-element-button {
    padding: 0.7rem 1.05rem;
    font-size: 0.875rem;
}

.wp-block-navigation__responsive-container.is-menu-open {
    background: var(--se-color-ink);
    padding: 1.5rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    color: var(--se-color-white);
}

/* Hero */
.se-hero,
.se-hero-home,
main.wp-block-group > .wp-block-cover:first-child {
    position: relative;
    min-height: 420px;
    max-height: none;
    padding: 80px 24px;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at var(--se-hero-spot, 92% -8%), rgb(242 106 33 / 16%), transparent 58%),
        var(--se-color-white);
    transition: background 0.7s ease;
}

.se-hero-carousel[data-slide="1"] {
    --se-hero-spot: 8% 110%;
}

.se-hero-carousel[data-slide="2"] {
    --se-hero-spot: 50% 0%;
}

.se-hero::after,
.se-hero-home::after,
main.wp-block-group > .wp-block-cover:first-child::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgb(255 255 255 / 95%) 0%,
        rgb(255 255 255 / 82%) 45%,
        rgb(255 255 255 / 25%) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.se-hero .wp-block-cover__inner-container,
.se-hero-home__inner,
.se-hero-home > *,
main.wp-block-group > .wp-block-cover:first-child .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

.se-hero-home--fullbleed {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--se-color-white);
}

.se-hero-home--fullbleed::after {
    display: none;
}

.se-hero-home--fullbleed > .se-block-carrusel,
.se-hero-home--fullbleed > .wp-block-scientific-editors-theme-carrusel {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    min-width: 0;
}

.se-hero-home--fullbleed .se-block-carrusel--hero .se-block-carrusel-slide {
    min-height: var(--se-carousel-min-height, clamp(28rem, 64vh, 44rem));
}

.se-hero-home--fullbleed .se-block-carrusel--hero .se-block-carrusel-slide__body {
    max-width: min(var(--se-slide-width, 760px), calc(100% - 22rem));
}

.se-hero-home--fullbleed > .se-block-panel,
.se-hero-home--fullbleed > .wp-block-scientific-editors-theme-panel,
.se-hero-home--fullbleed > .se-hero-home__panel {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    z-index: 6;
    width: min(22rem, 34vw);
    margin: 0 clamp(1rem, 4vw, 4rem) 0 0;
}

@media (max-width: 900px) {
    .se-hero-home--fullbleed {
        display: flex;
        flex-direction: column;
    }

    .se-hero-home--fullbleed .se-block-carrusel--hero .se-block-carrusel-slide__body {
        max-width: 100%;
    }

    .se-hero-home--fullbleed > .se-block-panel,
    .se-hero-home--fullbleed > .wp-block-scientific-editors-theme-panel,
    .se-hero-home--fullbleed > .se-hero-home__panel {
        position: relative;
        width: calc(100% - 2rem);
        max-width: 28rem;
        margin: 0 auto 1.5rem;
        justify-self: stretch;
        align-self: stretch;
    }
}

.se-hero-home__inner.wp-block-columns > .wp-block-column {
    flex-basis: auto !important;
    width: auto !important;
    max-width: none;
    margin: 0;
}

.se-hero-home .wp-block-buttons {
    margin-top: 1.35rem;
}

.se-hero-home.se-hero p {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.se-hero h1,
.se-hero-home h1,
.se-hero-home .se-hero-slide__title,
main.wp-block-group > .wp-block-cover:first-child h1 {
    max-width: 880px;
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 800;
    margin-bottom: 1rem;
}

.se-hero p,
main.wp-block-group > .wp-block-cover:first-child p {
    max-width: 760px;
    margin: 22px auto 0;
    font-size: clamp(18px, 2vw, 22px);
    color: #344054;
}

.se-hero-home h1 {
    margin-inline: 0;
}

.se-hero-home h1 span {
    display: block;
}

.se-hero-home h1 em,
.se-hero-home h1 i,
.se-hero-home .se-hero-slide__title em {
    display: block;
    font-style: italic;
    color: var(--se-color-primary);
}

.se-hero-slides {
    position: relative;
    min-height: 18rem;
}

.se-hero-slide {
    width: 100%;
}

.se-hero-carousel.is-ready .se-hero-slide {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    visibility: hidden;
}

.se-hero-carousel.is-ready .se-hero-slide.is-active {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
}

.se-hero-carousel.is-ready .se-hero-slide.is-measure {
    position: relative;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .se-hero-carousel.is-ready .se-hero-slide {
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .se-hero-home__panel {
        transition: transform 0.45s ease;
    }

    .se-hero-home__panel.is-nudge {
        transform: translateY(10px);
    }
}

.se-hero-slide__title {
    max-width: 880px;
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.se-hero-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.se-hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--se-border);
    cursor: pointer;
}

.se-hero-dot.is-active {
    background: var(--se-primary);
    width: 22px;
}

.se-hero-home .has-large-font-size {
    max-width: 40ch;
    font-size: 1.125rem;
    color: var(--se-color-muted);
}

.se-hero-home__panel,
.se-hero-home__panel.has-global-padding {
    background: var(--se-color-white);
    border: 1px solid var(--se-color-border);
    border-radius: var(--se-radius-lg);
    box-shadow: var(--se-shadow-md);
    padding: 1.5rem 1.4rem;
}

.se-hero-home__panel-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--se-color-primary);
    margin: 0 0 1rem;
}

.se-hero-home__lines {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-inline-start: 0;
    display: grid;
    gap: 0.65rem;
}

.se-hero-home__lines li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--se-color-text);
    font-size: 0.95rem;
}

.se-hero-home__lines li::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--se-color-accent);
    flex: 0 0 auto;
}

/* About */
.se-about,
.se-about.wp-block-columns {
    display: grid !important;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: start;
    max-width: var(--se-wide-width);
    margin: 0 auto;
}

.se-about.wp-block-columns > .wp-block-column {
    flex-basis: auto !important;
    width: auto !important;
    max-width: none;
    margin: 0;
}

.se-about h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.se-about p + p {
    margin-top: 1rem;
}

/* Services */
.se-section-head--center {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.se-service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2rem;
}

.se-card--service {
    flex: 1 1 280px;
    max-width: 360px;
    min-height: 100%;
    background: var(--se-color-white);
    border: 1px solid var(--se-color-border);
    box-shadow: 0 14px 40px rgb(16 24 40 / 6%);
}

.se-card--service .se-card__index {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--se-color-primary);
}

.se-card--service .se-heading {
    font-family: var(--se-font-body);
}

.se-card .se-heading a {
    color: var(--se-color-text);
}

.se-card .se-heading a:hover {
    color: var(--se-color-primary);
    text-decoration: none;
}

.se-card--service p {
    margin: 0;
}

.se-card--service .se-card__link {
    margin-top: auto;
    font-weight: 700;
    font-size: 0.9rem;
}

.se-card--service .se-card__link:hover {
    text-decoration: none;
    color: var(--se-color-accent);
}

/* Congreso */
.wp-block-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 22px 60px rgb(16 24 40 / 14%);
}

.wp-block-site-logo img {
    width: auto;
    box-shadow: none;
}

.wp-block-columns.alignwide {
    gap: clamp(28px, 4vw, 56px);
}

.wp-block-columns.are-vertically-aligned-center h2 {
    font-size: clamp(34px, 4vw, 54px);
    margin-bottom: 20px;
}

.wp-block-columns.are-vertically-aligned-center p {
    font-size: 18px;
    color: var(--se-muted);
}

.se-hero-congreso {
    background:
        radial-gradient(700px 280px at 90% 0%, rgb(242 106 33 / 28%), transparent 60%),
        var(--se-color-ink);
    color: var(--se-color-white);
}

.se-hero-congreso::after {
    display: none;
}

.se-hero-congreso h1,
.se-hero-congreso h2,
.se-hero-congreso h3,
.se-hero-congreso p,
.se-hero-congreso .se-kicker {
    color: var(--se-color-white);
}

.se-congreso-menu {
    position: sticky;
    top: var(--se-header-h);
    z-index: 150;
    background: rgb(255 255 255 / 92%);
    backdrop-filter: blur(12px);
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--se-color-border);
}

/* Footer */
.se-site-footer {
    background: var(--se-color-footer);
    color: var(--se-color-white);
    padding: 4rem 1.5rem 1.75rem;
    margin-top: 0;
}

.se-site-footer h3 {
    color: var(--se-color-white);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}

.se-site-footer a {
    color: var(--se-color-footer-muted);
}

.se-site-footer a:hover {
    color: var(--se-color-white);
    text-decoration: none;
}

.se-site-footer p {
    color: var(--se-color-footer-muted);
}

.se-legal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.se-site-footer .wp-block-columns {
    margin-bottom: 2.5rem;
}

/* Cards / media */
.se-entry-card__media img,
.se-entry-card .wp-block-post-featured-image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
    height: auto;
    display: block;
}

.se-catalog-block {
    max-width: var(--se-wide-width);
    margin-left: auto;
    margin-right: auto;
}

.se-catalog-latest,
.se-catalog--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.se-catalog--cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.se-catalog--list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.se-catalog--carousel {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.35rem;
}

.se-catalog--carousel::-webkit-scrollbar {
    display: none;
}

.se-catalog--carousel .se-entry-card {
    flex: 0 0 min(280px, 78%);
    scroll-snap-align: start;
}

.se-catalog-panel {
    position: relative;
    width: 100%;
}

.se-catalog-panel .se-block-carrusel-nav {
    z-index: 3;
}

.se-catalog-panel .se-carousel-btn {
    display: none;
}

.se-entry-card--list {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    align-items: stretch;
}

.se-entry-card--list:not(:has(.se-entry-card__media)),
.se-entry-card--list .se-card__body {
    min-width: 0;
}

.se-entry-card--list:not(:has(.se-entry-card__media)) {
    grid-template-columns: 1fr;
}

.se-entry-card--list .se-entry-card__media img {
    height: 100%;
    aspect-ratio: 4 / 3;
}

.se-entry-card__meta {
    margin: 0;
    font-size: 0.9rem;
    color: var(--se-muted);
}

.se-entry-card__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.35rem 0 0;
}

.se-grid-cards .wp-block-post-template {
    gap: 1.5rem;
}

.se-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.se-section-head h2 {
    margin-bottom: 0.35rem;
}

@media (max-width: 960px) {
    .se-hero-home__inner,
    .se-hero-home__inner.wp-block-columns,
    .se-about,
    .se-about.wp-block-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .se-entry-card--list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 781px) {
    .se-site-header__bar {
        align-items: stretch;
    }

    .se-site-header .wp-block-navigation,
    .se-site-header .wp-block-search,
    .se-site-header .wp-block-buttons {
        width: 100%;
    }

    .se-hero,
    .se-hero-home,
    main.wp-block-group > .wp-block-cover:first-child {
        min-height: 360px;
        padding: 56px 20px;
    }

    .se-hero::after,
    .se-hero-home::after,
    main.wp-block-group > .wp-block-cover:first-child::after {
        background: rgb(255 255 255 / 90%);
    }

    .se-home h1,
    .se-hero-home h1,
    main.wp-block-group > .wp-block-cover:first-child h1 {
        font-size: 38px;
    }

    .wp-block-button,
    .wp-block-button__link {
        width: 100%;
        text-align: center;
    }

    .se-site-header .wp-block-button,
    .se-site-header .wp-block-button__link {
        width: auto;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .se-reveal {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.65s ease, transform 0.65s ease;
    }

    .se-reveal.is-inview {
        opacity: 1;
        transform: none;
    }

    .wp-block-button__link,
    .wp-element-button,
    .se-search-form button,
    .se-contact-form button {
        transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .wp-block-button__link:hover,
    .wp-element-button:hover,
    .se-search-form button:hover,
    .se-contact-form button:hover {
        transform: translateY(-2px);
        text-decoration: none;
        box-shadow: 0 10px 22px rgb(242 106 33 / 28%);
    }

    .se-card {
        transition: transform 0.22s ease, box-shadow 0.22s ease, outline-color 0.2s ease;
    }

    .se-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--se-shadow-md);
        outline-color: var(--se-color-secondary);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .se-reveal,
    .se-card,
    .se-home-service,
    .wp-element-button {
        transition: none;
        transform: none;
        opacity: 1;
    }
}
