html {
scroll-behavior: smooth;
scroll-padding-top: 100px;
overflow-x: hidden;
}

/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- BLOQUEAR SELECCIÓN Y ARRASTRE --- */
html,
body,
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
img,
a,
svg {
    -webkit-user-drag: none;
}

/* --- BODY Y FONDO --- */
body {
  position: relative;
  font-family: Arial, sans-serif;
  background-color: #000;
  margin: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("images/background_01.png") no-repeat center center;
  background-size: cover;
  background-attachment: scroll; /* 👈 evita bugs en móvil */
  opacity: 1;
  z-index: -1;
  pointer-events: none;
  display: block;
}


/* --- HEADER --- */
header {
    position: relative;
    width: 100%;
    height: 70px;
    background-color: #f0f0f0e4;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
    z-index: 999;
    transition: background-color 1s ease, transform 0.3s;
}


.logo-titulo {
    display: flex;
    align-items: center;
    gap: 50px;
}

.logo {
    height: 45px;
}

header h1 {
    font-size: 20px;
    color: #333;
}

header nav a {
    align-items: center;
    justify-self: right;
    color: #333;
    text-decoration: none;
    margin-right: 20px;
    font-weight: bold;
}

/* --- HERO PORTADA --- */
.hero-portada {
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0);
    border-radius: 18px;
    padding: 50px 20px 40px 20px;
}
.hero-portada h1 {
    font-size: 3em;
    color: #fff;
    margin-top: 50px;
    margin-bottom: 0px;
    letter-spacing: 2px;
}

.hero-portada h2 {
    font-size: 2em;
    color: #e0e0e0;
    margin-top: 28px;
    margin-bottom: 78px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}


.hero-portada img {
    max-width: 500px;
    width: 90%;
    margin: 0 auto;
}


.hero-nav ul {
    display: flex;
    justify-content: center;
    gap: 1rem;        /* espacio entre botones */
    list-style: none;
    padding: 0;
    margin: 1rem 0 0; /* margen superior para separarlos del título */
}

.hero-nav a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #0055a5;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: bold;
    transition: background-color 0.5s, transform 0.4s;
}

.hero-nav a:hover {
    background-color: #003f7f;
    transform: translateY(-2px);
}

/* --- Banner de Portada --- */

.main-banner {
    background: #f0f0f000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 30px;
    border-radius: 0px 0px 10px 10px;
    margin-bottom: 50px;
    position: relative;
}
.banner-content {
    max-width: 60%;
}
.main-banner h2 {
    font-size: 2.5em;
}
.main-banner .highlight {
    color: #0074d9;
    background: #fff;
    padding: 0 8px;
    border-radius: 6px;
}
.main-banner p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 18px;
}
.banner-btn {
    display: inline-block;
    background: #d7263d;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
}

.banner-btn:hover {
    background: #b71c2a;
}

.banner-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.banner-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 60%;
}

.banner-title h2 img {
    max-width: 750px;
    width: 100%;
    object-fit: contain;
    display: flex;
    align-items: center;
    font-size: 2rem;
}

.banner-title h2 {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 2rem;
}

.linea-logo {
    height: 5em;
    width: auto;
}

.banner-left p {
    margin-top: 10px;
    font-size: 1.2em;
}

.banner-img-wrapper {
    flex: 1 1 40%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    height: 100%;
}

.banner-img {
    max-width: 750px;
    width: 100%;
    display: block;
    object-fit: contain;
}

@media (max-width: 900px) {
    .banner-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .banner-img-wrapper {
        justify-content: center;
        width: 100%;
        height: auto;
    }
    .banner-img {
        max-width: 98vw;
        margin: 0 auto;
    }
    .banner-logo {
        max-width: 98;
        margin: 0 auto;
    }
    .banner-title {
        justify-content: center;
    }
    .banner-left {
        align-items: center;
        text-align: center;
    }
}

/* --- CONTENEDOR PRINCIPAL Y COLUMNAS --- */
    .container {
        max-width: 1000px;
        margin: 40px auto;
        background-color: #f0f0f0e4;
        border-radius: 10px;
        padding: 30px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    .left-column {
        flex: 1 1 60%;
    }
    .right-column {
        flex: 1 1 35%;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
    }
    .center-column {
        flex: 1 1 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
    .container h2 {
        margin-bottom: 10px;
        color: #333;
    }
    .container p {
        margin-bottom: 20px;
        line-height: 1.6;
        color: #555;
        border-radius: 10px;
    }
    .full-image {
        flex: 1 1 100%;
        margin-top: 10px;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 10px;
    }
    video {
        max-width: 100%;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

/* --- CARRUSEL DE IMÁGENES --- */

    .carrusel {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .slides {
    display: flex;
    transition: transform 0.6s ease;
    width: 100%;
    }

    .slide {
    min-width: 100%;
    position: relative;
    text-align: center;
    }

    .slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
    }

    /* --- Alinear el carrusel con el texto --- */
    .left-column .carrusel,
    .center-column .carrusel {
    width: calc(100% - 20px); /* evita que toque los bordes */
    margin-left: auto;
    margin-right: auto;
    }

    /* --- Botones de navegación --- */
    .prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    font-size: 1.6em;
    cursor: pointer;
    width: 44px;         /* ancho igual al alto */
    height: 44px;        /* alto igual al ancho */
    padding: 0;          /* sin padding extra */
    border-radius: 50%;  /* círculo perfecto */
    display: flex;       /* centra el ícono */
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
    z-index: 10;
    }

    .prev:hover, .next:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: translateY(-50%) scale(1.1);
    }

    .prev { left: 12px; }
    .next { right: 12px; }

    .caption {
    color: #fff;
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 1.1em;
    border-radius: 0 0 12px 12px;
    }

/* --- FOOTER --- */
    footer {
        background-color: #111;
        padding: 40px 20px 20px;
        margin-top: 40px;
        border-top: #ccc solid 1px;
        display: flex;
        flex-direction: column;
    }
    .footer-container {
        max-width: 1000px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 30px;
    }
    .footer-contact h3,
    .footer-social h3 {
        margin-bottom: 15px;
        font-size: 18px;
        color: #fff;
    }
    .footer-contact p {
        font-size: 14px;
        color: #f0f0f0;
    }
    .footer-contact a {
        font-size: 14px;
        color: #ccc;
        text-decoration: underline;
    }
    .footer-social .social-icons {
        display: flex;
        flex-direction: row;
        gap: 15px;
    }
    .footer-social .social-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: #222;
        transition: transform 0.3s, background 0.3s;
    }
    .footer-social .social-icons a img {
        width: 20px;
        height: 20px;
        filter: brightness(0) invert(1);
    }
    .footer-social .social-icons a:hover {
        background: #0055aa;
        transform: translateY(-3px);
    }
    .footer-credits {
        text-align: center;
        font-size: 12px;
        color: #aaa;
        border-top: 1px solid #333;
        padding-top: 15px;
        width: 100%;
        background: #111;
        margin: 0;

    }

    /* --- RESPONSIVE --- */
    @media (max-width: 600px) {
        .hero-portada h1 { font-size: 2em; }
        .hero-portada h2 { font-size: 1.2em; }
        .hero-portada img { max-width: 98vw; }
        .hero-portada { padding: 30px 5px 20px 5px; }
    }
    @media (max-width: 768px) {
        .container {
            flex-direction: column;
            padding: 10px;
        }
        .left-column,
        .right-column,
        .full-image {
            flex: 1 1 100%;
            max-width: 100%;
            margin: 0;
            padding: 0;
        }
        .hero-portada {
            padding: 30px 5px 20px 5px;
        }
        .footer-container {
            flex-direction: column;
            text-align: center;
        }
        .footer-social .social-icons {
            justify-content: center;
        }
        .center-column {
            width: 100vw;
            max-width: 100vw;
            padding: 0;
        }
    }