/* --- Estilos Generales y Reset --- */

@font-face {
    font-family: 'Open Sans';
    src: url("fonts/OpenSans.ttf") format('truetype-variations');
    /* Tu fuente soporta grosores de 300 a 800 */
    font-weight: 300 800;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    color: #333;
}

html, body, button {
    font-family: 'Open Sans', sans-serif;
}

/* --- Contenedor Principal y Fondo --- */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-image: url("fondo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- Contenedor para alinear los paneles --- */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: 820px;
}

.main-container-error {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: 500px;
}

.main-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.copyright {
    color: white;
    text-align: center;
    text-shadow: 0 0 11px black;
}

/* --- Estilos comunes para las tarjetas --- */
.card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-card {
    flex-basis: 50%;
}

.pricing-card {
    flex-basis: 50%;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* --- Logo --- */
.logo {
    margin-bottom: 20px;
}

.logo img {
    max-width: 180px;
    height: auto;
}

/* --- Títulos --- */
.card h1, .card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2c3e50;
    letter-spacing: 1px;
}

/* --- Panel de Precios --- */
.price {
    font-size: 48px;
    font-weight: bold;
    color: #2980b9;
    margin-bottom: 20px;
}

.price .period {
    font-size: 18px;
    font-weight: normal;
    color: #7f8c8d;
}

.features-list {
    list-style: none;
    text-align: left;
    margin-top: 30px;
}

.features-list li {
    margin-bottom: 12px;
    color: #34495e;
    display: flex;
    align-items: center;
}

.features-list svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    fill: #27ae60;
}

/* --- Grupos de Inputs (Usuario y Contraseña) --- */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #7f8c8d;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* --- Alertas --- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* --- Botones --- */
.button-group {
    display: flex;
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.btn {
    padding: 15px;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.1s ease;
    width: 100%;
    border-radius: 8px;
}

.btn:active {
    transform: scale(0.98);
}

.button-group .btn {
    flex: 1;
    border-radius: 0; /* Se quita el borde individual en el grupo */
}

.btn-register {
    background-color: #3498db;
}

.btn-register:hover {
    background-color: #5dade2;
}

.btn-signin {
    background-color: #2980b9;
}

.btn-signin:hover {
    background-color: #3498db;
}

.btn-cta {
    background-color: #27ae60;
}

.btn-cta:hover {
    background-color: #2ecc71;
}

/* --- Media Queries para Responsividad --- */
@media (max-width: 800px) {
    .main-container .main-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 25px 20px;
    }

    .card h1, .card h2 {
        font-size: 20px;
    }

    .btn {
        font-size: 14px;
    }
}