/* ===========================
   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: 15px;

    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;
}


/* ===========================
   CONTENEDOR
=========================== */
.unidad-container {
    width: 100%;
    margin-top: 120px;
    display: flex;
    justify-content: center;
}

/* ===========================
   TARJETA PRINCIPAL
=========================== */
.unidad-card {
    width: 98%;
    max-width: 1600px;
    background: #ffffff;
    border-radius: 18px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border: 5px solid rgb(0, 192, 192);
    box-shadow: 0 0 25px rgba(0,179,179,0.25);
}

/* ===========================
   IMAGEN
=========================== */
.unidad-img {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f1f1f1;
    border-radius: 14px;
    padding: 20px;
}

.unidad-img img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
}

/* ===========================
   INFORMACIÓN
=========================== */
.unidad-info h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #005195;
    margin-bottom: 20px;
}

.unidad-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000000;
    margin-top: 3px;
    margin-bottom: 10px;
}

.unidad-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.unidad-info ul li {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.unidad-info ul li::before {
    content: "•";
    color: #00b3b3;
    font-size: 1.4rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.unidad-info p {
    font-size: 1.1rem;
    color: #000000;
    line-height: 1.7;
}

/* ===========================
   BENEFICIOS
=========================== */
.benefits-row {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-top: 20px;
}

.benefit {
    flex: 1;
    text-align: center;
}

.benefit-circle {
    width: 90px;
    height: 90px;
    background: #95e4e4;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.benefit-circle img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.benefit p {
    font-size: 1.15rem;
    font-weight: 750;
    color: #000000;
}

/* ===========================
   INFO BOXES
=========================== */
.info-box {
    background: #daece6;
    padding: 12px 18px;
    border-radius: 12px;
    border-left: 7px solid #00b3b3;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    width: 95%;
    margin: 25px 0;
}

.info-box h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #005195;
    margin-bottom: 10px;
}

.info-box p {
    font-size: 1.3rem;
    line-height: 1.35;
    color: #000000;
    font-weight: 400;
    margin: 0;
    text-align: justify;
}

/* ===========================
   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: 80px;
    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;
    }

    .unidad-card {
        grid-template-columns: 1fr;
    }

    .benefits-row {
        flex-direction: column;
    }
}

@media (max-width: 600px) {

    .unidad-img img {
        max-height: 220px;
    }

    .info-box {
        width: 100%;
    }
}

/* ===========================
   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;
    }
}

@media (max-width: 850px) {
    .unidad-card {
        padding: 20px;
        width: 95%;
    }
}

@media (max-width: 850px) {
    .unidad-info {
        text-align: center;
    }

    .unidad-info h2 {
        font-size: 2rem;
    }

    .unidad-info h3 {
        font-size: 1.2rem;
    }

    .unidad-info ul li {
        font-size: 1rem;
        padding-left: 0;
    }

    .unidad-info ul li::before {
        display: none;
    }
}
