* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0a1b2e
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: #0a1b2e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
    z-index: 1001;
    box-shadow: 0 2px 15px rgba(0, 0, 0, .5);
    gap: 20px
}

.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none
}

.logo-icon {
    height: 60px;
    width: auto;
    display: block
}

.logo-texto {
    display: flex;
    flex-direction: column;
    line-height: 1
}

.logo-texto span {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px
}

.logo-texto small {
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .5px;
    margin-top: 3px
}

.menu {
    flex: 1;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 35px;
    margin: 0;
    padding: 0
}

.menu a {
    text-decoration: none;
    color: #bdbdbd;
    font-weight: bold;
    font-size: 15px;
    position: relative;
    transition: .3s;
    padding: 12px 0;
    white-space: nowrap
}

.menu a:hover,
.menu a.active-link {
    color: #fff
}

.menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: #00d5ff;
    border-radius: 20px;
    box-shadow: 0 0 10px #00d5ff;
    transition: .3s
}

.menu a:hover::after,
.menu a.active-link::after {
    width: 50px
}

.nav-right {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center
}

.login-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1.5px solid #00d5ff;
    color: #00d5ff;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: .3s;
    white-space: nowrap
}

.login-link:hover {
    background: #00d5ff;
    color: #000;
    box-shadow: 0 0 15px #00d5ff
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: transparent;
    border: 1.5px solid #00d5ff;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    align-items: center;
    justify-content: center
}

.header {
    margin-top: 100px;
    width: 100%;
    height: 750px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url("../MEDIA/fachada_casa_negra.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center
}

.header-contenido {
    max-width: 800px;
    padding: 0 20px
}

.header-contenido h1 {
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 3px 3px 8px black
}

.header-contenido h1 span {
    color: #FFD400
}

.header-contenido p {
    color: #fff;
    font-size: 24px;
    line-height: 1.6;
    text-shadow: 2px 2px 5px black
}

.boton-header {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 30px;
    background: #FFD400;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px
}

.boton-header:hover {
    background: #fff
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #04436a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, .3);
    z-index: 999;
    transition: transform .3s ease;
    text-decoration: none
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1e6bbe
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    z-index: 1
}

.whatsapp-float .tooltip {
    position: absolute;
    right: 70px;
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    white-space: nowrap
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px
}

.seccion-historia {
    width: 95%;
    max-width: 1500px;
    margin: 30px auto;
    padding: 40px;
    border-radius: 20px;
    background: #1b3b5a
}

.contenedor-historia {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 40px
}

.imagen-historia {
    width: 100%
}

.imagen-historia img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 15px;
    display: block
}

.contenido-historia {
    display: flex;
    flex-direction: column
}

.etiqueta {
    color: #FFD400;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 5px;
    margin-bottom: 15px
}

.contenido-historia h2 {
    color: #ffffff;
    font-size: 40px;
    margin-bottom: 20px
}

.contenido-historia p {
    color: #e5e5e5;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px
}

.contenido-historia p strong {
    color: #ffffff
}

.historia-datos {
    display: flex;
    gap: 20px;
    margin: 20px 0 5px;
    flex-wrap: wrap
}

.historia-datos .dato {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 212, 0, .4);
    border-radius: 12px;
    padding: 15px 18px;
    min-width: 140px;
    flex: 1
}

.historia-datos .dato span {
    display: block;
    color: #FFD400;
    font-size: 24px;
    font-weight: 900
}

.historia-datos .dato small {
    color: #e5e5e5;
    font-size: 13px;
    line-height: 1.4;
    display: block;
    margin-top: 5px
}

.boton-historia {
    display: inline-block;
    margin-top: 18px;
    padding: 14px 32px;
    background: #FFD400;
    color: #000 !important;
    text-decoration: none !important;
    font-weight: 900;
    border-radius: 30px;
    align-self: flex-start
}

.boton-historia:hover {
    background: #fff;
    transform: scale(1.03)
}

.seccion-tiempo {
    width: 95%;
    max-width: 1500px;
    margin: 30px auto;
    padding: 40px 40px 50px;
    border-radius: 20px;
    background: #1b3b5a
}

.contenido-tiempo {
    text-align: center;
    margin-bottom: 30px
}

.contenido-tiempo h2 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 10px
}

.contenido-tiempo p {
    color: #cbd5e1;
    font-size: 17px
}

.container1 {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5px 20px;
    scroll-snap-type: x mandatory
}

.container1 .card {
    flex: 0 0 300px;
    background: linear-gradient(#557392, #7a8ca6);
    border: 1px solid rgba(255, 212, 0, .25);
    border-radius: 15px;
    padding: 25px;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease
}

.container1 .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, .35);
    border-color: rgba(255, 212, 0, .6)
}

.container1 .card .punto {
    width: 14px;
    height: 14px;
    background: #FFD400;
    border-radius: 50%;
    display: block;
    margin-bottom: 15px;
    box-shadow: 0 0 0 4px rgba(255, 212, 0, .2)
}

.container1 .card .title {
    color: #FFD400;
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 8px;
    text-align: left
}

.container1 .card h3 {
    color: #fff;
    font-size: 19px;
    margin: 0 0 10px
}

.container1 .card .texto {
    color: #e5e5e5;
    font-size: 15px;
    line-height: 1.6;
    margin: 0
}

.container1::-webkit-scrollbar {
    height: 8px
}

.container1::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .08);
    border-radius: 10px
}

.container1::-webkit-scrollbar-thumb {
    background: #FFD400;
    border-radius: 10px
}

.mvv {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 20px
}

.cards {
    display: flex;
    flex-direction: row;
    gap: 30px
}

.cards .card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    height: 180px;
    width: 300px;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    transition: 400ms;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3)
}

.cards .red {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6)
}

.cards .blue {
    background: linear-gradient(135deg, #0ea5e9, #2563eb)
}

.cards .green {
    background: linear-gradient(135deg, #38bdf8, #1e40af)
}

.cards .card p.tip {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 10px
}

.cards .card p.second-text {
    font-size: 0.9em;
    line-height: 1.4;
    max-width: 250px
}

.cards .card:hover {
    transform: scale(1.1)
}

.cards:hover>.card:not(:hover) {
    filter: blur(5px);
    transform: scale(0.95)
}

.seccion-equipo {
    width: 95%;
    max-width: 1500px;
    margin: 30px auto 0 auto;
    padding: 40px;
    border-radius: 20px;
    background: #1b3b5a;
    text-align: center
}

.seccion-equipo h2 {
    color: #00C2FF;
    font-size: 32px;
    margin-bottom: 10px
}

.seccion-equipo .subtitulo-equipo {
    color: #cbd5e1;
    font-size: 17px;
    margin-bottom: 30px
}

.contenedor-equipo {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap
}

.miembro {
    flex: 1;
    min-width: 260px;
    max-width: 360px;
    background: linear-gradient(#35577d, #1a2b45);
    border: 1px solid rgba(255, 212, 0, .25);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center
}

.miembro .foto-miembro {
    width: 90px;
    height: 90px;
    background: #FFD400;
    color: #000;
    font-size: 28px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px
}

.miembro h3 {
    color: #fff;
    font-size: 20px;
    margin: 0 0 5px
}

.miembro .puesto {
    color: #FFD400;
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-bottom: 12px
}

.miembro p {
    color: #e5e5e5;
    font-size: 15px;
    line-height: 1.6;
    margin: 0
}

footer {
    background: #111827;
    color: white;
    padding-top: 50px;
    margin-top: 50px
}

.footer-container {
    display: flex;
    justify-content: space-around;
    padding: 0 40px 40px;
    flex-wrap: wrap
}

.footer-box {
    max-width: 250px
}

.footer-box h2,
.footer-box h3 {
    margin-bottom: 15px
}

.footer-box p {
    color: #9ca3af;
    line-height: 1.7
}

.footer-box a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.3s
}

.footer-box a:hover {
    color: #ffffff;
    padding-left: 5px
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af
}

ul {
    list-style: none
}

.example-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center
}

.example-2 .icon-content {
    margin: 0 10px;
    position: relative
}

.example-2 .icon-content .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    font-size: 14px;
    transition: all 0.3s ease
}

.example-2 .icon-content:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -50px
}

.example-2 .icon-content a {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #4d4d4d;
    background-color: #fff;
    transition: all 0.3s ease-in-out
}

.example-2 .icon-content a:hover {
    box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%)
}

.example-2 .icon-content a svg {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px
}

.example-2 .icon-content a:hover {
    color: white
}

.example-2 .icon-content a .filled {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000;
    transition: all 0.3s ease-in-out
}

.example-2 .icon-content a:hover .filled {
    height: 100%
}

.example-2 .icon-content a[data-social="whatsapp"] .filled,
.example-2 .icon-content a[data-social="whatsapp"]~.tooltip,
.example-2 .icon-content a[data-social="facebook"] .filled,
.example-2 .icon-content a[data-social="facebook"]~.tooltip,
.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"]~.tooltip,
.example-2 .icon-content a[data-social="youtube"] .filled,
.example-2 .icon-content a[data-social="youtube"]~.tooltip,
.example-2 .icon-content a[data-social="telefono"] .filled,
.example-2 .icon-content a[data-social="telefono"]~.tooltip,
.example-2 .icon-content a[data-social="gmail"] .filled,
.example-2 .icon-content a[data-social="gmail"]~.tooltip {
    background-color: #193347
}

/* ===== MENÚ MÓVIL SIN X + FOOTER CENTRADO ===== */
@media (max-width:900px) {
    .navbar {
        height: 70px !important;
        padding: 0 12px !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        z-index: 1001 !important
    }

    .logo {
        flex: 1 !important;
        min-width: 0 !important
    }

    .logo-icon {
        height: 38px !important;
        width: auto !important
    }

    .logo-texto span {
        font-size: 19px !important
    }

    .logo-texto small {
        display: none !important
    }

    .nav-right {
        flex: 0 0 auto !important;
        margin-left: 0 !important
    }

    .login-link {
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        justify-content: center !important;
        gap: 0 !important
    }

    .login-link span,
    .login-link #loginText {
        display: none !important
    }

    .login-link i {
        font-size: 16px !important;
        margin: 0 !important
    }

    .menu-toggle {
        display: flex !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        font-size: 18px !important;
        position: relative !important;
        z-index: 1 !important
    }

    .menu {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 86% !important;
        max-width: 340px !important;
        height: 100dvh !important;
        background: #0a1b2e !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        padding: 22px 16px 20px !important;
        margin: 0 !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, .6) !important;
        border-top: none !important;
        z-index: 10002 !important;
        transform: translateX(105%) !important;
        transition: transform .35s ease !important;
        overflow-y: auto !important
    }

    .menu.show,
    .menu.active,
    .menu.open {
        transform: translateX(0) !important
    }

    .menu li {
        width: 100% !important;
        text-align: left !important;
        list-style: none !important
    }

    .menu a {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: rgba(255, 255, 255, .06) !important;
        border: 1px solid rgba(255, 255, 255, .08) !important;
        color: #fff !important;
        padding: 14px 14px !important;
        border-radius: 14px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        letter-spacing: .5px !important;
        margin-bottom: 8px !important;
        text-decoration: none !important;
        pointer-events: auto !important
    }

    .menu a:active {
        background: rgba(0, 213, 255, .2) !important;
        transform: scale(.98)
    }

    .menu a.active-link {
        background: #00d5ff !important;
        color: #0a1b2e !important
    }

    .menu a::after {
        display: none !important
    }

    .menu li:nth-child(1) a::before {
        content: "🏠";
        font-size: 19px
    }

    .menu li:nth-child(2) a::before {
        content: "👷";
        font-size: 19px
    }

    .menu li:nth-child(3) a::before {
        content: "⚡";
        font-size: 19px
    }

    .menu li:nth-child(4) a::before {
        content: "📸";
        font-size: 19px
    }

    .menu li:nth-child(5) a::before {
        content: "📍";
        font-size: 19px
    }

    .menu li:nth-child(6) a::before {
        content: "📅";
        font-size: 19px
    }

    .menu li:nth-child(7) a::before {
        content: "📋";
        font-size: 19px
    }

    .menu li a::after {
        display: block !important;
        content: "›" !important;
        margin-left: auto !important;
        color: #00d5ff !important;
        font-size: 22px !important;
        line-height: 1 !important;
        width: auto !important;
        height: auto !important;
        background: none !important;
        box-shadow: none !important;
        position: static !important;
        transform: none !important
    }

    .menu li a.active-link::after {
        color: #0a1b2e !important
    }

    .menu li:nth-child(6) a {
        background: #FFD400 !important;
        color: #111 !important;
        border-color: #FFD400 !important;
        box-shadow: 0 8px 20px rgba(255, 212, 0, .25) !important
    }

    .menu li:nth-child(6) a::after {
        content: "GRATIS" !important;
        font-size: 10px !important;
        background: #111 !important;
        color: #FFD400 !important;
        padding: 4px 8px !important;
        border-radius: 20px !important
    }

    .header {
        margin-top: 70px !important;
        height: auto;
        min-height: 520px;
        padding: 60px 0
    }

    .header-contenido h1 {
        font-size: 36px;
        line-height: 1.2
    }

    .header-contenido p {
        font-size: 17px
    }

    .seccion-historia {
        padding: 25px 20px
    }

    .contenedor-historia {
        grid-template-columns: 1fr;
        gap: 25px
    }

    .imagen-historia img {
        height: 280px
    }

    .contenido-historia h2 {
        font-size: 28px;
        text-align: left
    }

    .contenido-historia p {
        font-size: 16px
    }

    .historia-datos {
        flex-direction: column
    }

    .historia-datos .dato {
        min-width: 100%
    }

    .boton-historia {
        align-self: stretch;
        text-align: center
    }

    .seccion-tiempo {
        padding: 30px 20px 35px
    }

    .contenido-tiempo h2 {
        font-size: 28px
    }

    .container1 .card {
        flex: 0 0 260px
    }

    .mvv {
        margin: 30px auto
    }

    .cards {
        flex-direction: column;
        align-items: center;
        width: 100%
    }

    .cards .card {
        width: 100%;
        max-width: 340px;
        height: auto;
        min-height: 170px;
        padding: 25px 20px
    }

    .cards .card:hover {
        transform: none
    }

    .cards:hover>.card:not(:hover) {
        filter: none;
        transform: none
    }

    .seccion-equipo {
        padding: 30px 20px
    }

    .contenedor-equipo {
        flex-direction: column;
        align-items: center
    }

    .miembro {
        max-width: 100%;
        width: 100%
    }

    /* 👈 FOOTER CENTRADO COMO EN TU FOTO */
    .footer-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px 35px;
        align-items: center;
        text-align: center
    }

    .footer-box {
        max-width: 100%;
        width: 100%;
        text-align: center
    }

    .footer-box h2 {
        font-size: 26px
    }

    .footer-box h3 {
        font-size: 20px
    }

    .footer-box p {
        text-align: center
    }

    .footer-box a {
        text-align: center;
        padding-left: 0 !important
    }

    .footer-box a:hover {
        padding-left: 0 !important
    }

    .example-2 {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        justify-items: center;
        justify-content: center;
        margin: 0 auto;
        max-width: 260px
    }

    .example-2 .icon-content {
        margin: 0
    }

    .footer-bottom {
        text-align: center
    }

    .footer-bottom p {
        text-align: center
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 15px;
        right: 15px
    }
}

@media (max-width:480px) {
    .header-contenido h1 {
        font-size: 30px
    }

    .contenido-historia h2 {
        font-size: 24px
    }

    .logo-texto small {
        display: none
    }
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 990;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s
}

.menu-overlay.mostrar {
    opacity: 1;
    pointer-events: auto
}