/* css/descuento.css */

/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f4f7fb;
    color: #333;
}

/* ==========================================
   HEADER INSTITUCIONAL COMPLETO DE CERO
   ========================================== */
header:not(.hero) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: linear-gradient(90deg, #0b2a4a, #163f6b);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 24px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: white;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* ==========================================
   HERO ADAPTADO CON ESTILO CORPORATIVO
   ========================================== */
header.hero {
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url("../img/hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero h1 {
    font-size: 38px;
    color: white;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    max-width: 750px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ==========================================
   ESTRUCTURA DE TU CONTENEDOR ORIGINAL
   ========================================== */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.card h2 {
    font-size: 24px;
    color: #0b2a4a;
    margin-bottom: 25px;
    border-bottom: 2px solid #eef3fa;
    padding-bottom: 10px;
}

/* PROCEDIMIENTOS */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.step {
    background: #f4f7fb;
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    color: #555;
    font-weight: 500;
    border: 1px solid #eef3fa;
}

.step span {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #1e4f86;
    margin-bottom: 8px;
}

/* CONTROLES DE FORMULARIO DE TU GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field.full {
    grid-column: span 2;
}

.field label {
    font-size: 14px;
    font-weight: 500;
    color: #0b2a4a;
}

.field input, 
.field textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s;
}

.field input:focus, 
.field textarea:focus {
    outline: none;
    border-color: #163f6b;
}

/* BLOQUE DE UPLOAD Y AVISOS */
.upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.upload label {
    font-size: 14px;
    font-weight: 500;
    color: #0b2a4a;
}

.upload input[type="text"] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
}

.upload input[type="file"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    cursor: pointer;
}

.notice {
    margin-top: 15px;
    padding: 15px;
    background: #eef3fa;
    border-left: 4px solid #1e6acb;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

/* BOTONES */
.btn {
    margin-top: 15px;
    background: linear-gradient(45deg, #1e6acb, #0b2a4a);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    transition: 0.3s;
}

.btn:hover {
    box-shadow: 0 5px 15px rgba(30, 106, 203, 0.3);
}

.btn.success {
    background: linear-gradient(45deg, #10b981, #059669);
}

.btn.success:hover {
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* ==========================================
   FOOTER INSTITUCIONAL COMPLETO
   ========================================== */
footer {
    background: #0b2a4a;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 60px;
}

footer p {
    margin-bottom: 5px;
    font-size: 14px;
}

/* ==========================================
   RESPONSIVE DESIGN (BREAKPOINTS ORIGINALES)
   ========================================== */
@media(max-width: 900px) {
    header:not(.hero) {
        padding: 20px;
    }
    .hero h1 {
        font-size: 30px;
    }
}

@media(max-width: 700px) {
    .menu-toggle {
        display: block;
    }
    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #0b2a4a;
        display: none;
    }
    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    nav.active {
        display: block;
    }
    header.hero {
        height: 320px;
    }
    .hero h1 {
        font-size: 24px;
    }
    .field.full {
        grid-column: span 1;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* espacio entre imagen y texto */
}

.logo img {
    width: 40px;  /* ajusta tamaño */
    height: 40px;
    object-fit: contain;
}


/* SECCIÓN INTERMEDIA - TRÁMITE DE FIRMA */
.seccion-paso-firma {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-left: 5px solid #3b82f6;
}

.contenido-paso-firma p {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.5;
}

.numero-paso {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0b2a4a;
    margin-bottom: 10px;
}

.btn-enlace-firma {
    display: block;
    text-align: center;
    background: linear-gradient(45deg, #0b2a4a, #1e6acb);
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-enlace-firma:hover {
    box-shadow: 0 5px 15px rgba(30, 106, 203, 0.3);
    transform: translateY(-1px);
}