/* Botón con opción de carnet */
.btn-carnet {
    background: linear-gradient(180deg, #e8fbe8 60%, #d2f5d2 100%) !important;
    border-color: #4caf50 !important;
    color: #234 !important;
}
.btn-carnet:hover, .btn-carnet:focus {
    background: linear-gradient(180deg, #d2f5d2 60%, #b6eeb6 100%) !important;
    color: #1a4d1a !important;
    border-color: #388e3c !important;
}
/* Utilidad para ocultar elementos */
.d-none { display: none !important; }
/* Botón principal de continuar en index.html */
.btn-continuar {
    display: inline-block;
    background: linear-gradient(180deg, #fafdff 60%, #e8f0fe 100%);
    color: #234;
    border: 2px solid #3949ab;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(26,35,126,0.07);
    font-size: 1.13rem;
    font-weight: 500;
    padding: 1.1em 2.2em;
    margin-top: 2.2em;
    margin-bottom: 0.5em;
    text-align: center;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
    letter-spacing: 0.01em;
    text-decoration: none;
    outline: none;
    min-width: 180px;
}
.btn-continuar:hover, .btn-continuar:focus {
    background: linear-gradient(180deg, #e8f0fe 60%, #dbeafe 100%);
    color: #1a237e;
    box-shadow: 0 4px 18px rgba(26,35,126,0.13);
    transform: translateY(-2px) scale(1.035);
    text-decoration: none;
}
.payment-info ul { margin-top: 0.5em; }
.mb-1em { margin-bottom: 1em; }
.fs-0-93em { font-size: 0.93em; }
.fs-0-98em { font-size: 0.98em; }
.fs-1-08em { font-size: 1.08em; }
.fw-600 { font-weight: 600; }
.info-msg {
    background: #e3f2fd;
    padding: 1em 2em;
    margin: 1em auto;
    max-width: 500px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}
.mb-1em { margin-bottom: 1em; }
.mt-0-5em { margin-top: 0.5em; }
.hijo-titulo { color: #1a237e; margin-bottom: 0.5em; }
.pagos-grid span.no-suscripcion { font-size: 0.93em; }
.mt-2em { margin-top: 2em; }
.fw-600 { font-weight: 600; }
.fs-1-08em { font-size: 1.08em; }
.fs-0-98em { font-size: 0.98em; }
.mb-0-7em { margin-bottom: 0.7em; }
.selector-hijos-texto { font-size: 1.15em; font-weight: 500; display: block; margin-bottom: 0.7em; }
.btn-block {
    width: 100%;
    justify-content: center;
    gap: 0.7em;
}
.mt-1-2em { margin-top: 1.2em; }
.icon-arrow {
    font-size: 1.3em;
    vertical-align: middle;
}
.btn-block {
    width: 100%;
    justify-content: center;
    gap: 0.7em;
}
.mt-1-2em { margin-top: 1.2em; }
.strech-container { max-width: 420px; margin: 2.5em auto; background: #fff; padding: 2em 2.5em; border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

/* Selector de hijos/as en pagos.php */
.selector-hijos {
    font-size: 1.3em;
    padding: 0.7em 2.2em;
    border-radius: 10px;
    border: 2px solid #1a237e;
    background: #fff;
    color: #1a237e;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.selector-hijos.selector-activo {
    background: #e3e9ff;
    color: #1a237e;
}
.selector-hijos:not(.selector-activo):hover {
    background: #f5f7fa;
}
.selector-hijos:focus {
    outline: 2px solid #3949ab;
}
.selector-hijos + .selector-hijos {
    margin-left: 1.5em;
}
.selector-hijos-group {
    display: flex;
    gap: 1.5em;
    justify-content: center;
    align-items: center;
}
.selector-hijos-texto {
    font-size: 1.15em;
    font-weight: 500;
    display: block;
    margin-bottom: 0.7em;
}
/* Material Symbols para iconos modernos */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined');

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

.info-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1.2em;
    gap: 1em;
}
.info-btn {
    background: #e3e9ff;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(26,35,126,0.07);
    transition: background 0.2s, color 0.2s;
    color: #3949ab;
    font-size: 1.08em;
    font-weight: 500;
    padding: 0.5em 1.1em;
    height: 2.5em;
}
.info-btn .material-symbols-outlined {
    font-size: 1.4em;
    margin-right: 0.2em;
}
.info-btn:hover {
    background: #c5cae9;
    color: #1a237e;
}
.modal-info {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(30,40,80,0.18);
    align-items: center;
    justify-content: center;
}
.modal-info[style*="display: flex"] {
    display: flex !important;
}
.modal-content {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(26,35,126,0.13);
    padding: 2.2em 2em 1.5em 2em;
    max-width: 420px;
    width: 95vw;
    position: relative;
    animation: fadeInUp 0.4s cubic-bezier(.23,1.01,.32,1);
}
.close-modal {
    position: absolute;
    top: 0.7em;
    right: 1em;
    background: none;
    border: none;
    font-size: 2em;
    color: #3949ab;
    cursor: pointer;
    transition: color 0.2s;
}
.close-modal:hover {
    color: #d32f2f;
}

/* Botones Material Design */
.pagos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-bottom: 24px;
    margin-top: 10px;
}
.md-btn {
    background: linear-gradient(180deg, #fafdff 60%, #e8f0fe 100%);
    color: #234;
    border: 2px solid #3949ab;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(26,35,126,0.07);
    font-size: 1.13rem;
    font-weight: 500;
    padding: 1.1em 1.5em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8em;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpBtn 0.7s cubic-bezier(.23,1.01,.32,1) forwards;
    outline: none;
    position: relative;
    overflow: hidden;
    min-height: 4.1em;
    box-sizing: border-box;
    letter-spacing: 0.01em;
}

button.md-btn {
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
}

button.md-btn > * {
    flex: 1 1 100%;
    text-align: center;
}

.md-btn:hover, .md-btn:focus {
    background: linear-gradient(180deg, #e8f0fe 60%, #dbeafe 100%);
    color: #1a237e;
    box-shadow: 0 4px 18px rgba(26,35,126,0.13);
    transform: translateY(-2px) scale(1.035);
}

.md-btn:hover .no-suscripcion, .md-btn:focus .no-suscripcion,
.md-btn:hover .suscripcion-indicador, .md-btn:focus .suscripcion-indicador {
    background: #dbeafe;
    color: #1a237e;
}

.md-btn:active {
    background: #dbeafe;
    color: #1a237e;
}
/* Barra superior personalizada para pagos.php */
.top-bar-pagos {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5em;
    margin-bottom: 2.2em;
    flex-wrap: wrap;
}
.info-accion-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7em;
    min-width: 220px;
}
.selecciona-pago {
    display: flex;
    align-items: center;
    gap: 0.4em;
    background: #f5f7fa;
    border-radius: 8px;
    padding: 0.4em 1em 0.4em 0.7em;
    font-size: 1.13em;
    color: #234;
    box-shadow: 0 1px 4px rgba(26,35,126,0.07);
    font-weight: 500;
}
.flecha-abajo {
    font-size: 1.6em;
    color: #3949ab;
    margin-right: 0.1em;
}
.selecciona-pago-texto {
    font-size: 34px;
    font-weight: 500;
}
.md-btn .icono-pago {
    font-size: 1.35em;
    margin-right: 0.3em;
    margin-left: -0.1em;
    filter: drop-shadow(0 1px 2px #e3e9ff);
}
.suscripcion-btn {
    background: #f0f4ff;
}
.suscripcion-btn:hover {
    background: #e3e9ff;
    color: #1a237e;
    border-color: #1a237e;
}
.suscripcion-indicador {
    display: inline-block;
    background: #3949ab;
    color: #fff;
    font-size: 0.92em;
    border-radius: 8px;
    padding: 0.15em 0.7em;
    margin-left: 0.5em;
    font-weight: 500;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.no-suscripcion {
    display: inline-block;
    background: #3949ab;
    color: #fff;
    font-size: 0.92em;
    border-radius: 8px;
    padding: 0.15em 0.7em;
    margin-left: 0.5em;
    font-weight: 500;
    letter-spacing: 0.5px;
    vertical-align: middle;
}
/* Iconos de pago en los botones */
.icono-pago {
    font-size: 1.25em;
    margin-right: 0em;

}


header {
    width: 100%;
    background: #1a237e;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(26,35,126,0.06);
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeInUp 0.8s cubic-bezier(.23,1.01,.32,1) 0.1s forwards;
    animation-fill-mode: forwards;
}
.logo {
    height: 100px;
    width: auto;
}
main {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
    flex-direction: column;
    gap: 30px;
}
footer {
    width: 100%;
    background: #f5f7fa;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.95rem;
    color: #1a237e;
    opacity: 0;
    transform: translateY(30px);
}
footer {
    width: 100%;
    background: #f5f7fa;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.95rem;
    color: #1a237e;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(.23,1.01,.32,1) 1.1s forwards;
    animation-fill-mode: forwards;
}
footer a {
    color: #1a237e;
    text-decoration: underline;
    font-weight: 500;
}
.container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
    max-width: 80vw;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s cubic-bezier(.23,1.01,.32,1) 0.2s forwards;
}

.strech-container {
    max-width: 600px;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
h2, h1 {
    color: #1a237e;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(.23,1.01,.32,1) 0.5s forwards;
}
p {
    color: #333;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(.23,1.01,.32,1) 0.7s forwards;
}
form {
    text-align: left;
}
label {
    display: block;
    margin-bottom: 0.3rem;
    color: #1a237e;
    font-weight: 500;
}
input[type="text"], input[type="email"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #bdbdbd;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

button:hover, .md-btn:hover, button.md-btn:hover {
    background: #3949ab;
    box-shadow: 0 4px 16px rgba(26,35,126,0.12);
    transform: translateY(-2px) scale(1.03);
    color: #fff
}
@keyframes fadeInUpBtn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.datos-personales-box {
    background: #f5f7fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(26,35,126,0.06);
    padding: 1.1rem 1.2rem 1.1rem 1.2rem;
    margin-bottom: 2rem;
    text-align: left;
    border: 1.5px solid #e3e9ff;
    max-width: 420px;
    margin-left: 0;
    margin-right: auto;
}
.datos-titulo {
    font-size: 1.08rem;
    color: #1a237e;
    font-weight: 600;
    margin-bottom: 0.7rem;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.datos-item {
    font-size: 1.04rem;
    margin-bottom: 0.3rem;
    color: #222;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.pagos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
    margin-top: 10px;
}
@media (max-width: 700px) {
    .pagos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .container {
        padding: 1rem 0.5rem;
    }
}

/* Botón editar pequeño junto a los datos personales */
.editar-form-peq {
    display: inline;
    margin: 0;
}
.editar-btn-peq {
    background: #e3e9ff;
    color: #1a237e;
    border: none;
    border-radius: 50%;
    width: 2.1em;
    height: 2.1em;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 0.3em;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(26,35,126,0.07);
    padding: 0;
}
.editar-btn-peq:hover {
    background: #c5cae9;
    color: #3949ab;
}
/* Estilos para el botón volver si se usa */
.volver-form {
    margin-top: 30px;
    text-align: center;
}
.volver-btn {
    background: #bdbdbd;
    color: #222;
}
.volver-btn:hover {
    background: #888;
    color: #fff;
}


.payment-top {
    display: flex;
    justify-content: space-between;
}

.payment-top ul {
    list-style-type: none;
}

.payment-info {
    text-align: right;
}



.grupo-pagos > h5 {
    text-align: center;
    font-size: 24px;
}







@media (max-width: 600px) {
    .strech-container {
        max-width: 96vw;
    }

    .container {
        max-width: 96vw;
    }

    .payment-top {
        flex-direction: column;
        justify-content: center;;
    }

    .datos-personales-box {
        margin: 0 auto;
    }

    .payment-info {
        text-align: center;
    }

    .payment-info ul {
        padding-left: 0;
    }

    .pagos-grid {
        grid-template-columns: 1fr !important;
    }

    
}