/* =========================================
   CONFIGURACIÓN GENERAL
========================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #222;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    min-height: 70px;

    background: linear-gradient(
        135deg,
        #111827,
        #030712
    ) !important;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.navbar-brand {
    color: white !important;
    font-size: 25px;
    font-weight: 800;
}

.navbar-nav {
    gap: 5px;
}

.navbar .nav-link {
    color: #eeeeee !important;

    padding: 10px 15px !important;

    border-radius: 8px;

    font-weight: 600;

    transition: all 0.25s ease;
}

.navbar .nav-link:hover {
    background: #df1d2e;

    color: white !important;

    transform: translateY(-1px);
}

.navbar .nav-link.active {
    background: #df1d2e;

    color: white !important;
}


/* =========================================
   CONTENEDOR PRINCIPAL
========================================= */

main {
    width: 92%;
    max-width: 1400px;

    margin: 40px auto;
}


/* =========================================
   BANNER / IMAGEN PRINCIPAL
========================================= */

.hero {
    width: 100%;

    height: 360px;

    object-fit: cover;

    object-position: center;

    display: block;

    border-radius: 20px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15);
}


/* Si tu imagen no tiene class="hero" */

main > img {
    width: 100%;

    height: 360px;

    object-fit: cover;

    object-position: center;

    display: block;

    border-radius: 20px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15);
}


/* =========================================
   SECCIONES
========================================= */

section {
    background: white;

    padding: 35px;

    margin-top: 25px;

    border-radius: 20px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08);
}


/* =========================================
   TÍTULOS
========================================= */

h1 {
    margin-top: 20px;

    margin-bottom: 15px;

    font-size: 42px;

    font-weight: 800;

    color: #111111;
}

h2 {
    margin-bottom: 15px;

    color: #c91424;

    font-weight: 700;
}

h3 {
    color: #222;

    font-weight: 700;
}


/* =========================================
   TEXTO
========================================= */

p {
    color: #60758a;

    font-size: 17px;

    line-height: 1.6;
}


/* =========================================
   BOTONES
========================================= */

button,
.btn {
    border: none;

    background: linear-gradient(
        135deg,
        #df1d2e,
        #a9000b
    );

    color: white !important;

    padding: 12px 22px;

    border-radius: 10px;

    font-weight: bold;

    text-decoration: none;

    cursor: pointer;

    transition: all 0.25s ease;
}

button:hover,
.btn:hover {
    background: linear-gradient(
        135deg,
        #ef2939,
        #c0000d
    );

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(210, 0, 20, 0.3);
}


/* =========================================
   TABLAS
========================================= */

table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);
}

table th {
    background: #111827;

    color: white;

    padding: 14px;

    text-align: left;
}

table td {
    padding: 14px;

    border-bottom: 1px solid #eeeeee;

    color: #444;
}

table tr:nth-child(even) {
    background: #f8fafc;
}

table tr:hover {
    background: #fff0f1;
}


/* =========================================
   FORMULARIOS
========================================= */

input,
textarea,
select {
    width: 100%;

    padding: 12px;

    border: 1px solid #0066ff;

    border-radius: 8px;

    font-size: 16px;

    outline: none;

    transition: 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #df1d2e;

    box-shadow:
        0 0 0 3px rgba(223, 29, 46, 0.1);
}

label {
    display: block;

    margin-bottom: 6px;

    font-weight: 600;

    color: #333;
}


/* =========================================
   TARJETAS
========================================= */

.card {
    border: none;

    border-radius: 15px;

    box-shadow:
        0 7px 25px rgba(0, 0, 0, 0.08);

    transition: 0.25s;
}

.card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12);
}


/* =========================================
   FOOTER
========================================= */

footer {
    margin-top: 50px;

    padding: 30px;

    background: #111827;

    color: white;

    text-align: center;
}

.encuesta-box {
    position: relative;
    overflow: hidden;

    background: #ffffff;

    padding: 40px;

    border-radius: 24px;

    border: 4px solid #111111;

    box-shadow:
        0 10px 0 #8b0000,
        0 22px 40px rgba(0, 0, 0, 0.18);

    margin: 50px auto;

    max-width: 850px;
}

/* =========================================
   MÓVILES
========================================= */

@media (max-width: 768px) {

    .navbar {
        min-height: 65px;
    }

    .navbar-nav {
        margin-top: 15px;

        gap: 3px;
    }

    .navbar .nav-link {
        text-align: center;

        width: 100%;
    }

    main {
        width: 94%;

        margin: 25px auto;
    }

    .hero,
    main > img {
        height: 230px;

        border-radius: 15px;
    }

    section {
        padding: 25px 20px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 24px;
    }

    p {
        font-size: 16px;
    }

    table {
        display: block;

        overflow-x: auto;
    }
}

  