/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Brainstorm Force
Description: Tema hijo personalizado para el proyecto CAPREM.
Version: 1.0.0
Text Domain: astra-child
*/

/* CSS adicional */

.site-logo-img a, /* CAPREM en nav */
.site-title a {
    text-decoration: none !important;
}

#wp-submit,
.btn-caprem-nav {
    color: #fff !important;
    transition: .3s
}

#wp-submit:hover,
.btn-caprem-nav:hover {
    box-shadow: 0 2px 2px rgba(106, 27, 154, .3)
}

/* --- CSS adicional para blog --- */
.paginacion-flechas a { /* Estilo de flechas */
    text-decoration: none;
    background-color: #c4cbe2;
    color: #3d3d3d !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    transition: .3s
}

.paginacion-flechas a:hover {
    background-color: #866080;
    transform: scale(1)
}

.post-card h3 a:hover { /* Estilo de títulos en posts*/
    color: #866080 !important
}

#blog-pagination button {
    background-color: #c4cbe2;
    color: #3d3d3d;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: .2s
}

#blog-pagination button:hover {
    background-color: #866080;
    color: #fff;
    transform: scale(1.03)
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (max-width:710px) {
    .grid-blog {
        grid-template-columns: 1fr !important
    }
}

@media (min-width:711px) and (max-width:1024px) {
    .grid-blog {
        grid-template-columns: repeat(2, 1fr) !important
    }
}

/* --- CSS adicional para botón inicio de sesión --- */
.btn-caprem-nav {
    background-color: #866080;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700
}

.btn-caprem-nav:hover {
    background-color: #55425d
}

/* --- Estilizar el contenedor de cada plan en sección Mi Plan (ID 499) --- */
.page-id-499 .pms-subscription-plan {
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 12px;
    border: 2px solid #d6dceb;
    border-radius: 12px;
    transition: .3s;
    cursor: pointer;
    background-color: #fff
}

.page-id-499 .pms-subscription-plan:has(input[type=radio]:checked) { /* Efecto cuando el plan está seleccionado */
    border-color: #866080;
    background-color: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05)
}

.page-id-499 .pms-subscription-plan input[type=radio] { /* Ocultar el radio button original */
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    outline: 0;
    cursor: pointer;
    transition: .2s
}

.page-id-499 .pms-subscription-plan input[type=radio]:checked { /* Diseño del radio button personalizado al estar marcado */
    border-color: #866080;
    background-color: #fff
}

.page-id-499 .pms-subscription-plan input[type=radio]:checked::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #866080;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.page-id-499 .pms-subscription-plan-label { /* Estilo de texto del plan */
    font-family: inherit;
    font-size: 16px;
    color: #333;
    cursor: pointer
}

.mi-login-especial #pms_login_submit {
    border-radius: 50px !important;
    background-color: #5d445b !important
}

/* --- CSS adicional para Estilo Form Login --- */
label[for=rememberme],
label[for=user_login] { /* reemplazar texto usuario */
    font-size: 0 !important
}

label[for=user_login]:after {
    content: "Usuario o correo electrónico";
    font-size: 15px !important
}

label[for=rememberme] br { /* alinear recordar sesión */
    display: none !important
}

label[for=rememberme] {
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer;
    margin-bottom: 10px
}

label[for=rememberme]:after {
    content: "Recordar sesión";
    font-size: 14px !important;
    margin-left: 8px
}

.login-remember, /* Forzar que el checkbox y el texto no se separen en párrafos distintos */
.login-remember+p {
    display: inline-block !important;
    margin: 0 !important;
    vertical-align: middle !important;
    padding-bottom: 25px
}

#rememberme { /* Estilo general de checkbox */
    cursor: pointer;
    width: 15px !important;
    height: 15px !important;
    accent-color: #866080
}

#wp-submit { /* Estilo botón de login en el form */
    width: 100% !important;
    border-radius: 25px !important;
    background-color: #866080 !important;
    padding: 12px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 16px !important
}

#wp-submit:hover {
    background-color: #55425d !important
}

.login-extra .register { /* Frase de registro */
    font-size: 0 !important;
    text-decoration: none !important;
    display: flex;
    margin-top: 15px;
    justify-content: center
}

.login-extra .register:before {
    content: "¿No tienes una cuenta? | ";
    font-size: 15px !important;
    color: #444 !important
}

.login-extra .register:after {
    content: "Registrarme";
    font-size: 15px !important;
    color: #55425d !important;
    font-weight: 700 !important;
    text-decoration: underline !important
}

#user_login, /* Estilo para los cuadros de usuario y contraseña */
input[type=password],
input[type=text] {
    border: 1px solid #d6dceb !important;
    border-radius: 8px !important;
    padding: 10px !important;
    transition: .3s
}

#user_login:focus, /* hover para los cuadros de usuario y contraseña */
input[type=password]:focus,
input[type=text]:focus {
    border-color: #55425d !important;
    outline: 0 !important;
    box-shadow: 0 0 5px rgba(134, 96, 128, .3) !important
}

.pms-alert, /* Estilo para la caja de error */
.pms-error,
.pms-login-error {
    background-color: #f8f0f7 !important;
    border-left: 5px solid #866080 !important;
    color: #5d445b !important;
    padding: 10px !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important
}

.botones-container,
.caprem-form-registro .caprem-field { /* Estilo para Registro */
    margin-bottom: 20px
}

.caprem-form-registro label {
    display: block;
    font-weight: 600;
    color: #5d445b;
    margin-bottom: 5px;
    font-size: .9rem
}

.caprem-form-registro input[type=email],
.caprem-form-registro input[type=password],
.caprem-form-registro input[type=text] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1b2cc;
    border-radius: 8px;
    background: #fdfafc;
    transition: .3s
}

.caprem-error { /* El estilo de los errores en rojo */
    color: #d9534f;
    font-size: .8rem;
    display: block;
    margin-top: 5px
}

.caprem-form-registro input[type=submit] {
    background: #866080;
    color: #fff;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px
}

/* --- Dashboard usuario sin plan --- */
.aviso-registro-exitoso {
    background-color: #fdfafc;
    border: 2px dashed #d1b2cc;
    padding-top: 60px;
    padding-bottom: 30px;
    border-radius: 15px;
    text-align: center;
    width: 70%;
    margin: 80px auto !important;
    display: block
}

.aviso-registro-exitoso h2 {
    color: #55425d;
    margin-bottom: 30px
}

.aviso-registro-exitoso p {
    color: #866080;
    font-size: 1.1rem;
    margin-bottom: 40px
}

.boton-caprem {
    background-color: #866080;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: background .3s
}

.boton-caprem:hover {
    background-color: #55425d
}

.boton-logout {
    display: inline-block;
    color: #a08da0;
    text-decoration: underline;
    font-size: .9rem;
    font-weight: 500;
    transition: color .3s
}

.boton-logout:hover {
    color: #866080;
    text-decoration: none
}

/* --- PANEL GESTIÓN TERAPEUTA CAPREM --- */
.panel-gestion-terapeuta {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #f1e6ef;
    box-shadow: 0 8px 20px rgba(85, 66, 93, .05);
    overflow: hidden;
    margin-top: 20px
}

.tabla-caprem-terapeuta {
    width: 100%;
    border-collapse: collapse
}

.tabla-caprem-terapeuta th {
    background: #fdfafc;
    color: #55425d;
    padding: 18px;
    text-align: left;
    font-size: .9rem;
    border-bottom: 2px solid #f1e6ef;
    text-transform: uppercase;
    letter-spacing: 1px
}

.tabla-caprem-terapeuta td {
    padding: 18px;
    border-bottom: 1px solid #fdfafc;
    vertical-align: middle
}

.nombre-alumna {
    color: #55425d;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-block
}

.username-subtext {
    color: #a08da0;
    font-size: .85rem;
    font-family: monospace
}

.zoom-link-simple { /* Enlaces y Botones */
    color: #2d8cff;
    font-weight: 600;
    text-decoration: underline
}

.zoom-link-simple:hover {
    color: #1a6edb
}

.sin-link {
    color: #d1b2cc;
    font-style: italic;
    font-size: .85rem
}

.boton-expediente-caprem,
.footer-social-links a {
    color: #fff !important;
    display: inline-block;
    transition: .3s
}

.boton-expediente-caprem {
    background: #866080;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 700;
    border: none
}

.boton-expediente-caprem:hover {
    background: #55425d;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(85, 66, 93, .2)
}

/* --- ESTILOS DEL FOOTER --- */
.footer-brand-section-caprem,
.footer-learn-section-caprem,
.footer-support-section {
    padding: 10px
}

.footer-logo-link {
    text-decoration: none !important;
    display: inline-block
}

.footer-logo-text {
    color: #d1b2cc !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
    transition: opacity .3s
}

.footer-logo-link:hover .footer-logo-text {
    opacity: .8
}

.footer-slogan {
    font-size: 14px;
    color: #fff;
    opacity: .9;
    line-height: 1.5;
    margin-bottom: 25px
}

.footer-social-links {
    display: flex;
    gap: 25px
}

.footer-social-links a {
    font-size: 22px;
    text-decoration: none !important
}

.footer-social-links a:hover {
    color: #d1b2cc !important;
    transform: translateY(-5px)
}

.footer-learn-section-caprem .footer-heading,
.footer-support-section .footer-heading { /* Títulos de las columnas footer */
    color: #d1b2cc !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    text-transform: uppercase;
    letter-spacing: 1px
}

.footer-learn-section-caprem .footer-links-list,
.footer-support-section .footer-links-list { /* Estructura de las listas footer */
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important
}

.footer-learn-section-caprem .footer-links-list li,
.footer-support-section .footer-links-list li {
    margin-bottom: 12px
}

.footer-learn-section-caprem .footer-links-list a,
.footer-support-section .footer-links-list a { /* Estilo de los enlaces */
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    opacity: .8;
    transition: .3s
}

.footer-learn-section-caprem .footer-links-list a:hover,
.footer-support-section .footer-links-list a:hover { /* Efecto Hover compartido */
    opacity: 1;
    color: #d1b2cc !important;
    padding-left: 5px
}

/* --- Contenedor Principal Este espacio es para ti si... Página de Inicio --- */
.caprem-grid-container {
    max-width: 1200px;
    margin: 10px auto;
    padding: 10px
}

.caprem-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px
}

.caprem-card { /* Estilo de Tarjeta CAPREM */
    grid-column: span 2;
    background: #f3f0f4;
    padding: 30px 25px;
    border-radius: 25px;
    text-align: center;
    border: 2px solid #f3f0f7;
    box-shadow: 0 10px 30px rgba(90, 74, 120, .05);
    transition: .4s cubic-bezier(.165, .84, .44, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: .6s forwards capremFadeIn
}

.caprem-card:nth-child(4) {
    grid-column: 2/span 2;
    animation-delay: .4s
}

.caprem-card:nth-child(5) {
    grid-column: 4/span 2;
    animation-delay: .5s
}

.caprem-card:first-child {
    animation-delay: .1s
}

.caprem-card:nth-child(2) {
    animation-delay: .2s
}

.caprem-card:nth-child(3) {
    animation-delay: .3s
}

.caprem-card i { /* Iconos de Bootstrap con color CAPREM */
    font-size: 3rem;
    color: #5a4a78;
    display: block;
    margin-bottom: 10px
}

.caprem-card p {
    color: #4a4a4a;
    font-size: 1.15rem;
    line-height: 1.5;
    margin: 0 !important
}

.caprem-card strong {
    color: #5a4a78;
    font-weight: 600
}

.caprem-card:hover {
    transform: scale(1.08);
    border-color: #d1c4e9;
    box-shadow: 0 20px 40px rgba(90, 74, 120, .12);
    z-index: 5
}

@keyframes capremFadeIn {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (max-width:991px) {
    .caprem-grid {
        grid-template-columns: repeat(2, 1fr);
        display: flex;
        flex-wrap: wrap;
        justify-content: center
    }

    .caprem-card {
        flex: 0 0 calc(45% - 20px);
        margin: 10px
    }
}

@media (max-width:600px) {
    .caprem-card {
        flex: 0 0 100%
    }
}

/* --- Contenedor de Temas para seccion Ser mexicana en Canadá en Página de Inicio --- */
.temas-container {
    max-width: 100% !important;
    margin: 40px auto;
    padding: 0;
    width: 100%
}

.temas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-items: center
}

.tema-card { /* Estilo de la Tarjeta Vertical */
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(90, 74, 120, .08);
    border: 1px solid #f3e5f5;
    transition: .4s cubic-bezier(.175, .885, .32, 1.275)
}

.tema-card:nth-child(3) {
    grid-column: span 2;
    width: 100%;
    max-width: calc(50% - 20px)
}

.tema-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(90, 74, 120, .15)
}

.tema-imagen {
    width: 100%;
    height: 220px;
    overflow: hidden;
    margin-bottom: 10px
}

.tema-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
    display: block
}

.tema-card:hover .tema-imagen img {
    transform: scale(1.1)
}

.tema-cuerpo { /* Contenido de la Tarjeta */
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center
}

.tema-cuerpo h3 {
    color: #55425d;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
    min-height: 3.5rem;
    line-height: 1.2
}

.tema-frase {
    display: block;
    font-style: italic;
    color: #8e7fb3;
    font-size: .95rem;
    margin-bottom: 30px;
    font-weight: 500
}

.tema-cuerpo p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1
}

.btn-tema { /* Botón Ver contenido */
    display: inline-block;
    padding: 12px 25px;
    background-color: #f4f0f4;
    color: #55425d !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #55425d;
    transition: .3s;
    width: fit-content;
    margin: 0 auto
}

.btn-tema:hover {
    background-color: #866080;
    color: #fff !important;
    border: 2px solid #866080
}

.circulo-item:hover,
.paso-item:hover .paso-icono-wrapper {
    border-color: #866080;
    background: #866080
}

/* --- Situaciones en las que podemos acompañarte en página Nosotros --- */
.acompanamiento-section {
    padding: 60px 20px;
    background: #f3f0f4;
    text-align: center;
    border-radius: 25px
}

.acompanamiento-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto
}

.circulo-item {
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(90, 74, 120, .05);
    border: 2px solid #f3e5f5;
    transition: .5s;
    animation: 3s ease-in-out infinite floating
}

.circulo-item:nth-child(2n) {
    animation-delay: 1s
}

.circulo-item:nth-child(3n) {
    animation-delay: 1.5s
}

.circulo-icon {
    font-size: 2.5rem;
    color: #866080;
    margin-bottom: 10px
}

.circulo-item p {
    font-size: .95rem;
    color: #4a4a4a;
    line-height: 1.2;
    margin: 0 !important;
    font-weight: 500
}

.circulo-item:hover {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 15px 35px rgba(90, 74, 120, .3)
}

.circulo-item:hover .circulo-icon,
.circulo-item:hover p,
.paso-item:hover .paso-icono-wrapper i {
    color: #fff
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

/* --- Sección Cómo empezar en 3 pasos en Página Comenzar --- */
.pasos-section {
    padding: 80px 20px;
    text-align: center
}

.pasos-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 0
}

.paso-item {
    flex: 1;
    position: relative;
    padding: 0 20px;
    transition: transform .3s
}

.paso-item:hover {
    transform: translateY(-10px)
}

.paso-numero { /* Burbuja del número */
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #866080;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(74, 20, 140, .3)
}

.paso-icono-wrapper {
    width: 100px;
    height: 100px;
    background: #f3f0f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 2px solid #c9bccd;
    transition: .3s
}

.paso-icono-wrapper i {
    font-size: 2.5rem;
    color: #866080
}

.paso-item h3 {
    color: #5a4a78;
    font-size: 1.3rem;
    margin-bottom: 15px
}

.paso-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5
}

.paso-conector { /* Línea conectora entre pasos */
    flex: 0.5;
    height: 2px;
    background: #e1bee7;
    margin-top: 50px;
    position: relative
}

@media (max-width:768px) {
    .aviso-registro-exitoso {
        width: 90%;
        margin: 50px auto !important
    }

    .temas-grid {
        grid-template-columns: 1fr;
        padding: 0 20px
    }

    .tema-card:nth-child(3) {
        grid-column: span 1;
        max-width: 100%
    }

    .circulo-item {
        width: 160px;
        height: 160px
    }

    .circulo-item p {
        font-size: .85rem
    }

    .pasos-container {
        flex-direction: column;
        gap: 50px
    }

    .paso-conector {
        display: none
    }

    .paso-item {
        width: 100%
    }
}

/* --- Botón para cerrar sesión --- */
.btn-caprem-logout {
    color: #6a1b9a !important;
    font-weight: bold;
    text-decoration: none;
}
.btn-caprem-logout:hover {
    color: #4a148c !important;
}