/*
 * components.css - the reusable pieces that sit inside the layout sections.
 *
 * Same rule as layout.css: every media-query override stays directly under
 * the base rule it overrides. Most of these pairs match on specificity and
 * are decided purely by source order.
 */

/* ==========================================================================
   ZIGZAG ROWS
   ========================================================================== */

.de-fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0px auto;
    gap: 40px;
}

.de-fila.de-fila-inversa { flex-direction: row-reverse; }
.de-col-img { width: 55%; }
.de-col-txt { width: 45%; }

/* Rows stack, and both columns go full width and centred. */
@media (max-width: 768px) {
    .de-fila,
    .de-fila.de-fila-inversa {
        flex-direction: column;
        gap: 0px;
        margin: 0px auto;
    }

    .de-col-img,
    .de-col-txt {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   IMAGES AND LOGOS
   ========================================================================== */

.de-imagen-fluida {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Inline SVG marks. An <svg> with a viewBox and no width attribute has no
   intrinsic size to fall back on, so it is given one here; height follows
   the viewBox ratio. Sizing and placement stay on whatever class is passed
   in, which is what lets one file serve the header pill and a landing page. */
.de-logo-svg {
    max-height: 100px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: block;
}

.de-logo-destacado {
    
}

@media (max-width: 1024px) {
    .de-logo-destacado {
        
    }
}

/* ==========================================================================
   LOOSE CONTAINERS
   ========================================================================== */

.de-contenedor-boton,
.de-contenedor-cierre,
.de-contenedor-registro {
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin: 40px auto 20px auto;
}

/* Recovery box (autologin). Hidden until the JS in funnel.js reveals it. */
.de-contenedor-rescate {
    display: none;
    margin-top: 40px;
    padding: 25px;
    background-color: var(--de-surface-color);
    border-radius: 12px;
    box-shadow: var(--de-shadow-soft);
}

/* ==========================================================================
   PRIMARY BUTTON
   ========================================================================== */

.de-boton {
    display: inline-block;
    background-color: var(--color-acento);
    color: var(--color-fondo);
    padding: 16px 36px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.de-boton:hover {
    background-color: var(--color-primario);
    color: var(--color-fondo);
    transform: translateY(-2px);
}

/* Full-width tap target on phones. */
@media (max-width: 768px) {
    .de-boton {
        font-size: 18px;
        padding: 14px 28px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   LISTS
   ========================================================================== */

.de-lista-beneficios {
    list-style: none;
    padding: 0;
    margin: 0;
}

.de-lista-beneficios li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

/* currentColor rather than a fixed off-white: the bullet then works on any
   background the list is dropped onto, not only the coloured half. */
.de-lista-beneficios li::before {
    content: "•";
    color: currentColor;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
    line-height: 1.2em;
}

/* List with emoji/icon markers. */
.de-lista-iconos {
    list-style: none;
    padding: 0;
    margin: 0;
}

.de-lista-iconos li {
    margin-bottom: 15px;
    font-size: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Both lists centre themselves once the halves stack. */
@media (max-width: 1024px) {
    .de-lista-beneficios li {
        padding-left: 0;
    }

    .de-lista-beneficios li::before {
        display: none;
    }

    .de-lista-iconos li {
        justify-content: center;
    }
}

/* ==========================================================================
   VERTICAL VIDEO (YouTube Shorts)
   ========================================================================== */

.de-contenedor-video-vertical {
    width: 100%;
    max-width: 350px;
    margin: 35px auto;
    overflow: hidden;
    box-shadow: var(--de-shadow-deep);
    background-color: var(--de-black);
}

/* No border-radius, deliberately: a rounded clip on a YouTube iframe makes it
   unclickable in Chrome. Same bug bit chantnow.com. */
.de-contenedor-video-vertical iframe {
    width: 100%;
    aspect-ratio: 9 / 16;
    display: block;
    border: none;
}

/* ==========================================================================
   ARTICLE BODY
   ========================================================================== */
/* Shared by single.php and page-bienvenida-5-pasos.php, so it belongs here
   rather than in a page module. */

.de-cuerpo-articulo {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    padding-top: 35px;
}

.de-cuerpo-articulo p,
.de-cuerpo-articulo h2,
.de-cuerpo-articulo h3,
.de-cuerpo-articulo img {
    margin-bottom: 35px;
}

/* ==========================================================================
   MISCELLANEOUS
   ========================================================================== */

.de-copyright {
    font-size: 14px;
    margin-top: 30px;
    opacity: 0.7;
}
