/* ==========================================================================
   Main CSS — Non-critical styles loaded asynchronously
   Variables are in variables.css — just use custom properties.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Sections — General
   -------------------------------------------------------------------------- */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--dark);
    letter-spacing: -0.01em;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-light);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Stats Bar
   -------------------------------------------------------------------------- */
.stats-bar {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.95), rgba(126, 34, 206, 0.95));
    backdrop-filter: blur(10px);
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    margin-top: 0;
    box-shadow: 0 -10px 40px rgba(147, 51, 234, 0.15);
}

.stats-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    position: relative;
}

.stat-icon {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Online Carousel (Seminarios Online)
   -------------------------------------------------------------------------- */
.online-carousel {
    background: #fff;
    padding-top: 50px;
    padding-bottom: 30px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 10px 0 40px;
    -webkit-overflow-scrolling: touch;
}

.carousel {
    display: flex;
    align-items: center;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.carousel-slide {
    min-width: 60%;
    margin: 0 15px;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform: scale(0.85);
    opacity: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    height: 400px;
    cursor: grab;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.carousel-slide:active {
    cursor: grabbing;
}

.carousel-slide.active {
    transform: scale(1);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(147, 51, 234, 0.2);
}

.carousel-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7c3aed, #db2777, #2563eb);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.carousel-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 0;
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Prevent image dragging in carousels */
.carousel-slide,
.courses-slide,
.course-card {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.carousel-slide img,
.course-card img,
.course-img img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.carousel-caption {
    position: relative;
    z-index: 10;
    padding: 40px 30px;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
}

.carousel-caption h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-caption span {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
    z-index: 20;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.carousel-btn.prev {
    left: 10%;
}

.carousel-btn.next {
    right: 10%;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
}

.carousel-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dots span.active {
    background: var(--primary);
}

/* --------------------------------------------------------------------------
   Presenciales Cards (Courses Slider)
   -------------------------------------------------------------------------- */
.presenciales-cards {
    background: #faf5ff;
    padding: 50px 0;
}

.courses-slider-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.courses-slider {
    display: flex;
    transition: transform 0.5s ease;
    cursor: grab;
}

.courses-slider:active {
    cursor: grabbing;
}

/* 3 columns + gap + padding matches .catalog-grid on the online seminarios page,
   so each card here is the same width as a catalog card. */
.courses-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.course-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.course-card:hover {
    box-shadow: var(--shadow-sm);
}

.course-img {
    height: 180px;
    background: linear-gradient(135deg, #4c1d95, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.course-img span {
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Typography matches .catalog-card-body — same scale as the online seminarios cards. */
.course-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 8px;
}

.course-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.course-tagline {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-dual-label {
    display: block;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #0891b2;
}

.courses-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.courses-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d8b4fe;
    cursor: pointer;
    transition: all 0.3s;
}

.courses-dots span:hover {
    background: #a855f7;
}

.courses-dots span.active {
    background: var(--primary);
    transform: scale(1.2);
}

.ver-todos-link {
    text-align: center;
    margin-top: 25px;
}

.online-carousel .ver-todos-link {
    margin-top: -5px;
}

@media (max-width: 768px) {
    .online-carousel .ver-todos-link {
        margin-top: 15px;
    }
}

.ver-todos-link a {
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s;
}

.ver-todos-link a:hover {
    background: #f3e8ff;
}

/* Mobile courses grid (static) */
.courses-grid-mobile {
    display: none;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Testimonials (Home — horizontal scroll)
   -------------------------------------------------------------------------- */
.testimonials {
    background: #fff;
    padding: 50px 0;
}

.testimonials-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 300px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    scroll-snap-align: start;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.testimonial-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #c026d3);
}

.author-info h5 {
    font-size: 13px;
    color: #1a1a2e;
    font-weight: 600;
}

.author-info span {
    font-size: 11px;
    color: #888;
}

/* --------------------------------------------------------------------------
   Que es Unitary (Steps)
   -------------------------------------------------------------------------- */
.que-es {
    background: #fff;
    padding: 60px 0 40px;
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 70px;
    align-items: center;
}

.step:last-child {
    margin-bottom: 0;
}

.step.reverse {
    direction: rtl;
}

.step.reverse > * {
    direction: ltr;
}

.step-content {
    padding: 10px 0;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #14b8a6;
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
}

.step-number.purple {
    background: var(--primary);
}

.step-label {
    color: #14b8a6;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-label.purple {
    color: var(--primary);
}

.step-content h3 {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 22px;
    line-height: 1.3;
    font-weight: 700;
}

.step-divider {
    width: 55px;
    height: 4px;
    background: #14b8a6;
    margin-bottom: 22px;
    border-radius: 2px;
}

.step-divider.purple {
    background: var(--primary);
}

.step-text {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

/* Botón "Nuestro Recorrido" (bloque LA FUENTE). Reusa .btn-outline —
   sólo ajusta lo que cambia por ser un <a> dentro del cuerpo de texto:
   tamaño alineado a .step-text (15px) en vez del CTA del hero (16px). */
.step-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 13px 30px;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
}

.step-image {
    border-radius: 18px;
    overflow: hidden;
    height: 360px;
    background: linear-gradient(135deg, #c084fc, #f472b6);
    position: relative;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}

.step-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.step-gallery-item {
    height: 180px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #a78bfa, #f472b6);
}

.step-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-gallery-item > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Historias (Transformation Stories)
   -------------------------------------------------------------------------- */
.historias {
    background: #f9fafb;
    padding: 60px 0 50px;
}

.historias-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 1100px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.historias-row {
    display: flex;
    width: 100%;
}

.historias-row-vertical {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.historias-row-stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}

.historia-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.6);
    width: 248px;
    flex-shrink: 0;
}

.historia-card:hover {
    box-shadow: var(--shadow-sm);
}

.historia-img {
    height: 220px;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    position: relative;
    overflow: hidden;
}

.historia-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.historia-img > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 56px;
}

.historia-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.historia-content h4 {
    font-size: 15px;
    color: #1a1a2e;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.historia-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 0;
}

.historia-footer {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #eee;
}

.historia-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.historia-author-role {
    font-size: 12px;
    color: #777;
    margin-bottom: 2px;
}

.historia-author-location {
    font-size: 12px;
    color: #999;
}

/* No-photo: matches the photo-card material (white bg, neutral border, same shadow). */
.historia-card.no-photo {
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: var(--shadow-sm);
}

.historia-card.no-photo .historia-content {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "title    author"
        "divider  divider"
        "text     text";
    column-gap: 32px;
    align-items: baseline;
    padding: 32px 40px 28px;
    position: relative;
}

.historia-card.no-photo .historia-content::before {
    content: "\201C";
    position: absolute;
    top: 4px;
    left: 26px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 64px;
    line-height: 1;
    color: var(--primary);
    opacity: 0.10;
    pointer-events: none;
    user-select: none;
}

.historia-card.no-photo .historia-content::after {
    content: "";
    grid-area: divider;
    height: 1px;
    margin: 16px 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(147, 51, 234, 0.20) 8%,
        rgba(147, 51, 234, 0.20) 92%,
        transparent 100%
    );
}

.historia-card.no-photo .historia-content h4 {
    grid-area: title;
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.015em;
    font-feature-settings: "kern" 1, "liga" 1;
}

.historia-card.no-photo .historia-footer {
    grid-area: author;
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    text-align: right;
}

.historia-card.no-photo .historia-footer::before { content: none; }

.historia-card.no-photo .historia-footer > * {
    display: inline;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    font-feature-settings: "kern" 1;
}

.historia-card.no-photo .historia-author-name {
    font-weight: 600;
    color: #1a1a2e;
}

.historia-card.no-photo .historia-author-role,
.historia-card.no-photo .historia-author-location {
    color: #777;
}

.historia-card.no-photo .historia-author-role::before,
.historia-card.no-photo .historia-author-location::before {
    content: "·";
    margin: 0 8px;
    color: rgba(15, 23, 42, 0.22);
    font-weight: 400;
}

/* Body text matches the photo historia .historia-content p exactly. */
.historia-card.no-photo .historia-content p {
    grid-area: text;
    margin: 0;
    padding: 0;
    border: none;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

/* Horizontal orientation. */
.historia-card.horizontal {
    flex-direction: row;
    width: 100%;
    max-width: 720px;
    min-height: 220px;
}

.historia-card.horizontal .historia-img {
    width: 220px;
    height: auto;
    flex-shrink: 0;
}

.historia-card.horizontal .historia-content {
    flex: 1;
    padding: 22px 26px;
}

.historia-card.no-photo.horizontal {
    min-height: 0;
}

.historia-card.no-photo.horizontal .historia-content {
    padding: 36px 40px 24px;
}

.explore-link {
    text-align: center;
    margin-top: 40px;
}

.explore-link a {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
}

.explore-link a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Newsletter — tres columnas: titulo / beneficios / formulario.
   Antes la seccion se montaba sobre una ilustracion de fondo a pantalla
   completa; ahora el fondo es un degradado lavanda suave. El formulario
   conserva el glassmorfismo, que apoya sobre ese degradado.
   -------------------------------------------------------------------------- */
.newsletter {
    position: relative;
    /* Sin padding abajo: el banner cierra la seccion a ras del footer. */
    padding: 100px 0 0;
    /* Blanco plano. El borde superior de los DOS banners esta llevado a este
       mismo #FFFFFF (horneado en el archivo, ver tools/build-newsletter-banner.py),
       asi que la imagen empalma sola: no hace falta ningun degradado de union,
       y la seccion se continua sin corte con la seccion blanca anterior. */
    background: #ffffff;
    /* El banner se sale del contenedor con 100vw; esto evita scroll lateral. */
    overflow-x: clip;
}

.newsletter-inner {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 0.85fr 1.1fr 1fr;
    grid-template-areas:
        "heading content form"
        "banner  banner  banner";
    column-gap: 48px;
    row-gap: 72px;
    /* Las tres columnas arrancan a la misma altura. Con `center` cada una se
       centraba por separado dentro de la fila y no alineaba con ninguna:
       el titulo quedaba flotando al medio y el formulario a media altura. */
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.newsletter-heading { grid-area: heading; position: relative; z-index: 1; }
.newsletter-form    { grid-area: form;    position: relative; z-index: 1; }

/* El titulo deja de ser cabecera centrada de seccion: es la primera columna. */
.newsletter .section-title {
    text-align: left;
    margin-bottom: 0;
    font-size: 44px;
    line-height: 1.15;
    color: var(--primary);
    /* Compensa la diferencia de caja de linea contra el h3 de 24px de al lado,
       para que las mayusculas de ambos apoyen sobre la misma horizontal. */
    margin-top: -6px;
}

.newsletter-content {
    grid-area: content;
    position: relative;
    z-index: 6;
}

.newsletter-content h3 {
    font-size: 24px;
    color: #1a1a2e;
    margin-bottom: 30px;
    font-weight: 700;
}

.newsletter-items-container {
    margin-bottom: 25px;
}

.newsletter-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.newsletter-item:last-child {
    margin-bottom: 0;
}

.newsletter-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.newsletter-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(147, 51, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    font-size: 16px;
}

.newsletter-line {
    width: 2px;
    background: rgba(147, 51, 234, 0.2);
    flex: 1;
    min-height: 20px;
}

.newsletter-item.last .newsletter-line {
    display: none;
}

.newsletter-text {
    padding-top: 8px;
    padding-bottom: 20px;
}

.newsletter-item.last .newsletter-text {
    padding-bottom: 0;
}

.newsletter-text h4 {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 6px;
    font-weight: 700;
}

.newsletter-text p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

/* Sin tarjeta: el formulario apoya directo sobre el blanco de la seccion.
   El input y el boton traen su propio borde y sombra, asi que se sostienen
   solos. (Antes era un glassmorfismo, que sobre lavanda se recortaba pero
   sobre blanco no tenia nada que difuminar.) */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 0;
    max-width: none;
}

.newsletter-input {
    width: 100%;
    padding: 16px 24px;
    border-radius: 50px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #1f2937;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 56px;
    box-sizing: border-box;
}

.newsletter-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

.newsletter-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-height: 56px;
    box-sizing: border-box;
}

.newsletter-btn:hover {
    background: #7c22ce;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

/* UW-020 newsletter — GDPR consent + status row. */
.newsletter-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #374151;
    cursor: pointer;
}
.newsletter-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    accent-color: var(--primary);
    cursor: pointer;
}
.newsletter-consent span {
    flex: 1;
    min-width: 0;
}
.newsletter-consent a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}
.newsletter-consent a:hover {
    color: #7c22ce;
}
.newsletter-form-status {
    width: 100%;
    margin: 8px 0 0;
    font-size: 13px;
    min-height: 1.4em;
}
/* Banner de cierre: entrega visual de la newsletter al footer oscuro.
   Rompe el ancho del contenedor para ir de borde a borde. */
.newsletter-banner {
    grid-area: banner;
    position: relative;
    line-height: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.newsletter-banner picture {
    display: block;
    line-height: 0;
}

.newsletter-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.newsletter-form-status:empty {
    margin: 0;
    min-height: 0;
}
/* WCAG AA: lighter status colors fail contrast on the white glass-card
   background — darker shades give ≥4.5:1 against the newsletter card. */
.newsletter-form-status--success {
    color: #047857;
}
.newsletter-form-status--error {
    color: #b91c1c;
}
.newsletter-form-status--info {
    color: #a16207;
}

/* --------------------------------------------------------------------------
   Transformacion (Workshop Single)
   -------------------------------------------------------------------------- */
.transformacion {
    background: var(--white);
    padding: 50px 0 40px;
}

.transformacion-content {
    max-width: 800px;
    margin: 0 auto;
}

.transformacion h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
}

.transformacion-intro {
    font-size: 16px;
    color: var(--text);
    line-height: 1.8;
    text-align: center;
    margin-bottom: 35px;
}

.experiencia-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

.experiencia-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.experiencia-item {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
}

.experiencia-item strong {
    color: var(--dark);
}

/* Restructured experiencia item: bold lead-in on its own line, body below */
.experiencia-item-title {
    display: block;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 5px;
}
.experiencia-item-body p {
    margin: 0 0 10px;
}
.experiencia-item-body > :last-child {
    margin-bottom: 0;
}

/* Auto-formatted lists from plain-text fields (uw_format_prose) */
.uw-list {
    text-align: left;
    margin: 12px 0 4px;
    padding-left: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.uw-list li {
    line-height: 1.6;
    padding-left: 4px;
}
.uw-list li::marker {
    color: var(--primary);
    font-weight: 600;
}

/* accordion description may now contain paragraphs/lists */
.accordion-description p {
    margin: 0 0 10px;
}
.accordion-description > :last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Programa (Accordion)
   -------------------------------------------------------------------------- */
.programa {
    background: var(--white);
    padding: 40px 0 50px;
}

.programa h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.programa-subtitle {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: var(--dark);
    margin-bottom: 30px;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.accordion-header:hover {
    opacity: 0.8;
}

.accordion-icon {
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.accordion-item.active .accordion-icon {
    background: var(--primary);
    color: white;
}

.accordion-part {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.accordion-part-label {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.accordion-part-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    font-family: var(--font-heading);
}

.accordion-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    font-family: var(--font-heading);
}

.accordion-content {
    display: none;
    padding: 5px 0 30px 52px;
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-description {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 25px;
}

.accordion-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 63px;
}

.accordion-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text);
}

.accordion-check .icon {
    color: var(--primary);
    margin-top: 3px;
}

/* --------------------------------------------------------------------------
   Instructores
   -------------------------------------------------------------------------- */
.instructores {
    background: var(--white);
    padding: 50px 0;
}

.instructores h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 25px;
}

.instructores-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 40px;
}

.instructor-card {
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
    max-width: 500px;
}

.instructor-photo {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}

.instructor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-info {
    display: flex;
    flex-direction: column;
}

.instructor-bio {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Expanded instructor: full bio, photo pinned to top instead of centered */
.instructor-card.is-expanded {
    align-items: flex-start;
}
.instructor-card.is-expanded .instructor-bio {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* Name (left) + "Ver más" (right) on one tidy row */
.instructor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

/* Per-instructor "Ver más / Ver menos" — subtle text toggle, sits on the right */
.instructor-toggle {
    margin: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--primary);
    transition: color 0.2s ease;
}
.instructor-toggle:hover {
    color: var(--primary-dark);
}
.instructor-toggle-icon {
    width: 13px;
    height: 13px;
    transition: transform 0.3s ease;
}
.instructor-card.is-expanded .instructor-toggle-icon {
    transform: rotate(180deg);
}

.instructor-role {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 2px;
    font-style: italic;
}

.instructor-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

/* --------------------------------------------------------------------------
   Testimonios (Workshop Single)
   -------------------------------------------------------------------------- */
.testimonios {
    background: var(--white);
    padding: 50px 0;
}

.testimonios h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 35px;
}

/* Workshop-level group photo banner above the testimonial cards */
.testimonios-foto-grupal-wrap {
    max-width: 720px;
    margin: 0 auto 32px;
    padding: 0 20px;
}
.testimonios-foto-grupal {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.testimonios-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonios-row {
    display: flex;
    width: 100%;
}

.testimonios-row-vertical {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start; /* each card sizes to its own content — expanding
                                one "Leer más" must not stretch its row siblings */
    gap: 24px;
}

.testimonios-row-stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}

.testimonio-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 248px;
    flex-shrink: 0;
}

.testimonio-card:hover {
    box-shadow: var(--shadow-sm);
}

.testimonio-image {
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    flex-shrink: 0;
}

.testimonio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonio-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.testimonio-quote {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.testimonio-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 12px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonio-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.testimonio-link {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    display: none;
}

.testimonio-link.visible {
    display: inline;
}

.testimonio-link:hover {
    text-decoration: underline;
}

.testimonio-author {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.testimonio-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.testimonio-author-role {
    font-size: 13px;
    color: var(--text-light);
}

.testimonio-author-location {
    font-size: 13px;
    color: var(--text-light);
}

/* No-photo: refined editorial callout. Matches the photo-card material
   (white bg, neutral border, same shadow) so they sit cohesively in mixed layouts.
   Static — no hover state. */
.testimonio-card.no-photo {
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: var(--shadow-sm);
}

/* Editorial header layout: title on the left, author byline on the right,
   both baseline-aligned. A graduated divider line separates header from body. */
.testimonio-card.no-photo .testimonio-content {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "title    author"
        "divider  divider"
        "text     text"
        "link     link";
    column-gap: 32px;
    align-items: baseline;
    padding: 32px 40px 28px;
    position: relative;
}

/* Watermark quote glyph: restrained, anchored top-left. */
.testimonio-card.no-photo .testimonio-content::before {
    content: "\201C";
    position: absolute;
    top: 4px;
    left: 26px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 64px;
    line-height: 1;
    color: var(--primary);
    opacity: 0.10;
    pointer-events: none;
    user-select: none;
}

/* Graduated divider — fades at the edges instead of butting against the padding. */
.testimonio-card.no-photo .testimonio-content::after {
    content: "";
    grid-area: divider;
    height: 1px;
    margin: 16px 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(147, 51, 234, 0.20) 8%,
        rgba(147, 51, 234, 0.20) 92%,
        transparent 100%
    );
}

.testimonio-card.no-photo .testimonio-quote {
    grid-area: title;
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: -0.015em;
    font-feature-settings: "kern" 1, "liga" 1;
}

/* Author byline: right-aligned, baseline-aligned with title, inline meta with subtle separators. */
.testimonio-card.no-photo .testimonio-author {
    grid-area: author;
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    text-align: right;
}

.testimonio-card.no-photo .testimonio-author::before { content: none; }

.testimonio-card.no-photo .testimonio-author > * {
    display: inline;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    font-feature-settings: "kern" 1;
}

.testimonio-card.no-photo .testimonio-author-name {
    font-weight: 600;
    color: var(--dark);
}

.testimonio-card.no-photo .testimonio-author-role,
.testimonio-card.no-photo .testimonio-author-location {
    color: var(--text-light);
}

.testimonio-card.no-photo .testimonio-author-role::before,
.testimonio-card.no-photo .testimonio-author-location::before {
    content: "·";
    margin: 0 8px;
    color: rgba(15, 23, 42, 0.22);
    font-weight: 400;
}

/* Body text matches the photo-card .testimonio-text exactly: same size,
   same line-height, same color, same family (inherited Inter). */
.testimonio-card.no-photo .testimonio-text {
    grid-area: text;
    margin: 0;
    padding: 0;
    border: none;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    -webkit-line-clamp: 4;
}

.testimonio-card.no-photo .testimonio-link {
    grid-area: link;
    margin-top: 12px;
}

/* Horizontal orientation: photo (if any) sits left, content fills right.
   min-height on the card lets the photo column stretch to a resolvable height. */
.testimonio-card.horizontal {
    flex-direction: row;
    width: 100%;
    max-width: 720px;
    min-height: 220px;
}

.testimonio-card.horizontal .testimonio-image {
    width: 220px;
    height: auto;
    flex-shrink: 0;
}

.testimonio-card.horizontal .testimonio-content {
    flex: 1;
    padding: 24px 28px;
}

/* No-photo + horizontal: let content drive the height — no forced 220px stretch. */
.testimonio-card.no-photo.horizontal {
    min-height: 0;
}

.testimonio-card.no-photo.horizontal .testimonio-content {
    padding: 38px 42px 26px;
}

/* In horizontal photo cards the text has more room — relax the line clamp slightly. */
.testimonio-card.horizontal:not(.no-photo) .testimonio-text {
    -webkit-line-clamp: 5;
}

/* --------------------------------------------------------------------------
   Impacto
   -------------------------------------------------------------------------- */
.impacto {
    background: var(--white);
    padding: 50px 0;
}

.impacto h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.impacto-subtitle {
    font-size: 17px;
    color: var(--text);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.impacto-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.impacto-item {
    display: flex;
    gap: 20px;
}

.impacto-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.impacto-icon.teal   { color: #14b8a6; }
.impacto-icon.green  { color: #22c55e; }
.impacto-icon.blue   { color: #3b82f6; }
.impacto-icon.violet { color: #8b5cf6; }
.impacto-icon.pink   { color: #ec4899; }
.impacto-icon.amber  { color: #f59e0b; }
.impacto-icon.rose   { color: #f43f5e; }
.impacto-icon.cyan   { color: #06b6d4; }

.impacto-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.impacto-text p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Próximos Eventos (within single workshop) — card-style, slimmer than the
   global calendar's event-card (no image / no title since they'd be redundant
   on the workshop detail page).
   -------------------------------------------------------------------------- */
.proximos-eventos {
    background: var(--bg-light);
    padding: 40px 0;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.proximos-eventos h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 18px;
    text-align: center;
}

.proximos-eventos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.pe-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 0 22px;
    align-items: center;
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 14px;
    padding: 24px 26px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pe-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pe-card .pe-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.pe-card .pe-date__day {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    white-space: nowrap;
}

.pe-card .pe-date__month {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-top: 4px;
}

.pe-card .pe-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pe-card .pe-body__header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pe-card .pe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--text-light);
}

.pe-card .pe-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pe-card .pe-meta__item .icon {
    width: 14px;
    height: 14px;
    opacity: 0.75;
    color: var(--text-light);
}

.pe-card .pe-btn {
    /* Slim variant of .btn-primary for in-card use — taller, not flat */
    padding: 14px 26px;
    font-size: 14px;
    border-radius: 50px;
    box-shadow: 0 6px 14px -4px rgba(124, 58, 237, 0.32);
    white-space: nowrap;
    line-height: 1.3;
}

/* Non-abierto states soften the card */
.pe-card--agotado,
.pe-card--sold-out,
.pe-card--cancelado,
.pe-card--pospuesto {
    opacity: 0.7;
}

.pe-card--cancelado:hover,
.pe-card--agotado:hover,
.pe-card--sold-out:hover,
.pe-card--pospuesto:hover {
    border-color: rgba(226, 232, 240, 0.6);
    box-shadow: none;
}

/* Mobile: stack date above body, push button below */
@media (max-width: 560px) {
    .pe-card {
        grid-template-columns: 56px 1fr;
        gap: 4px 14px;
        padding: 14px 16px;
    }
    .pe-card .pe-btn {
        grid-column: 2 / 3;
        justify-self: start;
        margin-top: 6px;
    }
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    background: var(--white);
    padding: 50px 0;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 35px;
    line-height: 1.3;
}

.cta-devices {
    max-width: 900px;
    margin: 0 auto 35px;
    text-align: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cta-devices img {
    width: 100%;
    height: auto;
    display: block;
}

.cta-devices-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 16px;
}

.cta-benefits {
    max-width: 700px;
    margin: 0 auto;
}

.cta-benefits h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 25px;
}

.cta-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
}

.cta-benefit .icon {
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing {
    background: var(--white);
    padding: 50px 0;
}

.pricing h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 35px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 780px;
    margin: 0 auto 40px;
    align-items: center;
}

.pricing-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--white);
}

.pricing-card.featured {
    border: 2px solid #ab00dd;
    box-shadow: none;
}

.pricing-header {
    padding: 20px 25px 16px;
    text-align: center;
    position: relative;
}

.pricing-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 25px;
    height: 1px;
    background: #e0e0e0;
}

.pricing-card.featured .pricing-header {
    background: #ab00dd;
    padding: 14px 25px 16px;
}

.pricing-card.featured .pricing-header::after {
    display: none;
}

.pricing-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
}

.pricing-plan-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    font-family: var(--font-heading);
}

.pricing-card.featured .pricing-plan-name {
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.pricing-body {
    padding: 22px 25px 5px;
    text-align: center;
}

.pricing-card.featured .pricing-body {
    background: var(--white);
}

.pricing-product {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 5px;
}

.pricing-currency {
    font-size: 42px;
    font-weight: 500;
    color: #565e69;
    font-family: var(--font-heading);
}

.pricing-value {
    font-size: 42px;
    font-weight: 500;
    color: #565e69;
    line-height: 1;
    font-family: var(--font-heading);
}

.pricing-period {
    font-size: 18px;
    color: #565e69;
    font-weight: 500;
}

.pricing-note {
    font-size: 14px;
    color: #000;
    margin-bottom: 0;
    font-weight: 400;
}

.pricing-footer {
    background: #f7f8f9;
    padding: 18px 25px 22px;
    margin-top: 18px;
    text-align: center;
}

.btn-cta {
    background: #9b00c7;
    color: white;
    padding: 11px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    white-space: nowrap;
}

.btn-cta:hover {
    background: #7a009e;
    transform: translateY(-1px);
}

.payment-methods {
    display: inline-flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 10px;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
}

.payment-methods img {
    height: 28px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

.payment-methods img.pay-icon {
    height: 50px;
    margin: -11px 0;
}

.payment-methods img.apple-pay-icon {
    height: 44px;
    margin: -8px 0;
}

.payment-method-placeholder {
    display: none;
}

.stripe-note {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.stripe-note strong {
    font-weight: 700;
    color: #0a2540;
}

.vat-note {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 18px;
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 30px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.security-note-icon {
    width: 44px;
    height: 44px;
    border: 2px solid var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-note-icon .icon {
    font-size: 18px;
    color: var(--dark);
}

.security-note span {
    line-height: 1.4;
    text-align: left;
}

.grupos-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 18px 22px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
}

.grupos-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.grupos-icon .icon {
    color: white;
    font-size: 20px;
}

.grupos-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.grupos-text p {
    font-size: 14px;
    color: var(--dark);
    line-height: 1.4;
    margin: 0;
}

.grupos-text a {
    color: var(--primary);
    font-weight: 600;
}

.grupos-text a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Post-Compra
   -------------------------------------------------------------------------- */
.post-compra {
    background: var(--bg-gray);
    padding: 50px 0;
}

.post-compra h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 35px;
}

.post-compra-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.post-compra-item {
    text-align: center;
}

.post-compra-image {
    height: 220px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-compra-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.post-compra-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
}

.post-compra-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 15px;
}

.post-compra-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    max-width: 280px;
    margin: 0 auto;
}

.post-compra-number {
    width: 28px;
    height: 28px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.post-compra-step p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}

.post-compra-step a {
    color: var(--primary);
    font-weight: 600;
}

.post-compra-list {
    text-align: left;
    font-size: 14px;
    color: var(--text);
    margin-top: 10px;
    padding-left: 40px;
}

.post-compra-list li {
    margin-bottom: 5px;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq {
    background: var(--white);
    padding: 50px 0;
}

.faq h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 35px;
}

.faq-accordion {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 25px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-question:hover {
    opacity: 0.8;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.faq-item.active .faq-icon {
    background: var(--primary);
    color: white;
}

.faq-question span {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
}

.faq-answer {
    display: none;
    padding: 0 0 25px 44px;
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Footer oscuro (agosto 2026). Global a todo el sitio.
   El indigo sale medido del mockup del cliente (#170BB3 -> #120CAE), y es lo
   que recibe el borde violeta inferior de los banners de la newsletter.
   -------------------------------------------------------------------------- */
footer {
    background: linear-gradient(180deg, #180bb5 0%, #120cad 100%);
    padding: 72px 0 30px;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1.15fr 1fr;
    grid-template-areas: "brand nav contacto social";
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-brand          { grid-area: brand; }
.footer-col--nav       { grid-area: nav; }
.footer-col--contacto  { grid-area: contacto; }
.footer-col--social    { grid-area: social; }

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: inline-block;
    line-height: 0;
}

.footer-logo img {
    width: 190px;
    height: auto;
}

/* El logo tiene transparencia. La regla global `img[loading="lazy"]` (mas
   abajo en este archivo) le pone un placeholder gris que, con el alfa, queda
   a la vista para siempre como un recuadro claro sobre el indigo.
   Hay que repetir el selector de atributo: `.footer-logo img` tiene la misma
   especificidad (0-1-1) que `img[loading="lazy"]`, asi que al estar aquella
   despues en el archivo, ganaba. Con el atributo sube a 0-2-1 y gana siempre. */
.footer-logo img[loading="lazy"] {
    background: none;
}

.footer-tagline {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.66);
}

.footer-col h5 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col a {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.66);
    margin-bottom: 12px;
    transition: color 0.25s;
}

.footer-col a:hover {
    color: #fff;
}

/* Enlaces con icono: el mail y las redes.
   Se califica con .footer-col por especificidad: `.footer-col a` (0-1-1) le
   gana a `.footer-icon-link` (0-1-0), y su display:block anulaba este flex
   dejando el icono pegado al texto. */
.footer-col a.footer-icon-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-col a.footer-icon-link .icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.8;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 54px auto 0;
    padding: 26px 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* El copyright queda a la izquierda; credito y boton empujados a la derecha. */
.footer-bottom > p:first-of-type {
    margin-right: auto;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p a {
    color: rgba(255, 255, 255, 0.68);
    transition: color 0.25s;
}

.footer-bottom p a:hover {
    color: #fff;
}

.back-to-top {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}

.back-to-top:hover {
    background: var(--primary);
}

/* --------------------------------------------------------------------------
   Responsive — Main Styles
   -------------------------------------------------------------------------- */
@media (max-width: 1400px) {
    .carousel-btn.prev { left: 5%; }
    .carousel-btn.next { right: 5%; }
}

@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .instructores-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .testimonio-card {
        width: calc(50% - 12px);
    }

    .testimonio-image { height: 180px; }

    /* Horizontal cards keep their full width inside the stacked row. */
    .testimonio-card.horizontal {
        width: 100%;
        max-width: 100%;
    }

    .post-compra-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .carousel-slide {
        min-width: 70%;
        margin: 0 10px;
        height: 350px;
    }
}

@media (max-width: 900px) {
    .stats-bar {
        order: 3;
        padding: 16px 0;
        background: linear-gradient(135deg, rgba(147, 51, 234, 0.98), rgba(126, 34, 206, 0.98));
        width: 100%;
        margin: 0;
        border: none;
    }

    .stats-bar-inner {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .stat-item {
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .stat-icon {
        font-size: 16px;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }

    .stat-number { font-size: 14px; }
    .stat-label  { font-size: 9px; }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 10px 0 25px;
    }

    .carousel-slide {
        width: 72vw;
        min-width: 72vw;
        flex: 0 0 72vw;
        margin: 0 12px;
        height: 280px;
        opacity: 0.6;
        transform: scale(1);
    }

    .carousel-slide.active {
        opacity: 1;
        box-shadow: 0 6px 20px rgba(147, 51, 234, 0.15);
    }

    .carousel-btn.prev {
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .carousel-btn.next {
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .carousel-caption {
        padding: 25px 20px;
    }

    .carousel-caption h3 { font-size: 18px; }
    .carousel-caption span { font-size: 11px; }

    .video-container { border-radius: 20px; }

    .stats-bar { padding: 16px 0; }

    .stats-bar-inner {
        gap: 0;
        padding: 0 10px;
        flex-wrap: nowrap;
        /* space-evenly reparte el sobrante en 4 huecos iguales:
           borde -> item -> item -> item -> borde. Con gap > 0 los huecos
           del medio quedarian mas grandes que los de los bordes. */
        justify-content: space-evenly;
    }

    .stat-item { min-width: auto; gap: 5px; flex-shrink: 1; }
    .stat-icon  { font-size: 16px; }
    .stat-number { font-size: 13px; }
    .stat-label  { font-size: 8px; letter-spacing: 0; }

    .step {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .step.reverse { direction: ltr; }
    .step-image { height: 240px; order: -1; }
    .step-content h3 { font-size: 24px; }

    /* Apiladas, pero al MISMO ancho que los bloques grandes. Antes tenian
       `padding: 0 40px` + `justify-items: center`, y el item se dimensionaba
       por su alto (`width: auto` + aspect-ratio), asi que quedaban angostas y
       centradas mientras las grandes llegaban al borde del contenedor. */
    .step-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mismo ancho y mismo alto que .step-image (240px, unas lineas mas arriba):
       en movil las tres fotos tienen exactamente la misma proporcion que los
       bloques grandes. Si se cambia el alto de .step-image, cambiar este tambien.
       Sin `width: auto` ni aspect-ratio: el item toma el ancho completo de la
       columna y el encuadre lo resuelve el `object-fit: cover` de la imagen. */
    .step-gallery-item {
        height: 240px;
    }

    .courses-slide {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .historia-card {
        width: calc(50% - 12px);
    }

    .historia-img { height: 180px; }

    .historia-card.horizontal {
        width: 100%;
        max-width: 100%;
    }

    /* Apilado: titulo -> beneficios -> formulario -> imagen.
       El banner va ultimo igual que en desktop: su borde inferior es violeta
       y esta hecho para entregarle al footer oscuro. Intercalarlo en el medio
       dejaba ese violeta cortando en seco contra el lavanda. */
    .newsletter { padding: 64px 0 0; }

    .newsletter-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "heading"
            "content"
            "form"
            "banner";
        column-gap: 0;
        row-gap: 34px;
        padding: 0 24px;
    }

    .newsletter .section-title { text-align: center; font-size: 32px; }

    .newsletter-content h3 { font-size: 22px; }
    .newsletter-item { gap: 12px; }
    .newsletter-text { padding-right: 0; }

    .newsletter-form {
        max-width: none;
        margin: 0;
    }

    .newsletter-input { width: 100%; }
    .newsletter-btn { width: 100%; padding: 16px 25px; text-align: center; }

    footer { padding: 54px 0 26px; }

    /* Navegacion es larga: ocupa la columna izquierda entera, y Contacto +
       Siguenos se apilan en la derecha. La fila de Siguenos es 1fr para que
       absorba el sobrante de Navegacion y quede pegada debajo de Contacto,
       en vez de repartirse el hueco entre las dos filas. */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand brand"
            "nav   contacto"
            "nav   social";
        grid-template-rows: auto auto 1fr;
        align-items: start;
        gap: 34px 28px;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-logo img { width: 168px; }

    .footer-bottom {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 14px;
        margin-top: 38px;
        padding-top: 22px;
    }

    .footer-bottom > p:first-of-type {
        margin-right: 0;
        width: 100%;
    }

    .footer-credit { width: 100%; }

    .section-title { font-size: 28px; }

    /* Workshop single responsive */
    .transformacion { padding: 35px 0 30px; }
    .transformacion-intro { margin-bottom: 25px; }
    .programa { padding: 30px 0 40px; }
    .programa-subtitle { margin-bottom: 20px; }
    .accordion-content { padding: 5px 0 25px 52px; }
    .accordion-checklist { padding-left: 20px; }
    .instructores { padding: 35px 0; }
    .instructores h2 { margin-bottom: 25px; }
    .testimonios { padding: 35px 0; }
    .testimonios h2 { margin-bottom: 25px; }
    .impacto { padding: 35px 0; }
    .impacto-subtitle { margin-bottom: 30px; }
    .cta-section { padding: 35px 0; }
    .cta-section h2 { margin-bottom: 25px; }
    .pricing { padding: 35px 0; }
    .pricing h2 { margin-bottom: 25px; }
    .post-compra { padding: 35px 0; }
    .post-compra h2 { margin-bottom: 25px; }
    .faq { padding: 35px 0; }
    .faq h2 { margin-bottom: 25px; }

    .testimonio-card {
        width: 100%;
        max-width: 320px;
    }
    .testimonio-image { height: 200px; }

    /* Stacked rows + horizontal cards collapse to a clean single-column at narrow widths. */
    .testimonios-row-stacked,
    .historias-row-stacked {
        max-width: 320px;
    }

    .testimonio-card.horizontal,
    .historia-card.horizontal {
        flex-direction: column;
        max-width: 320px;
    }

    .testimonio-card.horizontal .testimonio-image,
    .historia-card.horizontal .historia-img {
        width: 100%;
        height: 200px;
    }

    .testimonio-card.horizontal .testimonio-content,
    .historia-card.horizontal .historia-content {
        padding: 20px;
    }

    /* Mobile: collapse the editorial header grid to a single column.
       Author byline drops below the title (left-aligned), divider stays in flow, then body. */
    .testimonio-card.no-photo .testimonio-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "author"
            "divider"
            "text"
            "link";
        column-gap: 0;
        padding: 26px 22px 22px;
    }

    .historia-card.no-photo .historia-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "author"
            "divider"
            "text";
        column-gap: 0;
        padding: 26px 22px 22px;
    }

    .testimonio-card.no-photo .testimonio-author,
    .historia-card.no-photo .historia-footer {
        justify-content: flex-start;
        text-align: left;
        margin-top: 6px;
    }

    /* Tighter divider on mobile. */
    .testimonio-card.no-photo .testimonio-content::after,
    .historia-card.no-photo .historia-content::after {
        margin: 14px 0;
    }

    /* Scale the decorative quote glyph down on mobile. */
    .testimonio-card.no-photo .testimonio-content::before,
    .historia-card.no-photo .historia-content::before {
        font-size: 56px;
        top: 4px;
        left: 14px;
    }

    .testimonio-card.no-photo .testimonio-quote {
        font-size: 17px;
    }

    .historia-card.no-photo .historia-content h4 {
        font-size: 16px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .payment-methods { padding: 0; gap: 10px; }
    .payment-methods img { height: 24px; }
    .payment-methods img.pay-icon { height: 34px; margin: -5px 0; }
    .payment-methods img.apple-pay-icon { height: 30px; margin: -3px 0 -5px 0; }

    .security-note { max-width: 300px; gap: 12px; font-size: 13px; flex-direction: row; text-align: left; }
    .security-note span { text-align: left; }
    .security-note-icon { width: 40px; height: 40px; }

    .grupos-card { max-width: 320px; padding: 16px 18px; flex-direction: row; text-align: left; }
    .grupos-text { text-align: left; }
    .grupos-text p { text-align: left; }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 20px;
    }
    .footer-tagline { font-size: 13.5px; }

    .instructores-grid { padding-top: 30px; gap: 30px; }
    .instructor-photo { width: 80px; height: 80px; }
}

@media (max-width: 480px) {
    .carousel-slide {
        width: 78vw;
        min-width: 78vw;
        flex: 0 0 78vw;
        margin: 0 10px;
        height: 250px;
    }

    .carousel-btn.prev { left: 8px; width: 36px; height: 36px; font-size: 12px; }
    .carousel-btn.next { right: 8px; width: 36px; height: 36px; font-size: 12px; }

    .carousel-caption { padding: 20px 15px; }
    .carousel-caption h3 { font-size: 16px; }
    .carousel-caption span { font-size: 10px; }

    .stats-bar { padding: 12px 0; }
    .stats-bar-inner { gap: 0; padding: 0 8px; }
    .stat-item { gap: 4px; }
    .stat-icon { font-size: 18px; }
    .stat-number { font-size: 13px; }
    .stat-label { font-size: 9px; }

    .courses-slider-container { display: none; }
    .courses-dots { display: none; }
    /* Match the online carousel's centered slide width (78vw) so the
       presencial cards look the same size as the active online card. */
    .courses-grid-mobile {
        display: flex;
        width: 78vw;
        max-width: none;
        margin: 0 auto;
    }

    .step-gallery { gap: 16px; }
    .section-title { font-size: 26px; }

    .newsletter { padding: 48px 0 0; }
    .newsletter-inner { gap: 28px; padding: 0 18px; }
    .newsletter .section-title { font-size: 27px; }
    .newsletter-content h3 { font-size: 20px; margin-bottom: 20px; }
    .newsletter-text h4 { font-size: 15px; }
    .newsletter-text p { font-size: 13px; line-height: 1.4; }
    .newsletter-btn { font-size: 14px; padding: 12px 20px; }

    .historia-card {
        width: 100%;
        max-width: 320px;
    }
    .historia-img { height: 200px; }

    .transformacion h2 { font-size: 28px; }
    .section-title { font-size: 24px; }

    .grupos-card { flex-direction: row; text-align: left; align-items: flex-start; }

    .payment-methods { padding: 0; gap: 8px; }
    .payment-methods img { height: 20px; }
    .payment-methods img.pay-icon { height: 28px; margin: -4px 0; }
    .payment-methods img.apple-pay-icon { height: 24px; margin: -2px 0 -4px 0; }

    .security-note { flex-direction: row; text-align: left; gap: 12px; }
    .security-note span { text-align: left; }

    .pricing-card .pricing-header { padding: 16px 20px 14px; }
    .pricing-card.featured .pricing-header { padding: 12px 20px 14px; }
    .pricing-body { padding: 18px 20px 5px; }
    .pricing-footer { padding: 16px 20px 18px; }
    .pricing-value { font-size: 36px; }
    .pricing-currency { font-size: 36px; }
}

@media (max-width: 768px) and (min-width: 481px) {
    .transformacion h2 { font-size: 28px; }
}

@media (max-width: 768px) {
    .carousel-container { padding: 10px 0 25px; }
}

/* ==========================================================================
   Interior Page Header — shared across Contact, Facilitators, Seminarios
   ========================================================================== */
.page-header {
    margin-top: 70px;
    background: var(--bg-light);
    padding: 48px 0 28px;
}

.page-header .container {
    max-width: 1100px;
    padding: 0 20px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -0.01em;
}

.page-header p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 10px auto 0;
    text-align: center;
    max-width: 700px;
}

@media (max-width: 768px) {
    .page-header {
        margin-top: 60px;
        padding: 36px 0 24px;
    }
    .page-header h1 {
        font-size: 28px;
    }
    .page-header p {
        font-size: 15px;
    }
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-section {
    padding: 48px 0 72px;
    background: #fff;
}

.contact-form-wrapper h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 13px 16px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8.825L.35 3.175l.7-.7L6 7.425l4.95-4.95.7.7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.contact-form .btn-primary {
    align-self: flex-start;
    padding: 14px 40px;
    font-size: 15px;
}

/* --- Sidebar info --- */
.contact-sidebar {
    position: sticky;
    top: 90px;
}

.contact-info-card {
    background: #faf5ff;
    border: 1px solid #f3e8ff;
    border-radius: var(--radius-md);
    padding: 28px 24px;
}

.contact-info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3e8ff;
}

.contact-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-info-item:first-of-type {
    padding-top: 0;
}

.contact-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(147, 51, 234, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-info-icon .icon {
    width: 16px;
    height: 16px;
}

.contact-info-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 3px;
}

.contact-info-text p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.contact-info-text a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info-text a:hover {
    color: var(--primary-dark);
}

.contact-social {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3e8ff;
}

.contact-social h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 14px;
}

.contact-social-links {
    display: flex;
    gap: 10px;
}

.contact-social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.contact-social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.contact-social-links .icon {
    width: 16px;
    height: 16px;
}

/* Contact — Responsive */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-info-card {
        max-width: 480px;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form .btn-primary {
        align-self: stretch;
    }
}

/* ==========================================================================
   Facilitators Page
   ========================================================================== */
/* "Sobre Nosotros" — bloque editable al inicio de Facilitadores. */
.facilitators-about {
    /* Mismo gris que .page-header (arriba) y .facilitators-section (abajo):
       las tres forman una sola banda continua, sin franja blanca en el medio. */
    background: var(--bg-light);
    padding: 20px 0 8px;
}

.facilitators-about .container {
    max-width: 820px;
}

.facilitators-about h2 {
    font-size: 30px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
}

.facilitators-about-text {
    font-size: 16px;
    line-height: 1.75;
    color: #4b5563;
}

.facilitators-about-text p {
    margin: 0 0 16px;
}

.facilitators-about-text p:last-child {
    margin-bottom: 0;
}

.facilitators-about-text ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.facilitators-about-text li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .facilitators-about { padding: 14px 0 4px; }
    .facilitators-about h2 { font-size: 24px; }
    .facilitators-about-text { font-size: 15px; }
}

.facilitators-section {
    padding: 48px 0 72px;
    background: var(--bg-light);
}

.facilitators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start; /* expanding one card must not stretch its row siblings */
}

/* Masonry mode (JS-enhanced): cards are distributed into independent columns so
   that expanding one card only grows ITS column — no full-row gaps. Falls back to
   the CSS grid above when JS is off. Column COUNT is controlled by JS. */
.facilitators-grid.is-masonry {
    display: flex;
    grid-template-columns: none;
    align-items: flex-start;
    gap: 28px;
}
.facilitators-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.facilitator-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: var(--radius-md);
    padding: 32px 24px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.facilitator-photo {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid #f3e8ff;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}

.facilitator-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.facilitator-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.facilitator-role {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.facilitator-bio {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Expanded: bio shows in full */
.facilitator-card.is-expanded .facilitator-bio {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* Expandable extra block (seminarios this facilitator teaches).
   Collapsed by default; revealed when the card has .is-expanded. */
.facilitator-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.facilitator-card.is-expanded .facilitator-extra {
    max-height: 1200px;
    opacity: 1;
    margin-top: 18px;
}

.facilitator-seminarios {
    text-align: left;
    padding-top: 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}
.facilitator-seminarios-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 6px;
}
.facilitator-seminarios-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.facilitator-seminarios-list li + li {
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}
.facilitator-seminarios-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s ease;
}
.facilitator-seminarios-list a::after {
    content: "\2192"; /* → */
    color: var(--primary-light);
    font-size: 14px;
    transform: translateX(-2px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.facilitator-seminarios-list a:hover {
    color: var(--primary);
}
.facilitator-seminarios-list a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* "Ver más / Ver menos" — subtle text toggle, not a loud button */
.facilitator-toggle {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px 2px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--primary);
    transition: color 0.2s ease;
}
.facilitator-toggle:hover {
    color: var(--primary-dark);
}
.facilitator-toggle-icon {
    width: 13px;
    height: 13px;
    transition: transform 0.3s ease;
}
.facilitator-card.is-expanded .facilitator-toggle-icon {
    transform: rotate(180deg);
}

/* Facilitators — Responsive */
@media (max-width: 900px) {
    .facilitators-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .facilitators-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }
    .facilitator-card {
        padding: 28px 20px 24px;
    }
}

/* ==========================================================================
   Seminarios Catalog Pages (Online / Presenciales / Avanzados)
   ========================================================================== */
.seminarios-intro {
    padding: 0;
    background: var(--bg-light);
}

.seminarios-intro .container {
    max-width: 700px;
    padding: 0 20px;
}

.seminarios-intro-text {
    font-size: 16px;
    color: var(--text);
    line-height: 1.8;
    text-align: center;
}

.seminarios-intro-text p {
    margin-bottom: 10px;
}

.seminarios-intro-text p:last-child {
    margin-bottom: 0;
}

/* --- Catalog Grid --- */
.seminarios-catalog {
    padding: 36px 0 60px;
    background: var(--bg-light);
}

.catalog-count {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 36px;
}

.catalog-count span {
    color: var(--primary);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Catalog Card --- */
.catalog-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.catalog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.catalog-card-img {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4c1d95, #8b5cf6);
}

.catalog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Catalog card members badge — matches home page style */
.catalog-card-img .members-badge {
    top: 12px;
    left: 12px;
    gap: 4px;
    font-size: 12px;
    letter-spacing: 0.15px;
    padding: 7px 12px 7px 9px;
    border-radius: 9px;
}

.catalog-card-img .members-badge .icon {
    width: 11px;
    height: 11px;
}

.catalog-card-body {
    padding: 22px 22px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.catalog-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.catalog-card-tagline {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.catalog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.catalog-card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
}

.catalog-card-meta-item .icon {
    width: 14px;
    height: 14px;
    color: var(--primary);
    opacity: 0.7;
}

.catalog-card-footer {
    padding: 0 22px 20px;
}

.catalog-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.catalog-card-cta .icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.catalog-card:hover .catalog-card-cta {
    color: var(--primary-dark);
}

.catalog-card:hover .catalog-card-cta .icon {
    transform: translateX(3px);
}

/* --- Empty State --- */
.catalog-empty {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.catalog-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(147, 51, 234, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.catalog-empty-icon .icon {
    width: 24px;
    height: 24px;
}

.catalog-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.catalog-empty p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- CTA Banner at bottom --- */
.catalog-cta-banner {
    background: #faf5ff;
    border-top: 1px solid #f3e8ff;
    padding: 44px 0;
    text-align: center;
}

.catalog-cta-banner .container {
    max-width: 600px;
}

.catalog-cta-banner h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.catalog-cta-banner p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* --- Catalog Grouped Sections (Público / Miembros) --- */
.catalog-group {
    margin-bottom: 40px;
}

.catalog-group:last-child {
    margin-bottom: 0;
}

.catalog-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.catalog-group-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.catalog-group-icon .icon {
    width: 14px;
    height: 14px;
}

.catalog-group-icon--public {
    background: #ecfdf5;
    color: #059669;
}

.catalog-group-icon--members {
    background: #f3f0ff;
    color: var(--primary);
}

.catalog-group-text h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1px;
}

.catalog-group-text p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
}

/* Members badge — shared base */
.members-badge {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    background: rgba(109, 40, 217, 0.55);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    text-transform: none;
    text-align: left;
}

.members-badge .icon {
    fill: currentColor;
    opacity: 0.75;
}

/* Online carousel — large cards */
.carousel-placeholder .members-badge {
    top: 12px;
    left: 12px;
    gap: 4px;
    font-size: 12px;
    letter-spacing: 0.15px;
    padding: 7px 12px 7px 9px;
    border-radius: 9px;
}

.carousel-placeholder .members-badge .icon {
    width: 11px;
    height: 11px;
}

/* Presencial carousel — small cards */
.course-img .members-badge {
    top: 8px;
    left: 8px;
    gap: 3px;
    font-size: 9px;
    letter-spacing: 0.15px;
    padding: 4px 8px 4px 6px;
    border-radius: 6px;
}

.course-img .members-badge .icon {
    width: 8px;
    height: 8px;
}

/* Members card subtle accent */
.catalog-card--members {
    border-color: rgba(216, 180, 254, 0.3);
}

.catalog-card--members:hover {
    border-color: var(--primary-light);
}

/* Dual-mode badge (Online & Presencial) — shared base */
.dual-badge {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    background: rgba(6, 182, 212, 0.55);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    text-transform: none;
    text-align: left;
}

/* Online carousel — large cards */
.carousel-placeholder .dual-badge {
    top: 12px;
    right: 12px;
    font-size: 12px;
    letter-spacing: 0.15px;
    padding: 7px 12px 7px 9px;
    border-radius: 9px;
}

/* Catalog card */
.catalog-card-img .dual-badge {
    top: 12px;
    right: 12px;
    font-size: 12px;
    letter-spacing: 0.15px;
    padding: 7px 12px 7px 9px;
    border-radius: 9px;
}

/* --- Formación Track (Avanzados page) --- */
.formacion-track {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Vertical connector line behind the steps — centered on 40px circles */
.formacion-track::before {
    content: '';
    position: absolute;
    left: 39px;   /* 20px padding + 19px to center of 40px circle */
    top: 40px;    /* start at center of first circle */
    bottom: 40px; /* end at center of last circle */
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-light), rgba(147, 51, 234, 0.1));
}

.formacion-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 0;
    position: relative;
}

.formacion-step:first-child {
    padding-top: 0;
}

.formacion-step:last-child {
    padding-bottom: 0;
}

.formacion-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.formacion-step:hover .formacion-step-number {
    background: var(--primary);
    color: #fff;
}

.formacion-step-content {
    flex: 1;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
}

a.formacion-step-content:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.formacion-step-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.formacion-step-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.formacion-step-arrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.formacion-step-arrow .icon {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

a.formacion-step-content:hover .formacion-step-arrow .icon {
    transform: translateX(3px);
}

/* Seminarios — Responsive */
@media (max-width: 900px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: 1fr;
        width: 78vw;
        max-width: none;
        padding: 0;
        margin: 0 auto;
    }
    .catalog-card-img {
        height: 180px;
    }
    .seminarios-intro-text {
        font-size: 15px;
    }
    .catalog-cta-banner h2 {
        font-size: 20px;
    }
    .formacion-track::before {
        left: 37px;   /* 20px padding + 17px to center of 36px circle */
    }
    .formacion-step {
        gap: 16px;
    }
    .formacion-step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .formacion-step-content {
        padding: 18px 20px;
    }
}

/* ==========================================================================
   Video Hero — autoplay video that behaves like a GIF (no controls).
   Inherits sizing from .workshop-image-container via .workshop-hero-img.
   ========================================================================== */
.uw-video {
    pointer-events: none;
    user-select: none;
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* ==========================================================================
   Thank-You Page (page-gracias.php)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero — Confirmation
   -------------------------------------------------------------------------- */
.gracias-hero {
    margin-top: 70px;
    background: var(--bg-light);
    padding: 44px 0 20px;
}

.gracias-hero-inner {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.gracias-icon-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    margin-bottom: 18px;
    animation: gracias-fade-in 0.6s ease-out both;
}

.gracias-icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px -4px rgba(34, 197, 94, 0.35);
}

.gracias-icon-circle .icon {
    width: 32px;
    height: 32px;
    color: #fff;
}

/* "Procesando" state: amber clock instead of the green check, so the icon
   doesn't contradict the headline while the webhook is still in flight. */
.gracias-icon-ring--procesando { background: rgba(245, 158, 11, 0.12); }
.gracias-icon-circle--procesando {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.35);
}

.gracias-hero h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 14px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    animation: gracias-fade-in 0.6s 0.15s ease-out both;
}

.gracias-subtitle {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    animation: gracias-fade-in 0.6s 0.3s ease-out both;
}

.gracias-auto-refresh-note {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.5;
    margin: 14px 0 0;
    opacity: 0.85;
    animation: gracias-fade-in 0.6s 0.45s ease-out both;
}

@keyframes gracias-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Event Summary Card
   -------------------------------------------------------------------------- */
.gracias-resumen {
    background: var(--bg-light);
    padding: 0 0 40px;
    position: relative;
    z-index: 1;
}

.gracias-resumen-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: var(--radius-md);
    padding: 24px 32px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.gracias-resumen-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 16px;
}

.gracias-resumen-details {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.gracias-resumen-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text);
}

.gracias-resumen-item .icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.gracias-resumen-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    padding-top: 20px;
    margin-top: 4px;
}

.gracias-calendar-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gracias-calendar-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gracias-cal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1.5px solid #e2e8f0;
    color: var(--text);
    background: var(--white);
}

.gracias-cal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gracias-cal-btn .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.gracias-recursos-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    padding-top: 16px;
}

.gracias-mundos-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gracias-mv-btn {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.06), rgba(126, 34, 206, 0.1));
    border-color: rgba(147, 51, 234, 0.25);
    color: var(--primary);
}

.gracias-cal-google { border-color: #4285F4; }
.gracias-cal-google:hover { background: #4285F4; color: #fff; }
.gracias-cal-apple { border-color: #333; }
.gracias-cal-apple:hover { background: #333; color: #fff; }
.gracias-cal-outlook { border-color: #0078D4; }
.gracias-cal-outlook:hover { background: #0078D4; color: #fff; }

.gracias-ver-btn {
    margin-top: 12px;
}

.gracias-ayuda .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gracias-ayuda .btn-outline .icon {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   Next Steps — 3-column grid
   -------------------------------------------------------------------------- */
.gracias-pasos {
    background: var(--bg-gray);
    padding: 60px 0;
}

.gracias-pasos h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: var(--dark);
    margin: 0 0 40px;
    letter-spacing: -0.01em;
}

.gracias-pasos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.gracias-paso {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: var(--shadow-sm);
}

.gracias-paso-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.gracias-paso-number {
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
    flex-shrink: 0;
}

.gracias-paso-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(147, 51, 234, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gracias-paso-icon .icon {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.gracias-paso h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px;
    line-height: 1.3;
}

.gracias-paso p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.65;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Need Help — centered minimal section
   -------------------------------------------------------------------------- */
.gracias-ayuda {
    background: var(--bg-gray);
    padding: 0 0 60px;
    text-align: center;
}

.gracias-ayuda p {
    font-size: 17px;
    color: var(--text-light);
    margin: 0 0 24px;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gracias-ayuda .btn-outline {
    text-decoration: none;
    padding: 14px 32px;
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   Explore More — gradient CTA bar
   -------------------------------------------------------------------------- */
.gracias-explorar {
    background: var(--white);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    padding: 52px 0;
    text-align: center;
}

.gracias-explorar h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 20px;
    line-height: 1.3;
}

.gracias-explorar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px -2px rgba(147, 51, 234, 0.3);
}

.gracias-explorar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(147, 51, 234, 0.4);
}

.gracias-explorar-btn .icon {
    width: 16px;
    height: 16px;
    color: #fff;
    transition: transform 0.2s;
}

.gracias-explorar-btn:hover .icon {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Responsive — Thank-You Page
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .gracias-pasos-grid {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .gracias-resumen-card {
        padding: 24px 20px;
    }

    .gracias-resumen-details {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .gracias-calendar-options {
        flex-direction: column;
        width: 100%;
    }

    .gracias-cal-btn {
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }

    .gracias-ver-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .gracias-hero {
        margin-top: 60px;
        padding: 32px 0 16px;
    }

    .gracias-hero h1 {
        font-size: 28px;
    }

    .gracias-subtitle {
        font-size: 16px;
    }

    .gracias-icon-ring {
        width: 64px;
        height: 64px;
        margin-bottom: 14px;
    }

    .gracias-icon-circle {
        width: 46px;
        height: 46px;
    }

    .gracias-icon-circle .icon {
        width: 22px;
        height: 22px;
    }

    .gracias-pasos {
        padding: 44px 0;
    }

    .gracias-pasos h2 {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .gracias-pasos-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        gap: 20px;
    }

    .gracias-paso {
        padding: 28px 24px;
    }

    .gracias-ayuda {
        padding: 0 0 44px;
    }

    .gracias-explorar {
        padding: 44px 0;
    }

    .gracias-explorar h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .gracias-hero {
        padding: 28px 0 12px;
    }

    .gracias-hero h1 {
        font-size: 24px;
    }

    .gracias-subtitle {
        font-size: 15px;
    }

    .gracias-pasos {
        padding: 36px 0;
    }

    .gracias-pasos h2 {
        font-size: 24px;
    }

    .gracias-ayuda .btn-outline,
    .gracias-explorar-btn {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .gracias-explorar-btn {
        justify-content: center;
    }
}

/* ==========================================================================
   Legal Pages — Terms & Conditions, Privacy Policy
   ========================================================================== */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 100px 20px 80px;
    color: var(--text);
    line-height: 1.75;
}

.legal-page h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.legal-updated {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.legal-page h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin: 48px 0 16px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    letter-spacing: -0.01em;
}

.legal-page h2:first-of-type {
    margin-top: 32px;
}

.legal-page h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    margin: 28px 0 10px;
}

.legal-page p {
    font-size: 15px;
    margin: 0 0 14px;
}

.legal-page ul,
.legal-page ol {
    font-size: 15px;
    margin: 0 0 16px;
    padding-left: 24px;
}

.legal-page li {
    margin-bottom: 8px;
}

.legal-page a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-page a:hover {
    color: var(--primary-dark);
}

.legal-page code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--dark);
}

.legal-page strong {
    color: var(--dark);
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 0 0 16px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.legal-table th,
.legal-table td {
    text-align: left;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
}

.legal-table th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--dark);
}

.legal-table td {
    color: var(--text);
}

@media (max-width: 768px) {
    .legal-page {
        padding: 80px 16px 60px;
    }

    .legal-page h1 {
        font-size: 28px;
    }

    .legal-page h2 {
        font-size: 19px;
        margin-top: 36px;
    }
}

/* ==========================================================================
   Inscription Modal — calendar-only registration flow
   ========================================================================== */
.uw-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.uw-modal[hidden] { display: none; }

.uw-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: uwModalFade 0.2s ease;
}

@keyframes uwModalFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.uw-modal-dialog {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.08),
        0 24px 48px -12px rgba(15, 23, 42, 0.20);
    animation: uwModalRise 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    /* dvh adapts when the on-screen keyboard opens; modal scrolls internally if needed. */
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
}

@keyframes uwModalRise {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.uw-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.5);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 0;
    transition: background 0.2s ease;
}
.uw-modal-close:hover { background: rgba(15, 23, 42, 0.85); }

.uw-modal-image-wrap {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #4c1d95, #8b5cf6);
    position: relative;
}

.uw-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bottom gradient overlay with seminar name + date — echoes the
   carousel-caption pattern on the home page. */
.uw-modal-image-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 50px 28px 22px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.uw-modal-image-overlay .uw-modal-seminario {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.uw-modal-image-overlay .uw-modal-fecha {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.uw-modal-body {
    padding: 26px 30px 28px;
}

.uw-modal-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin: 0 0 18px;
    letter-spacing: -0.015em;
    font-feature-settings: "kern" 1, "liga" 1;
}

.uw-modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.uw-modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.uw-modal-field span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.uw-modal-field input,
.uw-modal-field select {
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: var(--dark);
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

/* The [hidden] attr must win over .uw-modal-field's display:flex (e.g. the
   "Otro país" field, revealed by JS only when "Otro" is chosen). */
.uw-modal-field[hidden] {
    display: none;
}

.uw-modal-field input:focus,
.uw-modal-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.12);
}

/* ==========================================================================
   "Organizá tu propio seminario" — CTA blocks, modal extras, info notes
   ========================================================================== */
.uw-modal-intro {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 6px;
}
.uw-modal-note {
    font-size: 12.5px;
    color: var(--text-light);
    line-height: 1.5;
    text-align: center;
    margin: 14px 0 0;
    opacity: 0.85;
}

.organizar-cta {
    padding: 52px 0;
    text-align: center;
}
.organizar-cta .container {
    max-width: 720px;
}
.organizar-cta h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}
.organizar-cta p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}
.organizar-cta--contacto {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.06), rgba(147, 51, 234, 0.02));
    border-radius: var(--radius-lg);
    margin: 0 20px 48px;
    padding: 48px 24px;
}

/* "Organizá" sub-block inside the Próximos eventos section (workshop page) —
   reads as part of that lighter-grey section, with a secondary outline button. */
.proximos-organizar {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.proximos-eventos-list + .proximos-organizar {
    margin-top: 36px;
    padding-top: 34px;
    border-top: 1px solid rgba(147, 51, 234, 0.14);
}
.proximos-organizar h4 {
    font-size: 21px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}
.proximos-organizar p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 22px;
}

/* Secondary "ghost" button — violet border, fills on hover */
.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 999px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-ghost:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(147, 51, 234, 0.25);
}

/* Info notes (PNB / Baleares / payment) */
.seminarios-notas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 760px;
    margin: 22px auto 0;
}
.seminarios-nota {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    font-size: 14.5px;
    color: var(--text-light);
    line-height: 1.6;
    background: rgba(147, 51, 234, 0.05);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin: 0;
    text-align: center;
}
.seminarios-nota .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 1px;
}
.payment-notas {
    margin: 24px auto 0;
    padding: 0 20px;
}
/* Próximos seminarios — subtle date note at the top of the grey events area,
   separated from the list by a hairline divider (no box / no white background). */
.calendar-intro-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 560px;
    margin: 0 auto 24px;
    padding-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    line-height: 1.5;
    border-bottom: 1px solid rgba(147, 51, 234, 0.16);
}
.calendar-intro-note .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--primary);
}

.uw-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.uw-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.2;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.uw-modal-btn[hidden] { display: none; }

.uw-modal-btn .icon { width: 16px; height: 16px; flex-shrink: 0; }

.uw-modal-btn-email {
    background: #fff;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.uw-modal-btn-email:hover { background: rgba(147, 51, 234, 0.06); }

.uw-modal-btn-wa {
    background: #25D366;
    color: #fff;
}
.uw-modal-btn-wa:hover { background: #1ebe5a; }

/* ============================================================================
   Checkout page (page-checkout.php) — pasarela ThriveCart (template moderno
   con marca, ref. "Your logo"): UNA hoja, header de marca centrado dentro de
   la hoja, izquierda formulario / derecha entintada full-height, esquinas
   casi rectas, botón plano en mayúsculas, badges de tarjetas a color.
   Marca solo en: logo del head, violeta del CTA y acentos, tipografía.
   ============================================================================ */
body.page-template-page-checkout,
.checkout-page { background: #eef0f4; }
body.page-template-page-checkout { min-height: 100vh; }

.checkout-section { padding: 26px 0 40px; }

/* Checkout enfocado: se oculta TODO el chrome del sitio (header con nav y
   footer completo). El logo dentro de la hoja lleva al inicio; el footer
   se reemplaza por la línea mínima .checkout-minifooter. */
.page-template-page-checkout header,
.page-template-page-checkout #mobileMenu,
.page-template-page-checkout #site-footer { display: none !important; }

/* La hoja única */
.checkout-sheet {
    max-width: 1020px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e9ecf1;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.09);
    overflow: hidden;
}

/* Header de marca dentro de la hoja (ref 48: "Your logo" centrado) */
.checkout-sheet-head {
    padding: 26px 24px 20px;
    text-align: center;
}

.checkout-brand { display: inline-block; }

.checkout-brand img {
    display: block;
    width: 190px;
    height: auto;
    margin: 0 auto 10px;
}

.checkout-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7684;
    margin: 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid #e5e7eb;
}

/* Móvil: formulario PRIMERO (patrón ThriveCart móvil), resumen y
   testimonios después. Es el orden natural del DOM. */
.checkout-main { padding: 20px 18px 26px; }

/* Badges de confianza (grises, discretos) */
.checkout-badges {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-bottom: 16px;
}

.checkout-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9aa4b2;
}

/* Banda "Estás comprando" + producto en grande (ref 46/48) */
.checkout-comprando {
    background: #f3f5f7;
    border-radius: 9px;
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 14px;
}

.checkout-producto-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 24px;
    padding: 0 2px;
}

.checkout-producto-nombre {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 600;
    color: #374151;
    line-height: 1.25;
}

.checkout-producto-row strong {
    font-size: 21px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

/* Títulos de sección: texto + regla horizontal (firma ThriveCart) */
.checkout-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 13px;
}

.checkout-heading::after {
    content: '';
    flex: 1;
    border-top: 1px solid #e5e7eb;
}

.checkout-fields + .checkout-heading { margin-top: 34px; }

/* Campos: solo placeholder, sin labels (refs 45/46/47) */
.checkout-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.checkout-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkout-fields input {
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d6dbe3;
    border-radius: 9px;
    font-size: 14.5px;
    color: #1f2937;
    font-family: inherit;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-fields input::placeholder { color: #9ca3af; }

/* Etiquetas arriba del campo (patrón industria). El asterisco marca los
   obligatorios (nombre y email) en un rojo suave; apellido es opcional. */
.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkout-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #4b5563;
}

.checkout-req-mark {
    /* Rojo estándar de formularios (Bootstrap/WooCommerce). En tamaño de
       etiqueta: lo prolijo está en el tamaño chico, no en apagar el color. */
    color: #dc3545;
    font-style: normal;
    font-weight: 700;
}

.checkout-fields input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* Método de pago: control segmentado con la opción activa RELLENA en
   oscuro (ref 46). Con un solo método: barra oscura única. */
.checkout-metodos {
    display: flex;
    border: 1px solid #d6dbe3;
    border-radius: 9px;
    overflow: hidden;
    background: #f8f9fb; /* la celda sin opción se lee como slot deshabilitado */
}

.checkout-metodo {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 16px;
    background: #fff;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 600;
    color: #374151;
    transition: background 0.15s ease, color 0.15s ease;
}

/* Método único: barra completa (sin slot vacío al lado) */
.checkout-metodo--unico { flex: 1; }

.checkout-metodo + .checkout-metodo { border-left: 1px solid #d1d5db; }

.checkout-metodo input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-metodo span { flex: 1; text-align: left; }

.checkout-metodo:has(input:checked),
.checkout-metodo--unico {
    background: var(--primary);
    color: #fff;
    cursor: default;
}

.checkout-metodo:has(input:checked) { cursor: pointer; }

/* Logos: versión color en celdas claras, blanca en la celda oscura */
.checkout-logo-paypal-blanco { display: none; }
.checkout-metodo:has(input:checked) .checkout-logo-paypal { display: none; }
.checkout-metodo:has(input:checked) .checkout-logo-paypal-blanco { display: inline; }
.checkout-metodo--unico .checkout-logo-paypal-blanco { display: inline; }

.checkout-metodo-logo { flex-shrink: 0; }

.checkout-redirect-note {
    font-size: 12.5px;
    color: #6b7684;
    margin: 9px 2px 0;
    line-height: 1.5;
}

.checkout-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 13px 16px;
    background: #f3f5f7;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
}

.checkout-total-line strong {
    font-size: 17px;
    color: #1f2937;
}

/* CTA: full-width, MAYÚSCULAS, plano, sin flecha (ref 46) */
.checkout-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    margin-top: 16px;
    padding: 0 20px;
    background: var(--primary);
    color: #fff;
    border: 0;
    border-radius: 11px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(147, 51, 234, 0.32);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.checkout-submit:hover { background: var(--primary-dark); box-shadow: 0 8px 22px rgba(147, 51, 234, 0.38); }
.checkout-submit:active { transform: scale(0.99); }
.checkout-submit.is-loading { opacity: 0.7; cursor: wait; }

/* Cluster de confianza: badges de tarjetas A COLOR, bien visibles (refs 45/46) */
.checkout-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.checkout-paylogo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 26px;
    border: 1px solid #e3e7ed;
    border-radius: 6px;
    background: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.checkout-paylogo-visa { color: #1a1f71; font-style: italic; font-size: 11px; }
.checkout-paylogo-amex { color: #fff; background: #2e77bc; border-color: #2e77bc; font-size: 9px; }

.checkout-paylogo-mc { gap: 0; }
.checkout-paylogo-mc i {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
}
.checkout-paylogo-mc i:first-child { background: #eb001b; }
.checkout-paylogo-mc i:last-child { background: #f79e1b; opacity: 0.92; margin-left: -7px; }

.checkout-paylogo-pp {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    padding: 4px;
    border: 1px solid #e3e7ed;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}

.checkout-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 9px 0 0;
    font-size: 11.5px;
    color: #9aa4b2;
}

/* "¿Qué pasa después del pago?" */
.checkout-despues {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.checkout-despues h3 {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 5px;
}

.checkout-despues p {
    font-size: 13px;
    color: #6b7684;
    line-height: 1.5;
    margin: 0;
}

/* ---- Columna derecha: entintada full-height (ref 46/48) ---- */
.checkout-aside {
    background: #eef1f4;
    border-top: 1px solid #e2e5e9;
}

.checkout-resumen { padding: 20px 20px 0; }

.checkout-imagen {
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 16px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.checkout-imagen img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.checkout-resumen-titulo {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}

.checkout-resumen-dato {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    margin: 0 0 5px;
}

.checkout-resumen-dato .icon {
    width: 14px;
    height: 14px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Escasez real de cupos */
.checkout-cupos {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    padding: 4px 10px;
    background: #fff7e6;
    border: 1px solid #f2dfae;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #a16207;
}

/* Caja "Pago de hoy": blanca con borde sobre el fondo entintado */
.checkout-summary {
    margin: 16px 20px 0;
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 11px;
    padding: 13px 15px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.checkout-summary-label {
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 8px;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    font-size: 13.5px;
    color: #4b5563;
}

.checkout-summary-total {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e8ecf1;
}

.checkout-summary-total strong {
    font-size: 18px;
    color: #1f2937;
}

/* "Lo que recibes" en la columna entintada, con acento violeta fino
   (las reglas divisorias de la ref 48 llevan el acento de marca) */
.checkout-includes { padding: 16px 20px 0; }

.checkout-includes h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
    padding-top: 16px;
    border-top: 2px solid var(--primary-light, #d8b4fe);
}

.checkout-includes ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.checkout-includes li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    line-height: 1.5;
    color: #374151;
}

.checkout-includes li .icon {
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 3px;
}

.checkout-nota {
    font-size: 11.5px;
    color: #8a93a2;
    line-height: 1.5;
    margin: 12px 0 0;
}

/* Testimonios: misma columna entintada, sección plana */
.checkout-testimonios { padding: 16px 20px 22px; }

.checkout-testimonios h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
    padding-top: 16px;
    border-top: 2px solid var(--primary-light, #d8b4fe);
}

.checkout-testimonio {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.checkout-testimonio + .checkout-testimonio {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e5e9;
}

.checkout-testimonio img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.checkout-testimonio-texto {
    font-size: 12.5px;
    line-height: 1.45;
    color: #4b5563;
    margin: 0 0 5px;
    font-style: italic;
}

.checkout-testimonio-autor {
    font-size: 11.5px;
    color: #8a93a2;
    margin: 0;
}

.checkout-testimonio-autor strong { color: #1f2937; }

/* Footer mínimo de checkout */
.checkout-minifooter {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin: 18px 0 0;
}

.checkout-minifooter a {
    color: #9ca3af;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Estado no disponible */
.checkout-unavailable {
    max-width: 520px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid #e9ecf1;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.09);
    padding: 36px 28px;
    text-align: center;
}

.checkout-unavailable p {
    font-size: 15px;
    color: #4b5563;
    margin: 0 0 20px;
}

/* Móvil: un solo "Pago de hoy" (queda el de la izquierda, junto al botón) */
@media (max-width: 899px) {
    .checkout-summary { display: none; }
}

@media (min-width: 900px) {
    .checkout-section { padding: 36px 0 48px; }
    .checkout-sheet-head { padding: 30px 28px 24px; }
    .checkout-brand img { width: 220px; }
    .checkout-grid { grid-template-columns: 58fr 42fr; }
    .checkout-aside { border-top: 0; border-left: 1px solid #e2e5e9; }
    .checkout-main { padding: 26px 32px 32px; }
    .checkout-resumen { padding: 24px 26px 0; }
    .checkout-summary { margin: 16px 26px 0; }
    .checkout-includes { padding: 16px 26px 0; }
    .checkout-testimonios { padding: 16px 26px 24px; }
    .checkout-imagen img { height: 155px; }
}

@media (max-width: 480px) {
    /* Centered (not bottom-anchored). dvh ensures the modal shrinks with the keyboard. */
    .uw-modal { padding: 16px; }
    .uw-modal-dialog { max-width: none; max-height: calc(100dvh - 32px); }
    .uw-modal-image-wrap { height: 190px; }
    .uw-modal-image-overlay { padding: 40px 20px 18px; }
    .uw-modal-image-overlay .uw-modal-seminario { font-size: 18px; letter-spacing: 0.4px; }
    .uw-modal-image-overlay .uw-modal-fecha { font-size: 12px; letter-spacing: 1px; }
    .uw-modal-body { padding: 22px 22px 24px; }
    .uw-modal-actions { grid-template-columns: 1fr; }
}

/* When the viewport is short (e.g., keyboard open on a small phone),
   shrink the image so the form stays visible without scrolling far. */
@media (max-height: 600px) {
    .uw-modal-image-wrap { height: 150px; }
    .uw-modal-image-overlay { padding: 32px 22px 14px; }
    .uw-modal-image-overlay .uw-modal-seminario { font-size: 16px; }
    .uw-modal-image-overlay .uw-modal-fecha { font-size: 11px; }
    .uw-modal-body { padding: 18px 22px 20px; }
    .uw-modal-title { font-size: 17px; margin-bottom: 14px; }
}

/* ============================================================================
   UW-065 — Inline error banner (replaces native alert() on Pagar button).
   Rendered next to the buy button by uwShowInlineBanner() in main.js. Mobile-
   first; widens on >=480px. role="alert" so it announces to screen readers
   immediately on insertion.
   ============================================================================ */
.uw-inline-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    will-change: opacity, transform;
}
.uw-inline-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.uw-inline-banner.is-leaving {
    opacity: 0;
    transform: translateY(-4px);
}
.uw-inline-banner--error {
    background: #fff1f1;
    color: #842029;
    border: 1px solid #f5c2c7;
}
.uw-inline-banner__text {
    flex: 1 1 auto;
    word-break: break-word;
}
.uw-inline-banner__close {
    flex: 0 0 auto;
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    padding: 0 4px;
    margin: -2px -2px 0 0;
    cursor: pointer;
    opacity: 0.75;
    border-radius: 4px;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}
.uw-inline-banner__close:hover,
.uw-inline-banner__close:focus-visible {
    opacity: 1;
    background-color: rgba(132, 32, 41, 0.08);
    outline: none;
}
.uw-inline-banner__close:focus-visible {
    box-shadow: 0 0 0 2px rgba(132, 32, 41, 0.35);
}
@media (prefers-reduced-motion: reduce) {
    .uw-inline-banner {
        transition: none;
        transform: none;
    }
}
@media (min-width: 480px) {
    .uw-inline-banner {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* === Image loading UX (Phase 13C) === */
/* Fade-in for lazy-loaded images to avoid the "progressive paint" visual artifact. */
/* JS toggles .is-loaded on the `load` event (see main.js imageFadeIn IIFE). */

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.35s ease-out;
    background-color: var(--bg-gray, #f3f4f6);
}

img[loading="lazy"].is-loaded {
    opacity: 1;
}

/* Exclude LCP-priority images from the fade — they should appear immediately. */
img[fetchpriority="high"],
img[loading="eager"] {
    opacity: 1 !important;
}

/* ==========================================================================
   Payment / Enrollment Page
   ========================================================================== */

.payment-section {
    padding: 48px 0 80px;
    background: #fff;
}

.payment-layout {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.payment-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 48px;
}

.payment-card {
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 32px 28px;
    text-align: center;
}

.payment-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(147, 51, 234, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.payment-card-icon .icon,
.payment-card-icon svg {
    width: 24px;
    height: 24px;
}

.payment-card h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.payment-bank-details {
    text-align: left;
    margin-bottom: 16px;
}

.payment-bank-details dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
    font-size: 14px;
    line-height: 1.6;
}

.payment-bank-details dt {
    color: var(--text-light);
    font-weight: 600;
    white-space: nowrap;
}

.payment-bank-details dd {
    color: var(--dark);
    margin: 0;
}

.payment-bank-details dd strong {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.payment-bank-note {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    font-style: italic;
}

.payment-paypal-desc {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 24px;
}

.payment-paypal-form {
    margin-bottom: 16px;
}

.payment-paypal-btn {
    width: 100%;
    padding: 14px 32px;
    font-size: 16px;
}

.payment-paypal-note {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.payment-confirmation-note {
    font-size: 15px;
    color: var(--text);
    text-align: center;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 32px;
    padding: 16px 20px;
    background: #faf5ff;
    border: 1px solid #f3e8ff;
    border-radius: var(--radius-sm);
}

/* Donacion en la pagina de pago. Deliberadamente sobrio: es secundario a la
   accion de pagar, asi que usa borde y fondo tenue en vez de un CTA. */
.payment-support {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    max-width: 760px;
    margin: 28px auto 0;
    padding: 22px 26px;
    background: rgba(147, 51, 234, 0.04);
    border: 1px solid rgba(147, 51, 234, 0.14);
    border-radius: 16px;
}

.payment-support-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--primary);
}

.payment-support h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.payment-support p {
    font-size: 14.5px;
    line-height: 1.65;
    color: #4b5563;
    margin: 0;
}

@media (max-width: 480px) {
    .payment-support {
        padding: 18px 20px;
        gap: 12px;
    }
}

.payment-contact {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.payment-contact p {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 16px;
}

.payment-contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.payment-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.payment-contact-link:hover {
    color: var(--primary-dark);
}

.payment-contact-link .icon,
.payment-contact-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* --- Warm closing section --- */

.payment-warm {
    padding: 64px 0 80px;
    background: var(--bg-light);
}

.payment-warm-inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.payment-warm-greeting {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 40px;
    font-style: italic;
}

.payment-worlds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.payment-worlds-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
}

.payment-team-text {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
    max-width: 540px;
    margin: 0 auto 28px;
}

.payment-team-photo {
    max-width: 480px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .payment-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .payment-card {
        padding: 24px 20px;
    }

    .payment-contact-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .payment-warm {
        padding: 48px 0 56px;
    }

    .payment-worlds-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .payment-worlds-grid img {
        height: 180px;
    }

    .payment-warm-greeting {
        font-size: 17px;
    }

    .payment-team-text {
        font-size: 17px;
    }

    .payment-team-photo {
        max-width: 340px;
    }
}
