/* ======== ESTILOS GENERALES ======== */
* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    background-color: #f4f6fa;
    color: #333;
}

/* ======== CABECERA CON MENÚ RESPONSIVE ======== */
header {
    background-color: #ffffff;
    color: #005bbb;
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #005bbb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* ======== MENÚ DE NAVEGACIÓN ======== */
.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: #005bbb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}

.nav-menu a:hover {
    color: #ff0000;
}

/* ======== BOTÓN HAMBURGUESA ======== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #005bbb;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* ======== HERO / PORTADA ======== */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to right, #007bff, #00a8ff);
    color: white;
    border-bottom: 5px solid #005bbb;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.boton {
    background-color: #fff;
    color: #007bff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}

.boton:hover {
    background-color: #e6f0ff;
}

/* ======== SECCIÓN QUIÉNES SOMOS ======== */
.about {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.about .container {
    max-width: 900px;
    margin: 0 auto;
}

.about h2 {
    color: #005bbb;
    margin-bottom: 20px;
}

.about p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.about ul {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.about li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.about ul li strong {
    color: #005bbb;
}

/* ======== SECCIÓN CÓMO FUNCIONA ======== */
.steps {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    padding: 80px 20px;
    text-align: center;
}

.steps .container {
    max-width: 1100px;
    margin: 0 auto;
}

.steps h2 {
    color: #005bbb;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
}

.steps h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #005bbb;
    margin: 10px auto 0;
    border-radius: 2px;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.step {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.step-icon {
    font-size: 2.2rem;
    color: #005bbb;
    background: #eaf3ff;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    box-shadow: 0 2px 6px rgba(0, 91, 187, 0.2);
}

.step h3 {
    color: #003f88;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 15px 0 10px 0;
    text-align: center;
}

.step p {
    text-align: center;
}

/* ======== SECCIÓN CONTACTO ======== */
.contact {
    background: #ffffff;
    padding: 60px 20px;
    text-align: center;
    border-top: 5px solid #005bbb;
}

.contact .container {
    max-width: 800px;
    margin: 0 auto;
}

.contact h2 {
    color: #005bbb;
    margin-bottom: 20px;
}

.contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.8;
    color: #333;
    font-size: 1.05rem;
}

.contact a {
    color: #005bbb;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

/* ======== SECCIÓN CALCULADORA ======== */
.calculadora {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
}

.calculadora h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #005bbb;
    margin-bottom: 10px;
}

.calculadora p {
    text-align: center;
    color: #555;
    margin-bottom: 25px;
}

/* ======== FORMULARIO ======== */
#form-paquete {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

#form-paquete label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: #333;
}

#form-paquete input {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

#form-paquete input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

/* ======== BOTONES ======== */
button {
    cursor: pointer;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

#agregar {
    background-color: #007bff;
    color: white;
    grid-column: 1 / -1;
}

#agregar:hover {
    background-color: #005bbb;
}

#vaciar {
    background-color: #dc3545;
    color: white;
    margin-top: 15px;
    display: block;
    width: 100%;
}

#vaciar:hover {
    background-color: #b02a37;
}

/* ======== TABLA ======== */
.tabla-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    margin-top: 10px;
    background-color: #ffffff;
}

.tabla-wrapper table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.tabla-wrapper::-webkit-scrollbar {
    height: 8px;
}

.tabla-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(0, 91, 187, 0.4);
    border-radius: 4px;
}

.tabla-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 91, 187, 0.7);
}

th {
    background-color: #005bbb;
    color: white;
    padding: 12px;
    font-size: 0.95rem;
    text-transform: uppercase;
}

td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

tr:nth-child(even) {
    background-color: #f9fbff;
}

tr:hover {
    background-color: #eef5ff;
}

/* ======== BOTONES DE ACCIÓN ======== */
button.editar,
button.eliminar {
    border: none;
    padding: 6px 10px;
    font-size: 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

button.editar {
    background-color: #ffc107;
    color: #2c2c2c;
}

button.editar:hover {
    background-color: #e0a800;
    color: #fff;
}

button.eliminar {
    background-color: #ff4d4d;
    color: #fff;
}

button.eliminar:hover {
    background-color: #d63031;
}

/* ======== TOTAL ======== */
h3 {
    text-align: right;
    margin-top: 25px;
    font-size: 1.2rem;
    color: #222;
}

#total {
    color: #005bbb;
    font-weight: bold;
}

/* ======== BOTÓN PRESUPUESTO ======== */
#descargar {
    background-color: #28a745;
    color: white;
    margin-top: 15px;
    display: block;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
}

#descargar:hover {
    background-color: #218838;
}

/* ======== PIE DE PÁGINA ======== */
footer {
    background: #005bbb;
    color: white;
    text-align: center;
    padding: 12px 0;
    margin-top: 60px;
    font-size: 0.9rem;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        width: 230px;
        padding: 15px 0;
        border-left: 3px solid #005bbb;
        border-bottom: 3px solid #005bbb;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-menu a {
        display: block;
        padding: 12px 20px;
        width: 100%;
        color: #005bbb;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu a:hover {
        background-color: #f2f6ff;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .calculadora {
        margin: 15px;
        padding: 25px;
        border-radius: 16px;
    }

    .calculadora h2 {
        font-size: 1.5rem;
    }

    #form-paquete {
        flex-direction: column;
        gap: 12px;
    }

    .tabla-wrapper table {
        min-width: 650px;
    }

    h3 {
        text-align: center;
    }
}

@media (max-width: 450px) {
    header .logo img {
        height: 50px;
    }

    .calculadora {
        padding: 20px;
    }

    th, td {
        padding: 8px;
        font-size: 0.85rem;
    }

    button {
        font-size: 0.9rem;
    }

    #total {
        font-size: 1.1rem;
    }
}
