 * {
  margin:0; 
  padding:0; 
  box-sizing:border-box; 
  font-family:"Segoe UI", Arial, sans-serif;
}
.card {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    padding:30px;
    border-radius:20px;
    width:90%;
    max-width:420px;
    text-align:center;
    color:white;
    box-shadow:0 8px 25px rgba(0,0,0,0.5);
    animation: fadeIn 0.8s ease-in-out;
}
.card img {width:65%; margin-bottom:15px;}
.card h2 {margin-bottom:15px; font-weight:600; letter-spacing:1px;}
.input-group {margin:12px 0; position:relative;}
input {
    width:100%;
    padding:14px;
    border:none;
    border-radius:12px;
    font-size:15px;
    background:#1b396acc;
    color:white;
}
input::placeholder {color:#ddd;}
input:focus {outline:2px solid #1ec658;}
.password-container {position:relative;}
.toggle-password {
    position:absolute; top:50%; right:12px;
    transform:translateY(-50%);
    cursor:pointer; font-size:18px; color:#ccc;
}
.alerta-error {
    background:#e74c3c;
    padding:10px;
    border-radius:8px;
    margin:10px 0;
    font-size:14px;
    font-weight:bold;
    animation: shake 0.4s;
}
@keyframes shake {
    25%{transform:translateX(-4px);}
    50%{transform:translateX(4px);}
    75%{transform:translateX(-4px);}
}
input[type="submit"]{
    margin-top:15px;
    background:#1ec658;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}
input[type="submit"]:hover{background:#17a84d;}
label {font-size:13px; display:block; margin:12px 0; text-align:center;}
label a {color:#1ec658; text-decoration:none; font-weight:bold;}
label a:hover{text-decoration:underline;}
small {display:block; margin-top:15px; color:#ccc;}
.social-container {display:flex; justify-content:center; gap:12px; margin-top:20px;}
.social-icon {
    width:40px; height:40px; border-radius:50%;
    display:flex; justify-content:center; align-items:center;
    font-size:18px; color:white; text-decoration:none;
    transition:0.3s; box-shadow:0 4px 10px rgba(0,0,0,0.4);
}
.social-icon:hover {transform:scale(1.1);}
.facebook {background:#1877F2;}
.twitter {background:#1DA1F2;}
.instagram {background:linear-gradient(45deg, #833AB4, #FD1D1D, #FCAF45);}
.tiktok {background:#000;}
.google {background:linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853);}
.telefono {background:#d7c2a0;}
.manual {background:#1b396a;}
@keyframes fadeIn {from{opacity:0;transform:translateY(-20px);} to{opacity:1;transform:translateY(0);}}

.modal {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index:2000;
}
.modal-content.modern-modal {
    background: #fff;
    border-radius: 20px;
    padding: 30px 40px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    text-align: center;
    animation: fadeIn 0.5s ease;
    overflow: hidden;
}
.boton-cerrar {
    background: #d9534f;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    margin-top: 15px;
    transition: transform 0.3s, background 0.3s;
}
.boton-cerrar:hover { background:#c9302c; transform: scale(1.05); }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.contact-card {
    background: #1b396a;
    color: #fff;
    padding: 15px;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.contact-card h3 { margin-bottom: 10px; font-size: 16px; }
.contact-card p { font-size: 14px; }
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.horario { font-weight: bold; margin-top: 15px; color: #333; }

.manual-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}
.manual-list li a {
    display: block;
    padding: 12px 20px;
    background: #1b396a;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}
.manual-list li a:hover {
    background: #16325a;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

@media(max-width:480px) {
    .contact-grid { grid-template-columns: 1fr; gap: 15px; }
    .manual-list li a { font-size: 14px; padding: 10px 15px; }
    .modern-modal { padding: 20px 20px; }
}

h1 { color: #333; }

.video-container {
  max-width: 700px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}
video { width: 100%; height: auto; display: block; }

.main-container {
    display: flex;
    flex-direction: column; /* columna siempre */
    align-items: center;
    gap: 30px;
    width: 100%;
    padding: 20px;
}
/* RESPONSIVE: en pantallas chicas, columna */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        align-items: center;
    }
    .video-container {
        max-width: 100%;
    }
    .card {
        width: 100%;
        max-width: 400px;
    }
}
  /* MODAL AVISOS MODIFICADO */
  .modal-avisos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    z-index: 1500; /* Debajo del formulario */
  }

  .modal-avisos.active {
    display: flex;
  }

  .modal-avisos label {
      color: white;
      font-size: 18px;
      background-color: #333;
      padding: 30px;
      border-radius: 10px;
      max-width: 600px;
      width: 90%;
      text-align: center;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
      cursor: pointer;
  }