/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    display: flex;
    flex-direction: column; /* Cambiar a columna */
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
}

.subscription-summary {
    background-color: #f0f4f8;
    padding: 30px;
    width: 100%;  /* La columna de la izquierda ocupa el 100% */
    border-bottom: 1px solid #e0e0e0; /* Se coloca un borde inferior para separar */
}

.subscription-summary h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.subscription-summary p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
}

.subscription-summary .price {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.subscription-summary .trial {
    font-size: 20px;
    color: #28a745;
    margin-bottom: 20px;
}

.subscription-summary .details {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.summary-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.subscription-summary .details p {
    margin-bottom: 10px;
}

.summary-text h2 {
    font-size: 20px;
    color: #007bff;
    margin-bottom: 10px;
    font-weight: bold;
}

.summary-text p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    font-weight: bold;
}

.subscription-form {
    width: 100%;  /* Los botones PayPal ahora también ocupan el 100% */
    display: flex;
    justify-content: center;  /* Centrado de los botones */
    padding: 20px;
}


.subscription-form h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.payment-note {
    background-color: #fff4e5; /* Fondo amarillo claro */
    border: 1px solid #ffc107; /* Borde amarillo */
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    color: #856404; /* Texto marrón */
    font-size: 14px;
    line-height: 1.5;
}


/* Nuevas reglas para los selectores */
.form-group select {
    width: 48%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px; /* Espaciado entre los selectores */
}

.form-group select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.checkbox-group {
    margin-bottom: 15px;
    font-size: 14px;
}

.checkbox-group input {
    margin-right: 10px;
}

.btn {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}

.terms {
    font-size: 12px;
    color: #555;
    margin-top: 15px;
    line-height: 1.5;
}

/* Estilo del footer */
.footer {
    display: flex; /* Activar flexbox */
    justify-content: space-between; /* Separar texto y logo */
    align-items: center; /* Alinear elementos verticalmente */
    padding: 20px; /* Espaciado interno */
    border-top: 1px solid #e0e0e0; /* Línea superior */
    margin-top: 20px; /* Espaciado con el contenido anterior */
}

/* Contenedor del texto del footer */
.footer-note {
    font-size: 12px;
    color: #555;
}

/* Contenedor del logo */
.footer-logo img {
    max-width: 100px; /* Tamaño máximo del logo */
    height: auto; /* Mantener proporción */
}

/* Loader container */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none; /* Ocultarlo inicialmente */
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3; /* Color del borde */
    border-top: 5px solid #007bff; /* Color del borde animado */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

/* Texto */
.loader-container p {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

/* Animación de giro */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .subscription-summary {
        width: 100%;
    }

    .subscription-form {
        width: 100%;
    }
}

/* Para pantallas de éxito o error */
.hidden {
    display: none;
}

/* Para pantallas de éxito o error */
.screen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; /* Ajuste para dispositivos pequeños */
    max-width: 500px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none; /* Ocultarlas inicialmente */
}


.screen-content {
    text-align: center;
    color: white;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-in-out;
}

.screen-content h2 {
    margin: 20px 0 10px;
    color: #333;
}

.screen-content p {
    color: #666;
}

.icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-size: cover;
}

.icon.success {
    background-image: url('/images/icono-exito.png'); 
}

.icon.error {
    background-image: url('/images/icono-error.png');
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

