/* ================================================
   CSS PARA PÁGINA DE INSCRIPCIONES - EDUTIC 2026
   Agregar después de login.css
   COLORES: --edutic-blue, --edutic-orange, --edutic-dark, --edutic-yellow
   ================================================ */

/* ================================================
   BANNER HERO CON GRADIENTE NARANJA VIBRANTE + FIGURAS GEOMÉTRICAS
   ================================================ */

/* Banner principal de inscripciones - Reemplaza .hero-seccion.hero-login */
.hero-seccion.hero-compra,
.hero-compra {
    background: linear-gradient(135deg, var(--edutic-orange) 0%, #e8551a 50%, var(--edutic-dark) 100%);
    min-height: 280px;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Capa de oscurecimiento sutil para reducir luminosidad */
.hero-seccion.hero-compra::before,
.hero-compra::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 53, 87, 0.15);
    z-index: 1;
}

/* ========================================
   FIGURAS GEOMÉTRICAS DECORATIVAS
   ======================================== */

/* Círculo grande superior derecha */
.hero-seccion.hero-compra::after,
.hero-compra::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(29, 53, 87, 0.25);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}

/* Cuadrado rotado inferior izquierda */
.hero-compra .geo-square {
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: rgba(29, 53, 87, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.15);
    transform: rotate(45deg);
    z-index: 1;
}

/* Triángulo superior izquierda */
.hero-compra .geo-triangle {
    position: absolute;
    top: 50px;
    left: 80px;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 193, 7, 0.15);
    transform: rotate(20deg);
    z-index: 1;
}

/* Hexágono centro derecha */
.hero-compra .geo-hexagon {
    position: absolute;
    top: 40%;
    right: 10%;
    width: 100px;
    height: 57.74px;
    background: rgba(29, 53, 87, 0.18);
    position: absolute;
    z-index: 1;
}

.hero-compra .geo-hexagon::before {
    content: '';
    position: absolute;
    top: -28.87px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 28.87px solid rgba(29, 53, 87, 0.18);
}

.hero-compra .geo-hexagon::after {
    content: '';
    position: absolute;
    bottom: -28.87px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-top: 28.87px solid rgba(29, 53, 87, 0.18);
}

/* Círculo pequeño centro izquierda */
.hero-compra .geo-circle-small {
    position: absolute;
    top: 60%;
    left: 15%;
    width: 80px;
    height: 80px;
    background: transparent;
    border: 3px solid rgba(255, 193, 7, 0.25);
    border-radius: 50%;
    z-index: 1;
}

/* Líneas decorativas diagonales */
.hero-compra .geo-lines {
    position: absolute;
    top: 30%;
    right: 25%;
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(-45deg);
    z-index: 1;
}

.hero-compra .geo-lines::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-compra .geo-lines::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
}

/* Rectángulo superior centro */
.hero-compra .geo-rect {
    position: absolute;
    top: 20px;
    left: 40%;
    width: 150px;
    height: 80px;
    background: rgba(255, 193, 7, 0.08);
    border: 2px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
    transform: rotate(-10deg);
    z-index: 1;
}

/* Puntos decorativos */
.hero-compra .geo-dots {
    position: absolute;
    bottom: 25%;
    right: 30%;
    display: flex;
    gap: 10px;
    z-index: 1;
}

.hero-compra .geo-dots span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: block;
}

.hero-compra .geo-dots span:nth-child(2) {
    background: rgba(255, 193, 7, 0.3);
}

.hero-compra .geo-dots span:nth-child(3) {
    background: rgba(255, 255, 255, 0.15);
}

/* Contenido del banner */
.hero-compra .compra-banner-content,
.hero-compra .login-banner-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.hero-compra .compra-banner-content .title,
.hero-compra .login-banner-content .title {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-compra .compra-banner-content p,
.hero-compra .login-banner-content p {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Badge personalizado para inscripciones */
.badge-compra,
.hero-compra .badge-login {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Fecha del congreso */
.compra-banner-date,
.hero-compra .login-banner-date {
    background: rgba(29, 53, 87, 0.5);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive para banner */
@media (max-width: 991px) {
    .hero-seccion.hero-compra,
    .hero-compra {
        min-height: 240px;
        padding: 120px 0 50px;
    }

    /* Ocultar algunas figuras en tablets */
    .hero-compra .geo-hexagon,
    .hero-compra .geo-rect,
    .hero-compra .geo-lines {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-seccion.hero-compra,
    .hero-compra {
        padding: 100px 0 40px;
    }

    .hero-compra .compra-banner-content .title,
    .hero-compra .login-banner-content .title {
        font-size: 1.5rem;
    }

    .hero-compra::after {
        width: 200px;
        height: 200px;
        top: -50px;
        right: -50px;
    }

    /* Ocultar más figuras en móvil */
    .hero-compra .geo-triangle,
    .hero-compra .geo-circle-small,
    .hero-compra .geo-dots {
        display: none;
    }

    .hero-compra .geo-square {
        width: 120px;
        height: 120px;
        bottom: -40px;
        left: -40px;
    }
}

/* Banner de Compra - Sección de Planes */
.bannercompra {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    margin: 0;
}

/* Cards de Planes - Diseño mejorado */
.bannercompra .card {
    border: 2px solid #e9ecef;
    border-radius: 20px;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    background: white;
}

.bannercompra .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(95, 131, 232, 0.2);
    border-color: var(--edutic-blue);
}

/* Plan destacado - Card especial */
.bannercompra .col:nth-child(3) .card {
    border: 3px solid var(--edutic-orange);
    position: relative;
}

.bannercompra .col:nth-child(3) .card::before {
    content: 'Más Popular';
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--edutic-orange);
    color: white;
    padding: 5px 40px;
    font-weight: 700;
    font-size: 0.75rem;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px rgba(220, 71, 17, 0.3);
    z-index: 10;
}

/* Card Header */
.bannercompra .card-header {
    background: linear-gradient(135deg, var(--edutic-blue) 0%, #4a6fd6 100%);
    color: white;
    padding: 1.5rem;
    border: none;
}

.bannercompra .card-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Card Body */
.bannercompra .card-body {
    padding: 2rem 1.5rem;
    min-height: 400px;
}

.bannercompra .card-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--edutic-dark);
}

.bannercompra .card-body strong {
    color: var(--edutic-blue);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Precio destacado */
.bannercompra .precio {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--edutic-orange);
    margin-top: 1rem;
    display: block;
}

/* Card Footer */
.bannercompra .card-footer {
    background: #f8f9fa;
    border: none;
    padding: 1.5rem;
}

.bannercompra .card-footer .btn {
    width: 100%;
    background: var(--edutic-blue);
    border: none;
    border-radius: 12px;
    padding: 0.9rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: white;
}

.bannercompra .card-footer .btn:hover {
    background: var(--edutic-orange);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 71, 17, 0.3);
}

/* Botón especial para el plan destacado */
.bannercompra .col:nth-child(3) .card-footer .btn {
    background: var(--edutic-orange);
}

.bannercompra .col:nth-child(3) .card-footer .btn:hover {
    background: var(--edutic-blue);
}

/* Sección de Información - Beneficios */
.infocompra {
    padding: 4rem 6rem;
    margin: 0;
    display: flex;
    align-items: center;
}
/*
.infocompra:nth-child(odd) {
    background: white;
}*/
/*
.infocompra:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}
*/
.infocompra h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--edutic-dark);
    margin-bottom: 1.5rem;
}

.infocompra p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #6c757d;
}

/* Videos */
.infocompra video {
    width: 100%;

    background: var(--edutic-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

}

/* Estilos adicionales para el contenedor de Plyr */
.infocompra .plyr {
    width: 642px;
    height: 279px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--edutic-blue);
}

/* Asegurar que el video dentro de Plyr también mantenga el estilo */
.infocompra .plyr__video-wrapper video {
    border-radius: 20px;
}

/* Opcional: Personalizar los controles de Plyr */
.infocompra .plyr--video .plyr__controls {
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.75));
    border-radius: 0 0 17px 17px;
}

/* Opcional: Color del tema de Plyr para que coincida con tu marca */
.infocompra .plyr--full-ui input[type=range] {
    color: var(--edutic-blue);
}

.infocompra .plyr__control--overlaid {
    background: var(--edutic-blue);
}

.infocompra .plyr__control--overlaid:hover {
    background: var(--edutic-blue);
    opacity: 0.9;
}

/* Imágenes decorativas */
.infocompra .box img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(95, 131, 232, 0.2));
}

/* Sección de Contacto */
.infocontacto {
    color: var(--edutic-blue);
    padding: 4rem 2rem;
    margin: 0;
    text-align: center;
}

.infocontacto h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--edutic-blue);
}

.infocontacto p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.infocontacto .btn {
    background: var(--edutic-orange);
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    transition: all 0.3s ease;
}

.infocontacto .btn:hover {
    background: var(--edutic-yellow);
    color: var(--edutic-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
}

/* Enlaces en cards */
.bannercompra .card-body a {
    color: var(--edutic-orange);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bannercompra .card-body a:hover {
    color: var(--edutic-blue);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .bannercompra .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 991px) {
    .bannercompra {
        padding: 2rem 0;
    }

    .bannercompra .card-body {
        min-height: 350px;
        padding: 1.5rem;
    }

    .infocompra {
        padding: 3rem 1.5rem;
    }

    .infocompra h1 {
        font-size: 1.75rem;
    }

    .infocompra p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .bannercompra .col {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .bannercompra .col:nth-child(3) .card::before {
        right: -30px;
        padding: 4px 35px;
        font-size: 0.7rem;
    }

    .bannercompra .card-header h1 {
        font-size: 1.3rem;
    }

    .bannercompra .precio {
        font-size: 2rem;
    }

    .infocompra {
        padding: 2.5rem 1rem;
        flex-direction: column;
    }

    .infocompra .col-md-6 {
        order: 2;
        margin-top: 1.5rem;
    }

    .infocompra .col-md-6:first-child {
        order: 1;
    }

    .infocompra h1 {
        font-size: 1.5rem;
    }

    .infocompra video {
        max-width: 100%;
    }

    .infocontacto h1 {
        font-size: 2rem;
    }

    .infocontacto p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .bannercompra .card-body {
        min-height: auto;
        padding: 1.25rem;
    }

    .bannercompra .card-header {
        padding: 1rem;
    }

    .bannercompra .card-footer {
        padding: 1rem;
    }

    .infocompra {
        padding: 2rem 1rem;
    }

    .infocontacto {
        padding: 3rem 1rem;
    }

    .infocontacto h1 {
        font-size: 1.75rem;
    }

    .infocontacto .btn {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }
}

/* Mejoras de accesibilidad */
.bannercompra .card:focus-within {
    outline: 3px solid var(--edutic-blue);
    outline-offset: 3px;
}

.bannercompra .btn:focus,
.infocontacto .btn:focus {
    outline: 3px solid var(--edutic-yellow);
    outline-offset: 3px;
}

/* Animación sutil al cargar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bannercompra .card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.bannercompra .col:nth-child(1) .card {
    animation-delay: 0.1s;
}

.bannercompra .col:nth-child(2) .card {
    animation-delay: 0.2s;
}

.bannercompra .col:nth-child(3) .card {
    animation-delay: 0.3s;
}

.bannercompra .col:nth-child(4) .card {
    animation-delay: 0.4s;
}



/* ================================================
   CSS COMPACTO PARA FORMULARIO REGISTRO - EDUTIC 2026
   Versión simplificada con inputs más pequeños
   ================================================ */

/* ================================================
   TÍTULO DE REGISTRO
   ================================================ */

.titcompra {
    text-align: center;
    padding: 1rem 0;
    background: #f8f9fa;
    border-bottom: 2px solid var(--edutic-blue);
}

.titcompra h1 {
    color: var(--edutic-dark);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}
.titcompra h2{
    font-size: 1.3rem;
    font-weight: 700;
    color:var(--edutic-orange);
}
/* ================================================
   CARD DE INFORMACIÓN DEL PLAN - COMPACTO
   ================================================ */

.alert-primary {
    background: linear-gradient(135deg, rgba(95, 131, 232, 0.08) 0%, rgba(95, 131, 232, 0.04) 100%);
    border: 2px solid var(--edutic-blue);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 3px 15px rgba(95, 131, 232, 0.1);
}

.alert-primary strong {
    color: var(--edutic-blue);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.75rem;
}

.alert-primary p {
    color: var(--edutic-dark);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.alert-primary small {
    color: #6c757d;
    font-style: italic;
    font-size: 0.8rem;
}

/* ================================================
   CARD DEL FORMULARIO - COMPACTO
   ================================================ */

.card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.card-header {
    background: linear-gradient(135deg, var(--edutic-blue) 0%, #4a6fd6 100%);
    color: white;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
}

.card-body {
    padding: 1.5rem 1.25rem;
    background: white;
}

/* ================================================
   INPUTS COMPACTOS
   ================================================ */

.form-group {
    margin-bottom: 0.75rem !important;
    margin-top: 0 !important;
}

.inscripciones .form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    background: #fafafa;
    height: auto;
}


.inscripciones .form-control::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Select compacto */
.inscripciones select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%235F83E8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px;
    padding-right: 2.5rem;
    cursor: pointer;
    appearance: none;
}

/* Mensajes de error compactos */
.cferror {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    padding-left: 0.25rem;
}

.text-danger {
    color: var(--edutic-orange) !important;
}

/* Input con error */
.inscripciones  .form-control.error {
    border-color: var(--edutic-orange);
    background: #fff8f8;
}

/* ================================================
   BOTÓN DE REGISTRO - COMPACTO
   ================================================ */

.register_side {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

.btncompra {
    display: inline-block;
    background: var(--edutic-orange);
    color: white;
    padding: 0.7rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 3px 12px rgba(220, 71, 17, 0.25);
    border: none;
    cursor: pointer;
}

.btncompra:hover {
    background: #c33d0e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 71, 17, 0.3);
    color: white;
}

.btncompra:active {
    transform: translateY(0);
}

/* ================================================
   LAYOUT RESPONSIVO
   ================================================ */

@media (max-width: 991px) {
    .titcompra h1 {
        font-size: 1.4rem;
    }

    .alert-primary {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .card-header {
        font-size: 1rem;
        padding: 0.85rem 1rem;
    }

    .card-body {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 767px) {
    .titcompra {
        padding: 0.75rem 0;
    }

    .titcompra h1 {
        font-size: 1.25rem;
    }

    .alert-primary {
        padding: 0.85rem;
    }

    .alert-primary strong {
        font-size: 0.95rem;
    }

    .alert-primary p {
        font-size: 0.85rem;
    }

    .card-header {
        font-size: 0.95rem;
        padding: 0.75rem;
    }

    .card-body {
        padding: 1rem 0.85rem;
    }

    .form-group {
        margin-bottom: 0.65rem !important;
    }

    .form-control {
        padding: 0.45rem 0.75rem;
        font-size: 0.85rem;
    }

    .btncompra {
        padding: 0.65rem 2rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .form-control {
        font-size: 0.9rem;
    }

    .register_side {
        padding: 0.75rem 0 0.25rem;
    }
}

/* ================================================
   ESTILOS ADICIONALES PARA MEJORAR USABILIDAD
   ================================================ */

/* Focus más sutil */
.form-control:focus {
    box-shadow: 0 0 0 0.15rem rgba(95, 131, 232, 0.1) !important;
}

.btncompra:focus {
    outline: 2px solid var(--edutic-yellow);
    outline-offset: 2px;
}

/* Mejorar espaciado vertical general */
.row.col-md-8 {
    margin-left: auto;
    margin-right: auto;
}

/* Ajustar altura de card para que sea más compacto */
.card {
    margin-bottom: 1rem;
}

/* ================================================
   PROGRESS BAR - BARRA DE PROGRESO
   ================================================ */

#progressbar {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 2rem 0;
    margin: 2rem 0;
    background: #f8f9fa;
    border-radius: 15px;
    position: relative;
}

#progressbar::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 12%;      /* Ajustado para que conecte bien */
    right: 12%;     /* Ajustado para que conecte bien */
    height: 3px;
    background: #e9ecef;
    z-index: 1;     /* Detrás de los círculos */
}

#progressbar li {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    color: #6c757d;
    font-weight: 600;
}

#progressbar li::before {
    content: '';
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    border: 3px solid #dee2e6;
    display: block;
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
}

#progressbar li.active {
    color: var(--edutic-blue);
}

#progressbar li.active::before {
    background: var(--edutic-blue);
    border-color: var(--edutic-blue);
    box-shadow: 0 0 0 4px rgba(95, 131, 232, 0.2);
}

#progressbar li.active::before {
    content: '✓';
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

#progressbar li a {
    color: inherit;
    text-decoration: none;
}

#progressbar li strong {
    font-weight: 700;
}
