* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #222;
}

/* ----- HEADER Y MENÚ PRINCIPAL ----- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #003366;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hamburguesa {
    display: none;
    font-size: 28px;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px 20px;
}

header, nav.menu, .menu ul {
    overflow: visible !important;
}

.menu > ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    height: 60px;
    background-color: #003366;
}

.menu > ul > li {
    position: relative;
}

.menu > ul > li > a,
.menu > ul > li > p {
    display: block;
    padding: 18px 22px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
}

/* Subrayado animado */
.menu > ul > li > a::before,
.menu > ul > li > p::before{
    content: "";
    position: absolute;
    bottom: 12px;
    left: 22px;
    width: 0;
    height: 2px;
    background: #66ccff;
    transition: width 0.3s ease;
}

.menu > ul > li > a:hover::before,
.menu > ul > li > p:hover::before {
    width: 60%;
}

.menu > ul > li > a:hover,
.menu > ul > li > p:hover {
    background-color: transparent;
    color: #66ccff;
}

/* Flecha ▼ para items con submenú */
.menu > ul > li > a.has-submenu::after,
.menu > ul > li > p.has-submenu::after {
    content: "";
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 4px;
    margin-left: 12px;
    margin-bottom: 7px;
    transform: rotate(45deg);
    vertical-align: middle;
    transition: transform 0.2s ease;
}

/* SUBMENÚ (2do nivel) */
.sub-menu {
    display: block;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: rgba(0, 64, 128, 0.95);
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    transition: all 0.25s ease-in-out;
    backdrop-filter: blur(6px);
    z-index: 999;
}

.sub-menu li {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-menu li:last-child {
    border-bottom: none;
}

.sub-menu a{
    display: block;
    padding: 12px 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: background-color 0.2s;
}

/* Mostrar submenú */
.menu li:hover > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.sub-menu li:hover > a {
    background-color: #0066cc;
}

/* Remover estilos globales conflictivos */
li {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 4rem 0;
}

section {
    padding: 2rem 0;
}

.btn{
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 0.5rem;
    margin-left: auto;
    margin-right: auto;
    width: 15rem;

}

.btn.primary {
    background-color: #0073e6;
    color: #fff;
}

.btn.secondary {
    text-align: center;
    background-color: #fff;
    color: #0073e6;
    border: 2px solid #0073e6;
}

.hero {
    width: 100%;
    height: auto;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/img/Inicio/Fondo_principal.webp') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.integra {
    padding: 2rem 0rem;
    background-color: #f9f9f9;
}

.integra .container {
    text-align: justify;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.integra div {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.integra h2 {
    text-align: center;
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #003366;
    position: relative;
}

.integra h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background: #66ccff;
    margin: 0.5rem auto 1rem;
    border-radius: 2px;
}

.integra p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.integra ul {
    padding-left: 0;
    margin: 2rem 0;
}

.integra ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    background: rgba(102, 204, 255, 0.05);
    border-radius: 6px;
    padding: 1rem 1rem 1rem 2.5rem;
    transition: background 0.3s ease;
}

.integra ul li:hover {
    background: rgba(102, 204, 255, 0.1);
}

.integra ul li::before {
    content: "➤";
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    font-size: 1rem;
    color: #007acc;
}

.integra h3 {
    font-size: 1.3rem;
    color: #005288;
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid #66ccff;
    background-color: rgba(0, 82, 136, 0.05);
    padding: 0.8rem 1rem;
    border-radius: 5px;
}

.integra h4 {
    font-size: 1.1rem;
    color: #006699;
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
    border-bottom: 2px solid #66ccff;
    padding-bottom: 0.3rem;
    display: inline-block;
}

.integra ol {
    padding-left: 2rem;
    margin: 2rem 0;
    counter-reset: letra;
}

.integra ol li {
    position: relative;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    background: rgba(102, 204, 255, 0.05);
    border-radius: 6px;
    padding: 1rem 1rem 1rem 2.8rem;
    transition: background 0.3s ease;
    list-style: none;
}

.integra ol li:hover {
    background: rgba(102, 204, 255, 0.1);
}

.integra ol li::before {
    counter-increment: letra;
    content: counter(letra, lower-alpha) ") ";
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    font-weight: bold;
    color: #007acc;
    font-size: 1.1rem;
}

.integra img{
    align-self: center;
    width: 30rem;
    height: 40rem;
    margin-bottom: 3rem;
}

.integra .ancha{
    margin-top: 2rem;
    width: 40rem;
    height: 25rem;
    border-radius: 2rem;
    box-shadow: 0.25rem 0.25rem 12px rgba(0, 0, 0, 0.747);
}

.tabla-enfermedades {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    margin: 2rem 0;
    font-size: 15px;
}

.tabla-enfermedades th,
.tabla-enfermedades td {
    border: 1px solid #ccc;
    padding: 12px;
    vertical-align: top;
    text-align: left;
}

.tabla-enfermedades thead {
    background-color: #f4f4f4;
    font-weight: 600;
}

.tabla-enfermedades td:first-child {
    font-weight: 600;
    background-color: #fafafa;
    text-align: center;
}

.lista-tabla {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.integra .lista-tabla li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
}

.integra .lista-tabla li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0070ba;
}

.tabla-wrapper {
    width: 100%;
    overflow-x: auto;
}

.tabla-wrapper::-webkit-scrollbar {
    height: 6px;
}

.tabla-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.footer {
    background-color: #002244;
    color: white;
    padding: 10px 20px 30px;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
}

.footer-contenido {
    max-width: 900px;
    margin: 0 auto;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer p {
    margin: 8px 0;
    font-size: 1.3rem;
}

.footer-lema {
    font-weight: 500;
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 20px;
}

.footer a {
    color: #66ccff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
}

.reservados {
    border-top: 1px solid #445566;
    margin-top: 30px;
    padding-top: 15px;
    font-size: 0.9rem;
    color: #cccccc;
}

.paypal-form {
    max-width: 350px;
    margin: 40px auto;
    padding: 16px;
    background-color: #ffffff;
    border: 2px solid #0070ba;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.paypal-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #222;
}

.paypal-form select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: border-color 0.3s;
}

.paypal-form select:focus {
    border-color: #0070ba;
    outline: none;
}

.paypal-form input[type="image"] {
    align-self: center;
    transition: transform 0.3s ease;
}

.paypal-form input[type="image"]:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 991px) {
    .menu > ul {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        display: none;
        background-color: #003366;
        padding: 1rem 0;
    }

    .menu.responsive > ul {
        display: flex;
    }

    .hamburguesa {
        display: block;
        position: absolute;
        top: 10px;
        right: 20px;
        z-index: 101;
        background-color: #003366;
        font-size: 1rem;
    }

    .menu > ul > li {
        width: 100%;
    }

    .menu > ul > li > a,
    .menu > ul > li > p {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Submenús ocultos por defecto */
    .sub-menu {
        position: relative;
        left: 0;
        top: 0;
        box-shadow: none;
        backdrop-filter: none;
        border-radius: 0;
        transform: translateY(0);
        padding-left: 1rem;
        display: none;
        opacity: 0;
        pointer-events: none;
    }

    /* Mostrar submenús activos */
    .sub-menu.activo {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    /* Desactivar hover */
    .menu li:hover > .sub-menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    li {
        list-style: none;
    }

    /* Footer responsive */
    .footer p {
        font-size: 1rem;
    }

    .footer-logo {
        width: 140px;
    }

    .integra h2{
        font-size: 1.5rem;
        text-align: center;
    }

    .integra h3{
        font-size: 1.2rem;
    }

    .integra h4{
        font-size: 1.1rem;
    }

    .integra p{
        font-size: 0.9rem;
    }

    .hero h1{
        font-size: 2rem;
    }

    .hero p{
        font-size: 1.2rem;
        color: #ffffff;
    }

    .integra ul li{
        font-size: 0.9rem;
    }

    .integra ol li{
        font-size: 0.9rem;
    }

    li, h3{
        text-align: start;
    }

    .integra img{
        align-self: center;
        width: 20rem;
        height: 27rem;
        margin-bottom: 3rem;
    }

    .integra .ancha{
        width: 23rem;
        height: 13rem;
    }
}