  /* ===== RESET ===== */
* {
  margin:0; 
  padding:0; 
  box-sizing:border-box; 
  font-family:"Segoe UI", Arial, sans-serif;
}

/* ===== CARD LOGIN ===== */
.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;
}

/* ===== REDES ===== */
.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 GENERAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 15px;
  z-index:2000;
}

.modal.active {
  display: flex;
}

.modal-content.modern-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 25px 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  text-align: center;
  animation: modalFade 0.4s ease;
}

/* SCROLL BONITO */
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: #1b396a;
  border-radius: 10px;
}

/* BOTÓN */
.boton-cerrar {
  background: #d9534f;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  margin: 20px auto 0;
  display: block;
  width: 100%;
  max-width: 220px;
  transition: transform 0.3s, background 0.3s;
}
.boton-cerrar:hover {
  background:#c9302c; 
  transform: scale(1.05);
}

/* ===== CONTACTOS ===== */
.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;
}

/* ===== MANUALES ===== */
.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);
}

/* ===== VIDEO ===== */
.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; }

/* ===== CONTENEDOR ===== */
.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  padding: 20px;
}

/* ===== MODAL AVISOS ===== */
.modal-avisos {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 15px;
  background: rgba(0,0,0,0.7);
  z-index: 1500;
}

.modal-avisos.active {
  display: flex;
}

.modal-avisos .contenido {
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  background: #2c2c2c;
  color: white;
  padding: 25px 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  animation: modalFade 0.4s ease;
  position: relative;
}

.modal-avisos .numero {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 13px;
  opacity: 0.8;
}

.modal-avisos button {
  width: 100%;
  max-width: 260px;
  margin-top: 20px;
  padding: 12px;
  border: none;
  background-color: #ff5e5e;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
}

.modal-avisos button:hover {
  background-color: #ff3b3b;
}

/* ===== ANIMACIÓN ===== */
@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .video-container { max-width: 100%; }
  .card { max-width: 400px; }

  .modal-content.modern-modal {
    padding: 20px 18px;
  }

  .modal-avisos .contenido {
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr; gap: 15px; }

  .modal-content.modern-modal {
    padding: 18px 15px;
  }

  .modal-avisos .contenido {
    font-size: 15px;
  }

  .boton-cerrar,
  .modal-avisos button {
    font-size: 14px;
    padding: 10px;
  }

  .manual-list li a {
    font-size: 14px;
    padding: 10px 15px;
  }
}
#toast-container{
    position:fixed;
    top:20px;
    right:20px;
    display:flex;
    flex-direction:column;
    gap:15px;
    z-index:9999;
}

.toast{
    width: 360px;
    background: #202c33;
    color: #e9edef;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    border-left: 4px solid #25d366;
    position: relative;
    animation: waEntrada 0.35s ease;
    font-family: "Segoe UI", sans-serif;
    transition: all .2s ease;
}

.toast:hover{
    transform: translateY(-2px);
}

.toast h3{
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.toast p{
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
    color:white;
}

.toast .fechas{
    font-size: 11.5px;
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 8px;
    margin-top: 8px;
    color:white;
}

.toast button{
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #25d366;
    color: #111b21;
    font-weight: 600;
    font-size: 13px;
}

.toast button:hover{
    background:#20c05c;
}

@keyframes waEntrada{
    from{opacity:0;transform:translateY(20px) scale(.95);}
    to{opacity:1;transform:translateY(0) scale(1);}
}

@keyframes salida{
    from{opacity:1;}
    to{opacity:0;transform:translateY(20px) scale(.95);}
}

/* BURBUJA */
.rocko-chat-widget .burbuja{
    position:fixed;
    bottom:20px;
    right:20px;
    width:50px;
    height:50px;
    background:#1b396a;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:99999;
    box-shadow:0 10px 25px rgba(0,0,0,.3);
    animation:palpitar 2s infinite;
    border:1px solid white;
}

.rocko-chat-widget .burbuja:hover{
    transform:scale(1.08);
}

.rocko-chat-widget .burbuja img{
    width:75px;
    height:75px;
    object-fit:contain;
}

/* EFECTO BURBUJA */
@keyframes palpitar{
    0%{
        transform:scale(1);
        box-shadow:0 0 0 0 rgba(27,57,106,.6);
    }
    70%{
        transform:scale(1.08);
        box-shadow:0 0 0 15px rgba(27,57,106,0);
    }
    100%{
        transform:scale(1);
    }
}
.tooltip{
    position:absolute;
    right:70px;
    top:50%;
    transform:translateY(-50%);
    background:#fff;
    color:#333;
    padding:10px 14px;
    border-radius:10px;
    width:220px;
    font-size:13px;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
    white-space:normal;
}

.chat{
    position:fixed;
    right:20px;
    bottom:230px;
    width:400px;
    max-width:95vw;
    height:600px;
    max-height:75vh;
    background:#fff;
    border-radius:15px;
    box-shadow:0 15px 35px rgba(0,0,0,.25);
    display:none;
    flex-direction:column;
    overflow:hidden;
    z-index:99998;
}

.chat.activo{
    display:flex;
}

/* HEADER */
.header{
    background:#1b396a;
    color:white;
    padding:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.header-left{
    display:flex;
    align-items:center;
    gap:10px;
}

.header-left img{
        width:75px;
    height:75px;
}

.header h3{
    margin:0;
}

.header span{
    font-size:12px;
}

.cerrar{
    background:none;
    border:none;
    color:white;
    font-size:28px;
    cursor:pointer;
}

/* MENSAJES */
.messages{
    flex:1;
    padding:15px;
    overflow-y:auto;
    background:#f4f6f8;
}

.message{
    max-width:80%;
    padding:10px 14px;
    margin-bottom:10px;
    border-radius:12px;
    word-wrap:break-word;
    font-weight:normal !important;
}

.bot{
    background:white;
    border-left:4px solid #ffcc00;
}

.user{
    background:#6ab04c;
    color:white;
    margin-left:auto;
}

/* INPUT */
.input{
    display:flex;
    gap:10px;
    padding:10px;
    border-top:1px solid #ddd;
}

.input input{
    flex:1;
    padding:10px;
    border:1px solid #ccc;
    border-radius:8px;
}

.input button{
    background:#ffcc00;
    border:none;
    padding:10px 15px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
}

.input button:hover{
    opacity:.9;
}

/* MÓVIL */
@media(max-width:600px){

    .chat{
        width:95%;
        right:2.5%;
        height:70vh;
    }

    .rocko-chat-widget .burbuja{
        width:80px;
        height:80px;
    }

    .rocko-chat-widget .burbuja img{
           width:75px;
    height:75px;
    }
}
/* ================== BURBUJA BUZÓN ================== */

.burbuja-buzon{
    position:fixed;
    bottom:100px; /* arriba de Rocko */
    right:20px;
    width:50px;
    height:50px;
    background:#1877F2;
    border-radius:50%;
    border:1px solid white;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:99999;
    box-shadow:0 10px 25px rgba(0,0,0,.3);
    animation:palpitar 2s infinite;
    text-decoration:none;
}

.burbuja-buzon:hover{
    transform:scale(1.08);
}

.burbuja-buzon img{
    width:75px;
    height:75px;
    object-fit:contain;
}

.tooltip-buzon{
    position:absolute;
    right:70px;
    top:50%;
    transform:translateY(-50%);
    background:#fff;
    color:#333;
    padding:10px 14px;
    border-radius:10px;
    width:220px;
    font-size:13px;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
}