/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #000; /* Black background */
    color: #fff; /* White text */
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header */
header {
    background: #000;
    color: #fff;
    padding: 1rem 0;
    border-bottom: 3px solid #e74c3c; /* Red border */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 50px; /* Adjust as needed */
    width: auto;
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #e74c3c; /* Red hover/active color */
}

/* Hero Section */
.hero-section {
    background: url('') no-repeat center center/cover; /* Add a relevant background image */
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    background-blend-mode: overlay;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #e74c3c; /* Red headline */
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
}

.btn {
    display: inline-block;
    background: #e74c3c; /* Red button */
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #c0392b; /* Darker red on hover */
}

/* Welcome Section */
.welcome-section {
    padding: 50px 0;
    text-align: center;
    background-color: #1a1a1a; /* Slightly lighter black for contrast */
}

.welcome-section h2 {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.welcome-section p {
    max-width: 800px;
    margin: auto;
    font-size: 1.1em;
}

/* Highlights Section */
.highlights-section {
    padding: 50px 0;
    background-color: #000;
}

.highlights-section .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.highlight-item {
    flex: 1;
    min-width: 280px;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-item h3 {
    color: #e74c3c;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    border-top: 3px solid #e74c3c;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .footer-logo img {
    height: 40px; /* Adjust as needed */
    margin-bottom: 15px;
}

footer .footer-links {
    list-style: none;
    margin-bottom: 15px;
}

footer .footer-links li {
    display: inline;
    margin: 0 10px;
}

footer .footer-links li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .footer-links li a:hover {
    color: #e74c3c;
}

footer p {
    font-size: 0.9em;
}

/* Vision Section - Nueva Sección */
.vision-section {
    background: url('webb.png') no-repeat center center/cover; /* ¡IMPORTANTE! Cambia 'path/to/your/vision_background.jpg' por la ruta de tu imagen */
    background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: overlay;
    color: #fff;
    text-align: right; /* ¡Cambiado de 'center' a 'right'! */
    padding: 80px 0;
    min-height: 400px;
    display: flex;
    /* Al centrar el contenido verticalmente y a la derecha horizontalmente */
    align-items: center; /* Centra verticalmente el contenido */
    justify-content: flex-end; /* Alinea el contenido a la derecha horizontalmente */
    flex-direction: column;
}

.vision-section .container {
    /* Si el contenedor tiene un ancho fijo, el contenido dentro de él se alineará a la derecha. */
    /* Asegúrate de que .container tenga un ancho definido, como width: 80%; */
}

.vision-section h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #e74c3c;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.vision-section p {
    font-size: 1.15em;
    margin-bottom: 30px;
    max-width: 700px; /* Si este max-width es muy grande, el párrafo no se notará alineado a la derecha */
    color: #f0f0f0;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    /* Para que el párrafo respete el text-align: right,
       es buena idea darle un margin-left: auto; cuando está dentro de un flex container
       con justify-content: flex-end; */
    margin-left: auto; /* Esto ayuda a empujar el párrafo a la derecha */
}

.vision-section .btn {
    background: #e74c3c;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    /* Asegurar que el botón se alinee a la derecha */
    margin-left: auto; /* Esto empuja el botón a la derecha dentro del contenedor flex */
}

.vision-section .btn:hover {
    background: #c0392b;
}

/* Nueva Sección de Innovación con Video de YouTube */
.innovacion-section {
    position: relative;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 80px 0;
    text-align: center;
    background-color: #000; /* Fondo de respaldo si el video de YouTube no carga */
}

/* Contenedor del Iframe de YouTube para el fondo */
.innovacion-section .youtube-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Crucial para permitir clics en el contenido de arriba */
    overflow: hidden;
    z-index: 1; /* Detrás del overlay y contenido */
}

.innovacion-section .youtube-background-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw; /* Ajusta a todo el ancho de la ventana */
    height: 56.25vw; /* Ratio 16:9 de alto respecto al ancho (100/16*9 = 56.25) */
    min-height: 100%;
    min-width: 100%;
    transform: translate(-50%, -50%); /* Centra el video */
    /* Asegura que el video siempre cubra la sección */
    /* Si el viewport es más ancho que 16:9, el alto del iframe será 100% y el ancho se calculará */
    /* Si el viewport es más alto que 16:9, el ancho del iframe será 100% y el alto se calculará */
    object-fit: cover; /* Asegura que el video cubre el área sin barras negras */
}

/* El overlay sobre el video (mismo que antes) */
.innovacion-section .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

/* El contenedor del contenido (mismo que antes) */
.innovacion-section .content-overlay {
    position: relative;
    z-index: 3;
    color: #fff;
    width: 80%;
    max-width: 900px;
    margin: auto;
}

/* Estilos de texto y botón (mismos que antes, con las sombras) */
.innovacion-section h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #e74c3c;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
}

.innovacion-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #f0f0f0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
}

.innovacion-section .btn {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.innovacion-section .btn:hover {
    background: #c0392b;
}