/* css/inicio.css */
:root { 
    --brand-dark: #1a3c5a; 
    --brand-main: #0077b6; 
    --accent: #48cae4; 
    --bg: #f8f9fa; 
    --white: #ffffff; 
}

body { font-family: 'Segoe UI', sans-serif; margin: 0; padding: 0; background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; }

/* NAVEGACIÓN TOTALMENTE RESPONSIVA */
nav { background: var(--white); padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 15px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; box-sizing: border-box; }
.nav-left { display: flex; align-items: center; gap: 15px; }
.nav-logo img { height: 50px; display: block; }
.nav-contact { font-size: 0.9rem; color: var(--brand-dark); font-weight: bold; border-left: 2px solid #ddd; padding-left: 15px; display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; gap: 15px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--brand-dark); font-weight: 600; font-size: 0.85rem; transition: 0.3s; }
.btn-rastrear { border: 1.5px solid var(--brand-main); padding: 8px 15px; border-radius: 20px; color: var(--brand-main) !important; }
.btn-rastrear:hover { background: var(--brand-main); color: white !important; }
.btn-login-nav { background: var(--brand-dark); color: white !important; padding: 8px 15px; border-radius: 20px; cursor: pointer; }
.btn-login-nav:hover { background: var(--brand-main); }

/* HERO SECTION RESPONSIVA */
.hero { background: linear-gradient(rgba(26, 60, 90, 0.6), rgba(26, 60, 90, 0.4)), url('../img/fondo.jpg'); min-height: 45vh; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; text-align: center; padding: 30px 20px; box-sizing: border-box; }
.hero-logo img { width: 120px; height: 120px; border-radius: 50%; border: 3px solid white; margin-bottom: 15px; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.hero h1 { margin: 0 0 10px 0; font-size: 2.5rem; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.hero p { margin: 0; font-size: 1.2rem; font-weight: 300; }

/* GRID INFORMÁTICO RESPONSIVO */
.info-section { padding: 40px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; max-width: 1100px; margin: 0 auto; flex-grow: 1; width: 100%; box-sizing: border-box; }
.info-card { background: white; padding: 30px 20px; border-radius: 15px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid transparent; transition: 0.3s; }
.info-card:hover { transform: translateY(-5px); border-top-color: var(--brand-main); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.info-card i { font-size: 2.8rem; color: var(--brand-main); margin-bottom: 15px; display: block; }
.info-card h3 { margin: 0 0 10px 0; color: var(--brand-dark); font-size: 1.3rem; }
.info-card p { margin: 0; color: #666; font-size: 0.95rem; line-height: 1.5; }

/* FOOTER */
footer { background: var(--brand-dark); color: white; text-align: center; padding: 25px 20px; margin-top: auto; font-size: 0.9rem; line-height: 1.4; }

/* INTERFAZ MODAL DE LOGIN MÓVIL / TÁCTIL */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.75); z-index: 9999; justify-content: center; align-items: center; padding: 15px; box-sizing: border-box; backdrop-filter: blur(3px); }
.modal-content { background: white; padding: 35px 25px; border-radius: 20px; width: 100%; max-width: 360px; text-align: center; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.3); box-sizing: border-box; animation: scaleUp 0.25s ease-out; }
@keyframes scaleUp { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-content input { width: 100%; padding: 14px; margin: 10px 0; border: 1px solid #ccc; border-radius: 10px; box-sizing: border-box; font-size: 1rem; outline: none; transition: 0.3s; }
.modal-content input:focus { border-color: var(--brand-main); box-shadow: 0 0 5px rgba(0, 119, 182, 0.3); }
.btn-ingresar { background: var(--brand-dark); color: white; border: none; width: 100%; padding: 14px; border-radius: 10px; font-weight: bold; cursor: pointer; font-size: 1rem; margin-top: 10px; transition: 0.3s; -webkit-tap-highlight-color: transparent; }
.btn-ingresar:hover { background: var(--brand-main); }

/* BOTÓN FLOTANTE WHATSAPP */
.whatsapp-btn { position: fixed; bottom: 20px; right: 20px; background: #25d366; color: white; width: 55px; height: 55px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 28px; z-index: 1000; text-decoration: none; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: 0.3s; }
.whatsapp-btn:hover { transform: scale(1.1); }

/* DISPOSITIVOS MÓVILES */
@media (max-width: 768px) {
    .nav-contact { display: none; }
    nav { padding: 10px 15px; }
    .hero h1 { font-size: 1.9rem; }
    .hero p { font-size: 1rem; }
    .info-section { padding: 25px 15px; gap: 15px; }
    .info-card { padding: 20px 15px; }
}

@media (max-width: 380px) {
    .nav-links { gap: 8px; }
    .nav-links a { font-size: 0.8rem; padding: 6px 10px; }
    .btn-rastrear { padding: 6px 10px; }
    .btn-login-nav { padding: 6px 10px; }
}