/* ==========================================
   RESET Y VARIABLES - PQRS
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(189deg, rgba(4, 12, 56, 1) 28%, rgba(21, 21, 87, 1) 49%, rgba(4, 12, 56, 1) 79%);
    --footer-gradient: linear-gradient(90deg, #0a0f2c, #0d1b4c);
    --primary-dark: #040c38;
    --primary-blue: #0d47a1;
    --secondary-blue: #1976d2;
    --white: #ffffff;
    --text-dark: #333;
    --text-medium: #555;
    --text-light: #777;
    --border-light: #e5e5e5;
    --border-input: #ccc;
    --hover-blue: #2c3e91;
    --bg-gradient: linear-gradient(135deg, #e3f2fd, #ffffff);
    --success-green: #10b981;
    --danger-red: #ef4444;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-lg: 0 5px 15px rgba(0, 0, 0, 0.4);
    --transition-base: 0.3s ease;
    --color-principal: #000657; 
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* ========== CONTAINER ========== */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ========== HERO ========== */
.hero {
    position: relative; 
    min-height: 500px;
    background-image: url('/src/assets/img/guardia1.jpg');
    background-size: cover; 
    background-position: center;
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 80px 20px;
}

.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(1, 23, 110, 0.75); 
    z-index: 1; 
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    text-align: center; 
    max-width: 900px; 
    animation: fadeInUp 0.8s ease; 
    
    /* CAMBIO: Asegura que los botones se apilen verticalmente */
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero-icon { 
    width: 90px; height: 90px; background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(10px); border-radius: 50%; display: inline-flex; 
    align-items: center; justify-content: center; margin-bottom: 25px; 
    border: 3px solid rgba(255, 255, 255, 0.3); animation: pulse 2s infinite; 
}

@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); } 50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); } }

.hero-icon i { font-size: 40px; color: var(--white); }

.hero-title { 
    color: var(--white); font-size: clamp(2.5rem, 5vw, 3.5rem); 
    margin-bottom: 15px; font-weight: 900; letter-spacing: 3px; 
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3); 
}

.hero-subtitle { color: rgba(255, 255, 255, 0.95); font-size: 1.2rem; margin-bottom: 30px; }

.hero-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 12px; 
    background: var(--white); 
    color: var(--primary-dark); 
    padding: 15px 35px; 
    border-radius: 30px; 
    text-decoration: none; 
    font-size: 1.1rem; 
    font-weight: 700; 
    transition: all var(--transition-base); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); 
    
    /* CAMBIO: Espacio entre botones y ancho consistente */
    margin-bottom: 20px; 
    min-width: 320px;
    justify-content: center;
}

/* Evita margen extra en el último botón */
.hero-btn:last-of-type {
    margin-bottom: 0;
}

.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); background: #f8f9fa; }
.hero-btn i { font-size: 1.3rem; }

/* ========== DEFINICIONES PQRS ========== */
.pqrs-definitions { padding: 70px 20px; background: var(--white); }
.section-title { text-align: center; font-size: clamp(1.5rem, 3vw, 1.8rem); font-weight: 800; margin-bottom: 50px; color: #282b5c; position: relative; padding-bottom: 20px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--primary-gradient); border-radius: 2px; }

.definitions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; max-width: 1200px; margin: 0 auto; }
.definition-card { padding: 30px 25px; border-radius: 20px; background: var(--primary-gradient); color: var(--white); box-shadow: var(--shadow-lg); transition: all var(--transition-base); text-align: center; }
.definition-card:hover { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6); }
.card-icon { width: 60px; height: 60px; margin: 0 auto 20px; background: rgba(255, 255, 255, 0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255, 255, 255, 0.3); }
.card-icon i { font-size: 28px; color: var(--white); }
.card-title { font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 15px; }
.card-description { font-size: 0.95rem; color: #e2e8f0; line-height: 1.6; }

/* ========== FORMULARIO ========== */
.pqrs-form-section { padding: 60px 20px 100px; background: var(--bg-gradient); }
.pqrs-container { max-width: 800px; margin: 0 auto; background: var(--white); padding: 40px; border-radius: 12px; box-shadow: var(--shadow-md); }

.pqrs-header { text-align: center; margin-bottom: 35px; }
.pqrs-img { width: 100%; max-height: 200px; object-fit: cover; border-radius: 10px; margin-bottom: 20px; }
.form-title { margin-bottom: 15px; color: var(--primary-blue); font-size: 2rem; font-weight: 800; }
.form-description { color: var(--text-medium); font-size: 14px; line-height: 1.6; }

.pqrs-form .form-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }

label { margin-bottom: 8px; font-weight: 600; color: var(--text-dark); display: flex; align-items: center; gap: 8px; }
label i { color: var(--primary-blue); font-size: 14px; }
.required { color: var(--danger-red); font-weight: 700; }

input, select, textarea { padding: 12px; border-radius: 6px; border: 1px solid var(--border-input); font-size: 14px; font-family: inherit; transition: 0.2s; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--secondary-blue); outline: none; box-shadow: 0 0 0 2px rgba(25,118,210,0.1); }

small { font-size: 12px; color: var(--text-light); margin-top: 5px; display: block; }

.form-check { display: flex; gap: 10px; align-items: flex-start; }
.form-check-input { width: 20px; height: 20px; margin-top: 2px; cursor: pointer; flex-shrink: 0; }
.form-check-label { font-size: 13px; color: var(--text-medium); font-weight: 400; line-height: 1.5; cursor: pointer; }

.btn-enviar { width: 100%; padding: 14px; background: var(--primary-gradient); color: var(--white); border: none; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 5px 15px rgba(4, 12, 56, 0.3); }
.btn-enviar:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(4, 12, 56, 0.4); }
.btn-enviar i { font-size: 18px; }

/* ========== BOTÓN VOLVER ARRIBA ========== */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--primary-gradient); color: var(--white); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; opacity: 0; visibility: hidden; transition: all var(--transition-base); z-index: 999; box-shadow: 0 5px 20px rgba(4, 12, 56, 0.3); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(4, 12, 56, 0.4); }

@media (max-width: 480px) {
    .hero { min-height: 350px; padding: 40px 15px; }
    .hero-icon { width: 70px; height: 70px; }
    .hero-icon i { font-size: 32px; }
    .hero-btn { min-width: 100%; margin-bottom: 15px; }
    .pqrs-container { padding: 20px 15px; }
    .back-to-top { width: 45px; height: 45px; bottom: 20px; right: 20px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.banner-azul {
  position: relative;
  height: 100vh;
  background-image: url('/src/assets/img/es-prote.jpeg');
  background-size: cover;
  background-position: center;
}
