/* ===== GENERAL ===== */
body {
    font-family: 'Montserrat', sans-serif;
    background: #48A2B7;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.main-wrapper {
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
}

.fondo_1{
  background-color: #48A2B7;
  background-image: url("../img/background_1.png");
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: auto 280px; /* ajusta la altura de la franja */
}
.fondo_2{
  background-color: #48A2B7;
  background-image: url("../img/background_2.png");
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: auto 280px; /* ajusta la altura de la franja */
}

/* BEGIN INDEX */
/* ===== CONTENEDOR ===== */
.container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1300px;      /* ahora más ancho */
    width: 95%;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;              /* antes 60px, ahora más compacto */
}

/* ===== PANEL IZQUIERDO ===== */
.left-panel {
    flex: 1;                /* crece proporcionalmente */
    max-width: 500px;       /* no más de la mitad del ancho */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: #fff;
}
.main-logo {
    width: 334px;           /* un poco más grande */
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}
.tagline {
    background-color: #e4006e;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 15px;        /* un poco más grande */
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}
.description {
    font-size: 20px;        /* más grande */
    line-height: 1.6;
    max-width: 480px;       /* texto más amplio */
    margin-bottom: 50px;
}
.logos {
    display: flex;
    gap: 25px;
    align-items: center;
}
.logos img {
    height: 80px;           /* un poco más grandes */
    object-fit: contain;
}

/* ===== FORMULARIO ===== */
.form-card {
    flex: 1;                /* también crece proporcionalmente */
    max-width: 600px;       /* más grande */
    background: #fff;
    padding: 45px 40px;
    border-radius: 16px;
    box-shadow: 0 6px 28px rgba(35, 57, 93, 0.15);
    display: flex;
    flex-direction: column;
}
.form-card h2 {
    text-align: center;
    color: #184262;
    font-size: 24px;
    margin-bottom: 22px;
}
.form-card input,
.form-card select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #c3c3c3;
    border-radius: 8px;
    font-size: 17px;
    background: #fafbfc;
    box-sizing: border-box;
}
.form-row {
    display: flex;
    gap: 10px;
}
.form-row select {
    flex: 1;
}
.form-card button {
    width: 100%;
    padding: 18px;
    background-color: #e4026e;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: background 0.2s;
}
.form-card button:hover {
  background-color: #d1045c;
}
.form-card small {
    display: block;
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
    color: #888;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 980px) {
    body {
        align-items: flex-start;
    }
    .container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .left-panel {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    .description {
        text-align: center;
    }
    .form-card {
        width: 100%;
        max-width: 600px;
    }
}

/* END INDEX */
/* BEGIN GRUPOS */
/* ===== HEADER FIJO ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  padding: 10px;
  z-index: 1000;
  text-align: left;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
  width: 120px;
  height: auto;
}

/* ===== CONTENEDOR PRINCIPAL ===== */


.main-content {
  min-height: calc(100vh - 100px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 18px;
  margin-top: 0px;
  box-sizing: border-box;
}

/* ===== CAJA BLANCA CON GRUPOS ===== */
.content-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  min-width: 900px;
  margin: 40px auto;
  position: relative;
}

.content-box::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px dashed #E60064;
  border-radius: 15px;
  pointer-events: none;
}

/* ===== CAJA BLANCA CON IFRAME (SIN padding que rompa) ===== */
.content-box-animate {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-width: 900px;
  margin: 60px auto 40px auto;
  padding: 20px;
  position: relative;
}

.content-box-animate::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px dashed #E60064;
  border-radius: 15px;
  pointer-events: none;
  z-index: 1;
}

/* ===== IFRAME dentro de content-box-animate ===== */
.content-box-animate iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 12px;
  display: block;
  z-index: 2;
  background: transparent;
}

/* ===== IFRAME DE SORTEO ===== */
.content-box iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 520px;             /* Altura controlada, ajustable */
  border: none;
  border-radius: 12px;
  margin: 80px auto 40px auto;         /* Espacio superior dentro de la caja */
  margin-bottom: 20px;       /* Espacio inferior antes del borde */
  box-sizing: border-box;
}

.title {
  color: #E60064;
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

.subtitle {
  color: #333;
  font-size: 18px;
  text-align: center;
  margin-bottom: 45px;
  line-height: 1.4;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== GRUPOS ===== */
.groups {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.group-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
  margin-bottom: 24px;
}

.group-icon {
  background: #48A2B7;
  border-radius: 8px;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 0 8px rgba(30, 90, 110, 0.12);
  font-size: 44px;
  color: #fff;
}

.group-title {
  color: #333;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  text-align: center;
}

.group-students {
  color: #555;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
}

/* ===== BOTÓN CONTINUAR ===== */
.continue-btn {
  background: #E60064;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.continue-btn:hover {
  background: #c50052;
}

/* ===== FOOTER BANDAS ===== */
.footer-stripes {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 8px;
  display: flex;
  z-index: 3;
}

.footer-stripes div {
  flex: 1;
  height: 100%;
}

.stripe-azul { background: #6dc7ea; }
.stripe-amarillo { background: #fbb841; }
.stripe-vino { background: #6a2242; }
.stripe-fucsia { background: #f46298; }
.stripe-naranjo { background: #ffbc6a; }
.stripe-verde { background: #507945; }
.stripe-celeste { background: #9cd7ea; }
.stripe-oscuro { background: #23395d; }
.stripe-lima { background: #b7e09e; }
.stripe-azuloscuro { background: #23475d; }

/* ===== COLORES POR GRUPO DINÁMICOS ===== */
.grupo-celeste { background-color: #9cd7ea !important; }
.grupo-azul    { background-color: #045598 !important; }
.grupo-verde   { background-color: #78c679 !important; }
.grupo-naranjo { background-color: #fbb841 !important; }
.grupo-morado  { background-color: #9e77b9 !important; }

/* END GROUPOS */