/* ===========================
   1) COLORES Y VARIABLES
=========================== */
:root {
    --custom-brown: #623d24;       /* Café oscuro */
    --custom-yellow: #fcbf4a;      /* Amarillo principal */
    --custom-dark-yellow: #e0a436; /* Amarillo más oscuro */
}

/* ===========================
   2) ESTILOS GENERALES
=========================== */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #ffffff; /* Blanco */
    color: #000000;      /* Texto negro */
    text-align: center;  /* Titulares centrados */
}

a {
    color: var(--custom-brown);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Imagen de fondo (opcional) */
.index-container-background {
    background: url("/static/atardecer.webp") no-repeat center center;
    background-size: cover;
    min-height: 60vh;
    padding: 1rem;
}

/* ===========================
   3) SECCIÓN LOGIN
=========================== */
.container.index-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 2rem;
    flex-wrap: nowrap;
}

.logo {
    width: 300px;
    height: auto;
    margin-right: 1rem;
}

.login-form {
    background: #ffffff;
    padding: 30px 40px;
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 2px solid var(--custom-yellow);
    margin: 0 auto;
}

.login-form h1 {
    font-size: 2em;
    color: var(--custom-brown);
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    display: block;
    margin: 0.75rem auto 15px;
    width: 90%;
    max-width: 350px;
    padding: 12px 15px;
    font-size: 1.05rem;
    border: 2px solid var(--custom-brown);
    border-radius: 8px;
    transition: border-color 0.3s, transform 0.3s;
}
.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    border-color: var(--custom-yellow);
    outline: none;
}

.proicfes-btn {
    background-color: var(--custom-yellow);
    color: var(--custom-brown);
    font-weight: bold;
    cursor: pointer;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    width: 90%;
    max-width: 350px;
    margin: 1rem auto 0 auto;
    display: block;
}
.proicfes-btn:hover {
    background-color: var(--custom-dark-yellow);
    transform: scale(1.03);
}

.proicfes-register-link {
    display: block;
    margin-top: 1rem;
    color: var(--custom-brown);
}

/* ===========================
   4) SECCIÓN DE VENTAJAS (CARRUSEL)
=========================== */
.features-swiper {
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.title-button {
    display: inline-block;
    background-color: var(--custom-yellow);
    color: var(--custom-brown);
    padding: 0.8rem 1.4rem;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Slides de Swiper */
.features-swiper .swiper-slide {
    background: #ffffff;
    border: 2px solid var(--custom-yellow);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: left;
    transition: transform 0.3s;
}
.features-swiper .swiper-slide:hover {
    transform: translateY(-5px);
}

.feature-slide-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 95%;
    margin: 0 auto;
}
.feature-image img {
    max-width: 250px;
    height: auto;
    border-radius: 6px;
    display: block;
}
.feature-text {
    flex: 1;
    text-align: justify;
}
.feature-text h3 {
    color: var(--custom-brown);
    margin-bottom: 0.4rem;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.2rem;
}
.feature-text p {
    font-size: 1.05rem;
    line-height: 1.5;
}

/* MEDIA QUERY para pantallas verticales (por ejemplo <=600px) */
@media (max-width: 600px) {
    .feature-slide-wrapper {
        flex-direction: column; /* Imagen encima, texto abajo */
        align-items: center;
        text-align: center;
    }
    .feature-image img {
        max-width: 90%;
        margin-bottom: 1rem;
    }
}

/* ===========================
   5) SECCIÓN DE PLANES
=========================== */
.plan-section {
    width: 90%;
    max-width: 1200px;
    margin: 3rem auto;
}

.plan-title {
    font-size: 2rem;
    color: var(--custom-brown);
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: bold;
    text-align: center;
}

/* Beneficios comunes */
.plan-intro {
    background: #f9f9f9;  /* Gris claro */
    border: 1px solid var(--custom-yellow);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.plan-intro ul {
    list-style: none;
    margin: 1rem 0;
    padding-left: 1.2rem;
}
.plan-intro li {
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.plan-intro li::before {
    content: "✅";
    color: var(--custom-brown);
    font-weight: bold;
    margin-right: 0.5rem;
    position: absolute;
    left: -1.5rem;
}

/* Contenedor de tarjetas */
.plans-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Tarjeta individual */
.plan-card {
    background: #ffffff;
    border: 2px solid var(--custom-yellow);
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: left;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}

/* Plan popular con borde más grueso */
.plan-popular {
    border: 3px solid var(--custom-dark-yellow);
}

/* Etiqueta en la parte superior, horizontal, por fuera del recuadro */
.plan-badge {
    position: absolute;
    top: -1rem;       /* sale un poco por encima */
    left: 0.75rem;    /* ajusta la posición horizontal */
    background-color: #fcbf4a;
    color: var(--custom-brown);
    font-size: 0.85rem;
    font-weight: bold;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Título del plan: fondo café, texto blanco, centrado */
.plan-name {
    background-color: var(--custom-brown);
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 1.5rem -1.5rem 1rem -1.5rem; /* extiende a los bordes + añade margen sup/inf */
    padding: 0.7rem 0;
    position: relative;
}

/* Precio en color café */
.plan-price {
    font-size: 1.3rem;
    color: var(--custom-brown);
    font-weight: bold;
    margin: 0.5rem 0 1rem;
    text-align: center;
}

/* Cuerpo del plan (descripción justificada) */
.plan-body {
    text-align: justify;
}
.plan-details {
    list-style: none;
    margin: 0;
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}
.plan-details li {
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.plan-details li::before {
    content: "🔹";
    position: absolute;
    left: -1.2rem;
}

/* Botón de compra, centrado, sin uppercase */
.plan-button {
    display: block;
    margin: 0 auto;
    background-color: var(--custom-yellow);
    color: var(--custom-brown);
    padding: 0.6rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
    max-width: 150px;
    text-align: center;
    white-space: nowrap; /* evita partirse en 2 líneas */
    font-size: 1rem;
}
.plan-button:hover {
    background-color: var(--custom-dark-yellow);
    transform: scale(1.04);
}
/* ===========================
   NUEVA REGLA PARA VIDEO
=========================== */
.video-section {
    margin: 2rem auto;
    max-width: 800px;
    border: 2px solid var(--custom-yellow);
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #ffffff;
    text-align: center;
  }
  
  .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Mantiene la relación 16:9 */
    height: 0;
    overflow: hidden;
  }
  
  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  