.hero {
    position: relative;
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -10px;
    width: 104%;
    height: 104%;
    background-image: url('../img/fondo-nosotros.jpg');
    background-position: center;
    background-size: cover;
    filter: brightness(0.7) blur(4px);
    z-index: 1;
}

.nosotros-hero-content {
    position: relative;
    max-width: 1200px;
    padding: 0 20px;
    z-index: 2;
    text-align: center;
    opacity: 0.9;
}

.hero-title {
    font-family: Arial, sans-serif;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-description {
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: white;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}

.about-subtitle {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 2rem;
    text-align: center;
}

.section-form {
    opacity: 0;
    /* Inicialmente oculto */
    transform: translateY(20px);
    /* Desplazado hacia abajo */
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* Transición suave */
}

.section-form.show {
    opacity: 1;
    /* Visible */
    transform: translateY(0);
    /* Regresar a la posición original */
}

/* css/skin.css */
.icon-section {
    display: flex;
    flex-wrap: wrap;
    /* Permite que los elementos se ajusten en pantallas pequeñas */
    justify-content: space-around;
    margin-top: 20px;
}

.icon-item {
    padding: 20px;
    border-radius: 10px;
    width: 45%;
    /* Ancho por defecto para pantallas grandes */
    color: white;
    opacity: 0.9;
    /* Añade opacidad */
    transition: transform 0.3s;
    /* Transición suave al hacer hover */
}

.icon-item:hover {
    transform: scale(1.05);
    /* Efecto de aumento al pasar el ratón */
}

.vision {
    background-color: white;
    border: 2px solid rgba(211, 39, 33, 0.95);
    /* Color rojo con opacidad */
}

.vision h3,
.vision p {
    color: #130101;
}

.vision .icon {
    width: 60px;
    height: 60px;
    margin: 0;
}

.mision {
    background-color: white;
    border: 2px solid rgba(9, 8, 9, 0.95);
    /* Color negro con opacidad */
}

.mision h3,
.mision p {
    color: #130101;
}

.mision .icon {
    filter: brightness(100) invert(1);
    width: 70px;
    height: 70px;
}

.icon {
    width: 70px;
    height: 70px;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
    .icon-item {
        width: 100%;
        /* Cambiado a 100% para ocupar todo el ancho */
        margin-bottom: 30px;
        /* Aumentado el espacio entre elementos */
    }
}

/* Contenedor de la Timeline */
.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Encabezado de la Timeline */
.timeline-header {
    text-align: center;
    margin-bottom: 40px;
}

.timeline-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #111;
}

.timeline-header p {
    font-size: 1rem;
    color: #555;
}

/* Línea Vertical */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, transparent 0%, #3498db 50%, transparent 100%);
}

.timeline-line-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background-color: #3498db;
    transition: height 0.25s ease-out, opacity 0.25s ease-out;
    opacity: 0;
}

/* Elementos de la Timeline */
.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.timeline-item-date {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.timeline-item-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.timeline-item-content ul {
    list-style: none;
    margin-bottom: 15px;
}

.timeline-item-content ul li {
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 5px;
}

.timeline-item-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.timeline-item-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Indicador de Timeline */
.timeline-item::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 20px;
    width: 12px;
    height: 12px;
    background-color: #fff;
    border: 4px solid #3498db;
    border-radius: 50%;
}

/* Animación de la Línea de Progreso */
.timeline-line-progress.active {
    opacity: 1;
}

/* Responsividad */
@media (max-width: 768px) {
    .timeline {
        padding-left: 20px;
    }

    .timeline-line {
        left: 10px;
    }

    .timeline-item::before {
        left: -10px;
    }

    .timeline-header h2 {
        font-size: 1.5rem;
    }

    .timeline-header p {
        font-size: 0.875rem;
    }

    .timeline-item-content {
        padding: 15px;
    }

    .timeline-item-date {
        font-size: 0.75rem;
    }

    .timeline-item-content p,
    .timeline-item-content ul li {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        text-align: center; /* ✅ Centra el título "Sobre Nosotros" */
    }

    .hero-description {
        font-size: 1rem;
        text-align: justify; /* ✅ Justifica el texto de descripción */
    }

    .site-wrapper p {
        text-align: justify; /* ✅ Justifica todos los párrafos de la sección */
    }

    .icon-item {
        width: 100%;
        margin-bottom: 30px;
    }

    .icon-item h3 {
        font-size: 2rem;
        text-align: center; /* ✅ Centra los títulos "Visión" y "Misión" */
    }
}
