/* ===== RESET Y ESTILOS BASE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.main-wrapper {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* ===== SECCIÓN DEL FORMULARIO ===== */
.form-section {
    display: flex;
    justify-content: center;
    padding: 30px 0;
    width: 100%;
}

.phone-input-container {
    width: 100%;
    max-width: 600px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.phone-input-container h2 {
    font-family: 'Oswald', sans-serif;
    color: #26619c;
    font-size: clamp(24px, 5vw, 32px);
    margin-bottom: 30px;
}

.phone-input-group {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
}

.country-code-wrapper {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 0 12px;
    border: 2px solid #26619c;
    border-right: none;
    border-radius: 10px 0 0 10px;
    min-width: 130px;
    flex-shrink: 0;
    height: 60px;
}

.flag {
    width: 24px;
    height: 18px;
    margin-right: 8px;
    border-radius: 3px;
}

select {
    height: 100%;
    border: none;
    background: transparent;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 700;
    color: #333;
    outline: none;
    appearance: none;
    cursor: pointer;
    width: 100%;
    min-width: 0;
    padding: 0 5px;
}

input[type="tel"] {
    flex: 1;
    min-width: 0;
    height: 60px;
    padding: 0 15px;
    border: 2px solid #26619c;
    border-left: none;
    border-radius: 0 10px 10px 0;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 700;
    outline: none;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-submit {
    width: 100%;
    margin-top: 25px;
    padding: 16px;
    background-color: #26619c;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #1a4d7a;
    transform: translateY(-2px);
}

.error-message {
    color: #d32f2f;
    font-size: clamp(14px, 3vw, 16px);
    margin-top: 15px;
    font-weight: 500;
    height: 20px;
}

/* ===== SECCIÓN TESTIMONIOS ===== */
.testimonials-section {
    padding: 50px 0;
    margin-top: 30px;
    width: 100%;
}

.testimonials-section h2 {
    font-family: 'Oswald', sans-serif;
    color: #26619c;
    font-size: clamp(24px, 5vw, 32px);
    text-align: center;
    margin-bottom: 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid #26619c;
}

.testimonial-author h3 {
    font-family: 'Oswald', sans-serif;
    color: #333;
    font-size: 18px;
    margin: 0;
}

.testimonial-author p {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.testimonial-text {
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-rating {
    color: #FFD700;
    font-size: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #26619c;
    color: white;
    padding: 20px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright {
    font-weight: 400;
}

.server-status {
    margin-left: auto;
}

.neon-text {
    color: #00ff00;
    font-weight: 700;
    text-shadow: 
        0 0 5px #00ff00,
        0 0 10px #00ff00,
        0 0 20px #00ff00;
    animation: neon-glow 1.5s ease-in-out infinite alternate;
}

@keyframes neon-glow {
    from {
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00;
    }
    to {
        text-shadow: 
            0 0 10px #00ff00,
            0 0 20px #00ff00,
            0 0 30px #00ff00;
    }
}

/* ===== SECCIÓN DE PROGRESO ===== */
.progress-section {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.progress-container {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress {
    height: 100%;
    background-color: #26619c;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-message {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    min-height: 24px;
}

.progress-percent {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #26619c;
}

.result-section {
    text-align: center;
    margin-top: 30px;
}

/* ===== CONSULTA DE ID ===== */
.consultar-container {
    margin-top: 25px;
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.btn-consultar {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
}

.btn-consultar:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

#consulta-form {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.tracking-input {
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #26619c;
    border-radius: 8px;
    flex-grow: 1;
    max-width: 250px;
    font-family: 'Roboto', sans-serif;
}

#buscar-btn {
    padding: 12px 20px;
}

/* Resultados de consulta */
.tracking-result {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: left;
}

.tracking-result h3 {
    color: #26619c;
    margin-bottom: 15px;
    font-family: 'Oswald', sans-serif;
}

.tracking-result p {
    margin: 10px 0;
    font-size: 16px;
}

.error {
    color: #dc3545;
    font-weight: bold;
}

.status-success {
    color: #28a745;
    font-weight: bold;
}



/* Estilos para la advertencia de verificación */
.verification-warning {
    background-color: #fff3cd; /* Amarillo claro */
    color: #856404; /* Amarillo oscuro */
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #ffc107;
    font-size: 15px;
}

.btn-verify {
    background-color: #d4edda; /* Verde claro */
    color: #155724; /* Verde oscuro */
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 10px 5px;
    display: inline-block;
    font-weight: bold;
    border: 2px solid #28a745;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 600px) {
    .phone-input-container {
        padding: 20px;
    }
    
    .country-code-wrapper {
        min-width: 120px;
        padding: 0 8px;
    }
    
    select {
        font-size: 16px;
    }
    
    input[type="tel"] {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .btn-submit {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    #consulta-form {
        flex-direction: column;
    }
    
    .tracking-input,
    .btn-consultar,
    #buscar-btn {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 400px) {
    .country-code-wrapper {
        min-width: 110px;
    }
    
    select, input[type="tel"] {
        font-size: 15px;
    }
    
    .flag {
        width: 20px;
        height: 15px;
    }
}

@media (max-width: 350px) {
    .phone-input-group {
        font-size: 14px;
    }
    
    .country-code-wrapper {
        min-width: 100px;
    }
    
    input[type="tel"]::placeholder {
        font-size: 13px;
    }
}

/* Estilos para verificación */
.verification-container {
    margin-top: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.verification-message {
    color: #333;
    font-size: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.verification-status {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}

.verification-waiting {
    color: #c62828; /* Rojo oscuro */
    font-weight: bold;
    margin-right: 5px;
}

.dots-animation::after {
    content: '.';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

.btn-verify {
    background-color: #a5d6a7; /* Verde claro */
    color: #1b5e20; /* Verde oscuro */
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
    font-weight: bold;
}

.btn-verify:hover {
    background-color: #81c784;
    transform: translateY(-2px);
}

/* Estilo para el botón final */
#final-show-btn {
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
}

/* Transición suave para la sección de verificación */
#verification-section {
    transition: all 0.5s ease;
    overflow: hidden;
}

 .audio-player {
      background: #ffffff;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      max-width: 300px;
      width: 90%;
      text-align: center;
    }
    audio {
      width: 100%;
      outline: none;
    }
