/* =========================================
   1. ESTILOS BASE Y GENERALES
   ========================================= */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
}

header {
  background-color: #2a68aa;
  color: #fff;
  padding: 20px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo {
  max-width: 280px;
}

.slogan {
  font-size: 18px;
  margin-top: 5px;
}

.title-container {
  text-align: center;
  flex: 1;
}

.main-en {
  font-size: 26px;
  font-weight: bold;
  margin: 0;
}

.notice-en {
  font-weight: bold;
  margin: 5px 0;
  color: #ffeb3b; /* Color resaltado para la advertencia de Florida */
}

/* =========================================
   2. MENÚ DE NAVEGACIÓN
   ========================================= */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #d1d1d1;
}

/* =========================================
   3. BOTÓN TRADUCTOR (FLOTANTE)
   ========================================= */
.language-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0066cc;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  z-index: 3000; /* Siempre por encima */
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: background 0.3s;
}

.language-toggle:hover {
  background: #004d99;
}

/* =========================================
   4. IMAGEN PRINCIPAL Y HORARIOS
   ========================================= */
.image-container {
  position: relative;
  width: 100%;
}

.image {
  width: 100%;
  display: block;
}

.hours-overlay {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.hours-en {
  font-size: 24px;
  font-weight: bold;
}

.hours-en span {
  display: block;
  font-size: 18px;
  color: #00d4ff;
}

/* =========================================
   5. MODALES (LAS SUB-PANTALLAS)
   ========================================= */
.modal {
  display: none; /* Se activa con JS */
  position: fixed;
  z-index: 4000;
  inset: 0;
  background: rgba(0, 0, 0, 0.7); /* Fondo oscuro */
  backdrop-filter: blur(4px);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 40px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  animation: animaModal 0.4s ease-out;
}

@keyframes animaModal {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  color: #888;
}

.close:hover {
  color: #000;
}

/* BOTONES DENTRO DE MODALES */
.modal-content button {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border: none;
  background-color: #2a68aa;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.2s, background 0.3s;
}

.modal-content button:hover {
  background-color: #1e4d80;
  transform: scale(1.02);
}

/* =========================================
   6. MODAL ABOUT US (SOBRE NOSOTROS)
   ========================================= */
.about-modal {
  max-width: 650px;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  border: 3px solid #2a68aa;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
  padding: 30px 40px;
  overflow-y: auto;
  max-height: 80vh;
}

.about-title {
  color: #2a68aa;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #2a68aa;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.about-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  border-left: 5px solid #2a68aa;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.about-text {
  color: #333;
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.about-closing {
  color: #2a68aa;
  font-size: 1.15rem;
  font-weight: bold;
  text-align: center;
  margin-top: 2rem;
  padding: 1.2rem;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 8px;
  letter-spacing: 1.5px;
  border: 2px solid #2a68aa;
  text-transform: uppercase;
}

/* =========================================
   7. CONTENIDO PRINCIPAL Y FOOTER
   ========================================= */
main {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* =========================================
   8. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 10px;
  }
  
  .about-modal {
    margin: 5% auto;
    width: 95%;
    padding: 20px 25px;
  }
  
  .about-title {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }
  
  .about-content {
    padding: 1.5rem;
  }
  
  .about-text {
    font-size: 0.95rem;
  }
  
  .about-closing {
    font-size: 1rem;
    padding: 1rem;
  }
  
  .hours-overlay {
    padding: 15px 20px;
  }
  
  .hours-en {
    font-size: 20px;
  }
}
/* =========================================
   9. BOTÓN DE NOTARIZAR Y TUTORIAL
   ========================================= */

/* Contenedor de horas - AHORA DEBAJO DEL BOTÓN */
.hours-overlay {
    position: absolute;
    top: 120px; /* AHORA DEBAJO DEL BOTÓN */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    padding: 15px 30px;
    border-radius: 10px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.hours-en {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.hours-es {
    font-size: 18px;
    margin: 5px 0 0 0;
}

/* Contenedor para el botón - POSICIONADO ARRIBA */
.notarize-overlay {
    position: absolute;
    top: 30px; /* AHORA ARRIBA */
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    text-align: center;
    z-index: 2;
}

/* Botón de notarizar principal - AHORA ROJO */
.notarize-btn {
    padding: 18px 35px;
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(135deg, #FF5252 0%, #C62828 100%);
    color: white;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 82, 82, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    width: 100%;
    max-width: 550px;
    margin: 10px auto;
    display: block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.notarize-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(255, 82, 82, 0.6);
    background: linear-gradient(135deg, #C62828 0%, #FF5252 100%);
}

.notarize-btn:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 5px 20px rgba(255, 82, 82, 0.4);
}

/* Animación de pulso para el botón - ROJO con MOVIMIENTO */
@keyframes pulse-glow {
    0%, 100% { 
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 25px rgba(255, 82, 82, 0.6); 
    }
    50% { 
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 12px 35px rgba(255, 82, 82, 0.9); 
    }
}

.notarize-btn {
    animation: pulse-glow 3s infinite ease-in-out;
}

/* Contenedor de pasos del tutorial - FUERA DE LA IMAGEN */
.tutorial-steps {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 25px;
    margin: 30px auto;
    border: 2px solid rgba(42, 104, 170, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-out;
    max-width: 700px;
    width: 90%;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tutorial-steps h3 {
    color: #2a68aa;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #2a68aa;
    padding-bottom: 10px;
}

/* Grid de pasos */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.step {
    background: white;
    border-radius: 10px;
    padding: 15px 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.step:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    border-color: #2a68aa;
}

.step-number {
    background: linear-gradient(135deg, #2a68aa, #1e4d80);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 10px;
    font-size: 16px;
}

.step p {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

/* Botón para comenzar */
.start-btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.start-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.6);
    background: linear-gradient(135deg, #219653 0%, #27ae60 100%);
}

.start-btn:active {
    transform: translateY(1px) scale(0.98);
}

/* Efecto de flecha en hover */
.start-btn::after {
    content: '→';
    margin-left: 10px;
    transition: transform 0.3s;
    display: inline-block;
}

.start-btn:hover::after {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .notarize-overlay {
        top: 100px;
        width: 90%;
    }
    
    .hours-overlay {
        top: 25px;
        padding: 12px 20px;
    }
    
    .hours-en {
        font-size: 20px;
    }
    
    .hours-es {
        font-size: 16px;
    }
    
    .notarize-btn {
        padding: 15px 25px;
        font-size: 18px;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .step {
        padding: 12px 8px;
    }
    
    .step p {
        font-size: 12px;
    }
    
    .start-btn {
        padding: 14px 25px;
        font-size: 16px;
    }
    
    .tutorial-steps {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .notarize-overlay {
        top: 90px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .notarize-btn {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .hours-overlay {
        top: 20px;
        padding: 10px 15px;
    }
}

/* =========================================
   10. BADGE "HABLAMOS ESPAÑOL"
   ========================================= */
.spanish-badge {
    position: absolute;
    top: 220px; /* Debajo del horario */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2a68aa 0%, #1e4d80 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(42, 104, 170, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: gentle-pulse-blue 3s infinite ease-in-out;
    z-index: 10;
    letter-spacing: 1px;
}

.spanish-badge .spanish-text {
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes gentle-pulse-blue {
    0%, 100% { 
        transform: translateX(-50%) scale(1); 
        box-shadow: 0 6px 20px rgba(42, 104, 170, 0.4);
    }
    50% { 
        transform: translateX(-50%) scale(1.05); 
        box-shadow: 0 8px 25px rgba(42, 104, 170, 0.6);
    }
}

/* Responsive para badge español */
@media (max-width: 768px) {
    .spanish-badge {
        top: 200px;
        font-size: 16px;
        padding: 10px 25px;
    }
}

@media (max-width: 480px) {
    .spanish-badge {
        top: 170px;
        font-size: 14px;
        padding: 8px 20px;
    }
    
    .notarize-overlay {
        top: 20px; /* Ajustar botón arriba en móvil */
    }
    
    .hours-overlay {
        top: 90px; /* Ajustar horario en móvil */
    }
}
