* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: #17213f;
    line-height: 1.6;
    background: #f7f7f7;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.center {
    text-align: center;
}

/* HERO */

.hero {
    min-height: 100vh;
    background:
        linear-gradient(rgba(15, 25, 45, .72), rgba(15, 25, 45, .78)),
        url("/img/hero-operacion.jpg?v=2");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    flex-direction: column;
}

.navbar {
    width: 100%;
    padding: 22px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .3s ease, padding .3s ease;
}

.logo img {
    height: 82px;
    width: auto;
}

.menu {
    display: flex;
    gap: 28px;
}

.menu a {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.menu a:hover {
    color: #f26a21;
}

.btn-nav,
.btn-primary {
    background: #f26a21;
    color: white;
    padding: 15px 24px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
}

.btn-outline {
    border: 2px solid white;
    color: white;
    padding: 13px 24px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
}

.hero-content {
    max-width: 680px;
    padding: 55px 7% 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 62px;
    line-height: 1.08;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

/* SECCIONES */

.section {
    padding: 85px 0;
}

.section h2 {
    font-size: 42px;
    margin-bottom: 24px;
    color: #17213f;
}

.section p {
    font-size: 20px;
}

/* SOBRE NOSOTROS */

.about-section {
    background: #f2f2f2;
}

.about-text {
    margin-bottom: 28px;
}

.about-image img {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
}

/* MISIÓN / VISIÓN */

.mission-section {
    background: #ffffff;
}

.mission-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.mission-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.mission-block.reverse .mission-text {
    order: 1;
}

.mission-block.reverse .mission-image {
    order: 2;
}

.mission-image img {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
}

.mission-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #17213f;
}

.mission-text p {
    font-size: 20px;
}

/* SERVICIOS */

.services-section {
    background: #ffffff;
}

.card-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.card {
    background: #f7f7f7;
    padding: 30px;
    border-radius: 14px;
    border-top: 5px solid #f26a21;
}

.card h3 {
    font-size: 23px;
    margin-bottom: 15px;
    color: #17213f;
}

.card p {
    font-size: 18px;
}

/* FRASE */

.dark-section {
    background: #17213f;
    color: white;
}

.dark-section h2,
.dark-section p {
    color: white;
}

/* CONTACTO */

.contact-section {
    background: #f7f7f7;
}

.contact-info {
    margin-bottom: 28px;
}

.contact-info p {
    margin-bottom: 10px;
}

/* FOOTER */

footer {
    background: #10182f;
    color: white;
    text-align: center;
    padding: 25px;
}

/* RESPONSIVE */

@media(max-width:1100px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 54px;
    }
}

@media(max-width:768px) {

    .navbar {
        flex-direction: column;
        gap: 18px;
        padding: 18px 7%;
    }

    .logo img {
        height: 65px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .menu a {
        font-size: 16px;
    }

    .btn-nav {
        display: none;
    }

    .hero-content {
        padding: 40px 7% 50px;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .mission-block,
    .mission-block.reverse {
        grid-template-columns: 1fr;
    }

    .mission-block.reverse .mission-text,
    .mission-block.reverse .mission-image {
        order: initial;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 65px 0;
    }

    .section h2 {
        font-size: 34px;
    }
}

.btn-card {
    margin-top: 22px;
    background: transparent;
    border: 2px solid #f26a21;
    color: #f26a21;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.btn-card:hover {
    background: #f26a21;
    color: white;
}

.values-section {
    background: #ffffff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    margin-top: 35px;
}

.value-item {
    background: #f7f7f7;
    padding: 26px;
    border-radius: 14px;
    text-align: center;
}

.value-item span {
    font-size: 34px;
    color: #f26a21;
    display: block;
    margin-bottom: 14px;
}

.value-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #17213f;
}

.value-item p {
    font-size: 16px;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 35, .78);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    width: min(1100px, 92vw);
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 18px;
    padding: 35px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: #f26a21;
    color: white;
    border: none;
    font-size: 30px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
}

.modal-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 35px;
    align-items: center;
}

.modal-grid img {
    width: 100%;
    border-radius: 14px;
}

.modal-grid h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: #17213f;
}

.modal-grid p {
    font-size: 19px;
    margin-bottom: 18px;
}

.modal-grid ul {
    margin-left: 20px;
    margin-bottom: 26px;
}

.modal-grid li {
    font-size: 18px;
    margin-bottom: 10px;
}

@media(max-width:900px) {
    .values-grid {
        grid-template-columns: 1fr 1fr;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width:600px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 25px;
    }
}
