/* 1. reset/mobile-first */
*,*::before,*::after{box-sizing:border-box;}
body{
  margin:0;
  padding:0;
  background:#e5e5e5;
  overflow-x:hidden;
  font-family:Arial,Helvetica,sans-serif;
  font-size:16px;
  line-height:1.4;
}

/* 2. header */
header{
  background:#d32f2f;
  color:#fff;
  padding:15px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
  font-size:0.95rem;
}
header .menu{display:flex;align-items:center;}
header .menu a{
  color:#fff;
  text-decoration:none;
  margin-right:20px;
  font-weight:500;
  font-size:0.9rem;
}
header .menu .icon-button{
  background:transparent;
  border:none;
  padding:0;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
header .menu .icon-button svg{
  width:20px;height:20px;fill:#fff;
}

/* 3. container + card */
.container{padding:16px;}
.card{
  background:#fff;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.1);
  overflow:hidden;
  width:100%;           /* allow fluid resizing */
  max-width:420px;      /* default mobile max */
  margin:40px auto;
}
@media(min-width:641px){
  .card{
    max-width:800px;   /* more room on desktop */
  }
}

/* 4. banner móvil (ahora solo borde) */
.card-image{
  width:100%;
  height:0;                    /* eliminar alto del bloque */
  border-top:8px solid #d32f2f; /* borde rojo fino */
  display:block;
  box-sizing:border-box;
}
@media(min-width:641px){
  .card-image{border:none;}   /* quitar borde en escritorio */
}

/* 5. badge (imagen) */
.badge{
  background:#d32f2f;   /* color rojo para contraste con el check blanco */
  /* removed text color/size; using image instead */
  width:80px;
  height:80px;
  display:flex;
  justify-content:center;
  align-items:center;
  border-radius:50%;
  overflow:hidden;
}
.badge img{
  max-width:100%;
  max-height:100%;
}

/* 6. estructura contenido */
.card-content{
  display:flex;
  flex-wrap:wrap;   /* allow panels to reposition if they don't fit */
  padding:0;
}
@media(min-width:641px){
  .card-content{padding:0;}
}
.left-panel{
  /* always show panel; shrink it on narrow screens so content still fits */
  width:100px;
  background:repeating-linear-gradient(
    135deg,
    #d32f2f,
    #d32f2f 10px,
    #b71c1c 10px,
    #b71c1c 20px
  );
  display:flex;
  justify-content:center;
  align-items:center;
}
@media(min-width:641px){
  .left-panel{width:250px;}   /* larger panel on desktop */
  /* on desktop hide the mobile banner */
  .card-image{display:none;}
}
.right-panel{
  padding:50px 24px;
  flex:1;
}
@media(min-width:641px){
  .right-panel{padding:50px;}
}

.valido{
  border-bottom:3px solid #d32f2f;
  display:inline-block;
  padding-bottom:4px;
  margin-top:20px;
  text-align:left;
}

h1{
  margin-top:20px;
  font-size:26px;
  font-weight:700;
}
@media(min-width:641px){h1{font-size:32px;}}

h3{
  margin-top:10px;
  font-size:20px;
}
@media(min-width:641px){h3{font-size:22px;}}

.fecha{
  margin-top:10px;
  color:#555;
}

.btn{
  display:block;
  width:100%;
  margin-top:20px;
  background:#d32f2f;
  color:#fff;
  padding:12px 0;
  text-decoration:none;
  border-radius:6px;
  font-weight:bold;
  text-align:center;
}
@media(min-width:641px){
  .btn{width:auto;padding:12px 20px;margin-top:2rem;}
}

/* 7. modal login (sin cambios) */
.modal{display:none;position:fixed;z-index:1000;left:0;top:0;width:100%;height:100%;overflow:auto;background:rgba(0,0,0,0.5);}
.modal-content{background:#fff;margin:15% auto;padding:20px;border-radius:8px;max-width:300px;}
.close{float:right;font-size:1.5rem;cursor:pointer;}
.modal-content label{display:block;margin-top:10px;}
.modal-content input{width:100%;padding:6px;margin-top:4px;}
.modal-content button{margin-top:15px;width:100%;padding:8px;background:#d32f2f;color:#fff;border:none;cursor:pointer;}
.error{color:red;font-size:0.9rem;margin-top:10px;}

/* 8. footer */
footer{text-align:center;padding:20px;margin-top:60px;background:#f0f0f0;font-size:0.8rem;}
