/* ===========================
   ESTILOS GENERALES
=========================== */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
    color: #333;
    overflow-x: hidden;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 1px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
    background: linear-gradient(to right, #13253d, #00548b, #72c4bd, #e0eed9);
}

.logo img {
    height: 70px;
    display: block;
}

.menu {
    display: flex;
    gap: 50px;
}

.menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    padding: 20px 20px;
    transition: 0.3s;
}

/* ===========================
   DROPDOWN
=========================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    color: #ffffff;
    font-weight: bold;
    padding: 20px 20px;
    display: block;
    transition: color 0.3s ease;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 200px;
    top: 60px;
    left: 0;
    background: linear-gradient(135deg, #0a3d62, #1e8bc3, #72c4bd);
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
    z-index: 999;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: #ffffff;
    padding: 14px 18px;
    text-decoration: none;
    display: block;
    font-weight: 600;
    transition: background 0.3s ease, padding-left 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(255,255,255,0.15);
    padding-left: 24px;
}

/* ===========================
   REGRESAR
=========================== */
.regresar {
    position: fixed;
    bottom: 25px;
    right: 40px;

    padding: 10px 18px;
    background-color: #005195;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 900;
}

.regresar:hover {
    background-color: #003d6e;
}

/* ===========================
   HERO
=========================== */
.mantenimiento-hero {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 140px;
}

.mantenimiento-hero img {
    width: 90%;
    max-width: 1200px;
    height: 700px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ===========================
   TÍTULO
=========================== */
.mantenimiento-title {
    text-align: center;
    margin-top: 85px;
}

.mantenimiento-title h2 {
    font-size: 3rem;
    font-weight: 900;
    -webkit-background-clip: text;
    color: #005195;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 3px 5px 0 rgba(0,82,149,0.185);

    display: block;
    width: fit-content;
    margin: 0 auto;
}

.mantenimiento-title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    bottom: 0;
    width: 80%;
    height: 4px;
    background: #72c4bd;
    border-radius: 4px;
}

/* Tablets */
@media (max-width: 768px) {
    .mantenimiento-title h2 {
        font-size: 2.2rem;
        padding-bottom: 12px;
    }
}

/* Teléfonos pequeños */
@media (max-width: 480px) {
    .mantenimiento-title h2 {
        font-size: 1.9rem;
        padding-bottom: 10px;
    }
}


/* ===========================
   TEXTOS EN DOS COLUMNAS
=========================== */

.service-card {
    background: #ffffff;
    border: 3px solid #005195;
    border-radius: 18px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.35s ease;
    color: #333;
}

.service-card p {
    font-size: 1.17rem;
    line-height: 1.7;
    color: #000000;
    text-align: justify;
}

.mantenimiento-textos {
    width: 85%;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 50px;
    font-size: 1.2rem;
    text-align: justify;
}

.service-card:hover {
    background: #005195;
    border-color: #005195;
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.service-card:hover p {
    color: #ffffff;
}

/* ===========================
   ICONOS
=========================== */

.titulo-beneficios {
    font-size: 3rem;
    font-weight: 900;
    -webkit-background-clip: text;
    color: #005195;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 3px 5px 0 rgba(0,82,149,0.185);

    display: block;
    width: fit-content;
    margin: 60px auto 30px;
}

.titulo-beneficios::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    bottom: 0;
    width: 80%;
    height: 4px;
    background: #72c4bd;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .titulo-beneficios {
        font-size: 2.2rem;
        padding-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .titulo-beneficios {
        font-size: 1.9rem;
        padding-bottom: 10px;
    }
}


.iconos-mantenimiento {
    width: 85%;
    margin: 0 auto 100px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 35px;
    place-items: center;
}

.card-mantenimiento {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    width: 90%;
    max-width: 300px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 200px;
    border: 3px solid #005195;
}

.card-mantenimiento img {
    width: 130px;
    height: 130px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.card-mantenimiento p {
    font-size: 1.2rem;
    color: #000000;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 10px;
}

.card-mantenimiento:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.25);
}

/* ===========================
   MENÚ HAMBURGUESA
=========================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 9999;
    margin-right: 15px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: #154377;
    border-radius: 3px;
    transition: 0.3s;
}

/* MENÚ MÓVIL */
.menu-mobile {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: linear-gradient(to right, #13253d, #00548b, #72c4bd);
    padding: 25px 0;
    flex-direction: column;
    text-align: center;
    gap: 20px;
    z-index: 999;
}

.menu-mobile a {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 0;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 850px) {

    .menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .menu-mobile.show {
        display: flex;
    }

    .logo img {
        height: 55px;
    }

    .iconos-mantenimiento {
        grid-template-columns: repeat(2, 1fr);
    }

    .mantenimiento-textos {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .mantenimiento-hero img {
        height: 300px;
    }

    .iconos-mantenimiento {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   CORRECCIÓN DE OVERFLOW
=========================== */
@media (max-width: 850px) {

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .menu-mobile {
        left: 0;
        right: 0;
    }
}
