@import url(animations.css);

:root {
    --yellow1: #EBD051;
    --yellow2: #E3A540;
    --red-wine1: #C33624;
    --red-wine2: #50160E;
    --red-wine3: #7D2118;
    --light: #f8f9fa;
    --dark: #212529;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: box-shadow: 0 20px 40px rgba(249, 249, 249, 0.219);

    /**/
    --azul-profundo: #0a2240;
    --dorado: #d4af37;
    --dorado-claro: #e8c96c;
    --blanco: #ffffff;
    --gris-claro: #f5f7fa;
    --gris-oscuro: #333333;
    --navy: #142130;
    --gold: #EBD051;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--red-wine2);
}

h2 {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--yellow2);
    transition: var(--transition);
    display: flex;
    text-align: center;
}

section {
    padding: 100px 0;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--yellow2);
    color: var(--red-wine2);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(227, 165, 64, 0.3);
}

.btn:hover {
    background: var(--yellow1);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(227, 165, 64, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--yellow2);
    color: var(--yellow2);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--yellow2);
    color: var(--red-wine2);
}

.text-center {
    text-align: center;
}

.preloader {
    background: var(--red-wine2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    border: 5px solid var(--yellow2);
    width: 80px;
    height: 80px;
    border-top: 5px transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Header */
header {
    background: linear-gradient(to right, #142130, #142130f3);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    width: 300px;
    transition: filter 0.3s;
}
.logo:hover{
    filter: brightness(1.1) drop-shadow(0 2px 8px #EBD05144);
}

.nav-links {
    display: flex;
    list-style: none;
    position: relative;
    z-index: 1001;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--yellow2);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(.77,0,.18,1);
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--yellow2);
}

.nav-links a:hover:after,
.nav-links a:focus:after {
    width: 100%;
}

.mobile-menu {
    position: fixed;
    right: 0; 
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--yellow2);
    z-index: 1201;
    transition: color 0.3s;
}
.mobile-menu .bar {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px auto;
    background: var(--azul-profundo);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-menu.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/*Sub-menu*/
.nav-links .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy);
    min-width: 220px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(.77,0,.18,1);
    z-index: 1001;
    display: block;
}
.nav-links li:hover > .submenu,
.nav-links li:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-links .submenu li {
    margin: 0;
    width: 100%;
    text-decoration: none;
    list-style: none;
}

.nav-links .submenu a {
    color: var(--light);
    padding: 12px 20px;
    width: 100%;
    display: block;
    transition: background 0.2s, color 0.2s;
}

.nav-links .submenu a:hover {
    background: rgba(235, 208, 81, 0.1);
    color: var(--yellow2);
}

.nav-links>li {
    position: relative;
}
Flecha animada en submenús */
.nav-links > li > a i.fas.fa-chevron-down:hover {
    margin-left: 7px;
    font-size: 0.85em;
    transition: transform 0.3s;
}

.nav-links>li:hover .submenu,
.nav-links>li:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: all 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #141e30ee, #243b55cd);
    z-index: 1;
}

.slide-1 {
    background-image: url('../img/speaker-9391455_1920.jpg');
}

.slide-2 {
    background-image: url('../img/con\ jovenes\ de\ la\ fundacion\ terra.jpg');
}

.slide-3 {
    background-image: url('../img/reunion\ marcial\ solis\ 2.jpg');
}

.slide-4 {
    background-image: url('../img/capacitacion\ marcial\ solis\ 2.jpg');
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    text-align: center;
    z-index: 3;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--yellow1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: white;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;

}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--yellow1);
    transform: scale(1.3);
}

/*Sobre Nosotros*/

/* About Section */
.about {
    
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.about-image {
    background: linear-gradient(to bottom, #f5f5f5e6, #f8f9fa60), url(../img/con\ jovenes\ de\ la\ fundacion\ terra.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 25px;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);  
}

.about-image img {
    display: flex;
    margin: auto;
    padding-top: 200px;
}

.about-image:hover .about-img {
    transform: scale(1.05);
}

.about-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    text-align: justify;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.8;
}
.about-text span{
    color: var(--red-wine2);
}
.mission-vision {
    background: linear-gradient(to bottom, #f8f9fa61,#f8f9fae2, #f8f9faf8), url(../img/2149300715.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.mission-vision-grid {
    display: flex;

}

.mision,
.vision {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px;
    text-align: center;
}
.mision i{
    color: var(--yellow2);
    font-size: 4rem;
}
.vision i{
    color: var(--yellow2);
    font-size: 4rem;
}
/*Valores*/

.contenedor-valores {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.values-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.valores {
    display: flex;

}

.values {
    text-align: center;
    border-radius: 10px;
    margin: 0;
    padding: 0;
    height: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all ease 0.5s;
    overflow: hidden;
    position: relative;
}
.img_valores{
    width: 100%;
    height: 200px;
    opacity: 0.1;
}

.values p {
    padding: 0px 20px 40px 20px;
}

.values h3 {
    padding-top: 50px;
    padding-left: 40%;
    position: absolute;
    margin: auto;
}

.values i {
    background: #243b55;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 30%;
    align-items: center;
    justify-content: center;
    color: #E3A540;
    font-size: 30px;
}

.values:hover {
    cursor: pointer;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--yellow2);
}

/*Nuestra Historia*/

.historia {
    background: linear-gradient(to right, #142130, #243b55, #142130);
}

.container-historia-marcial {
    display: flex;
    flex-direction: column

}

.contenedor-historia {
    flex: 1;
    text-align: center;
}

.contenedor-historia h2 {
    color: var(--yellow1);
}

.contenedor-historia p {
    color: var(--light);
}

/*Marcial*/
/* Optimización visual y animación para la sección de Marcial Solís */
.contenedor-marcial {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0;
}

.img-marcial.animated-border {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-marcial.animated-border::before {
    content: "";
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 50%;
    background: conic-gradient(
        #2a4a6a, #ffb300, #ffb300, #243b55, #243b55
    );
    z-index: 1;
    animation: spin 3s linear infinite;
}

.img-marcial.animated-border img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #fff;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}


.marcial-sobre-mi {
    text-align: center;
    max-width: 320px;
}

.marcial-sobre-mi h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    
}

.marcial-sobre-mi p {
    font-size: 1rem;
    padding: 20px 0;
}

.marcial-sobre-mi h3 {
    color: #E3A540;
    font-size: 24px;
}

.marcial-sobre-mi p {
    color: #EBD051
}

/*Fondo de Becas*/
.scholarship-section {
    padding: 50px 0;
    text-align: center;
    background: linear-gradient(135deg, #0a2240cc 100%, #ffb300 10%, #0a2240cc 100%),url(../img/grupo-de-personas-trabajando-en-un-plan-de-negocios-en-una-oficina.jpg);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.scholarship-section h2 {
    color: var(--dorado);
}
.scholarship-section p {
    color: var(--blanco);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.marquee {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    background-color: #0a2240c4;
    padding: 20px 0;
}
.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}
.marસ, .marquee-content span {
    font-size: 1.2em;
    margin: 0 50px;
    color: var(--dorado-claro)
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.marquee-content:hover {
    animation-play-state: paused;
}

/*Ofrecemos*/
.contenedor-ofrecemos {
    background: linear-gradient(to right, #142130, #243b55, #142130);
    display: flex;
    flex-direction: column;
    text-align: center;

}

.text-ofrecemos {
    margin-bottom: 40px;
}

.text-ofrecemos h2 {
    color: #EBD051;
}

.text-ofrecemos p {
    color: var(--light);
}

.grid-ofrecemos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 6rem;
    padding: 20px;
    gap: 30px;
    animation: zoomIn 0.8s ease-out forwards;
    animation-timeline: view();
    animation-range: entry 0%;
}

.ofrecemos i {
    color: #E3A540;
    font-size: 2.5rem;

}

.ofrecemos p {
    color: var(--light);
}

.ofrecemos h3 {
    color: var(--yellow2);
}

/* Services */
.services {
    background: linear-gradient(135deg, rgba(235, 208, 81, 0.05) 0%, rgba(195, 54, 36, 0.05) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    transition: transform 1s ease, opacity 1s ease;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
   
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--yellow2);
}

.service-icon {
    font-size: 3rem;
    color: var(--yellow2);
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    color: var(--red-wine1);
    transform: scale(1.2);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--red-wine1);
}

/* Estadísticas */
.stats-section {
    background: linear-gradient(135deg, #0a2240cc 100%, #ffb300 10%, #0a2240cc 100%),url(../img/grupo-de-personas-trabajando-en-un-plan-de-negocios-en-una-oficina.jpg);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
}

.stats-section .section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.stats-section .section-header h2 {
    color: var(--yellow2);
    font-size: 3rem;
    margin-bottom: 20px;
}

.stats-section .section-header h2:after {
    
    left: 50%;
    transform: translateX(-50%);
}

.stats-section .section-header p {
    color: var(--dorado-claro);
    font-size: 1.2rem;
    font-weight: 500;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.716);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--red-wine2);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '+';
    font-size: 2.5rem;
    color: var(--yellow2);
    position: absolute;
    top: 0;
    right: -20px;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--red-wine2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sección de Cursos */
.training {
    background: linear-gradient(to right, #142130, #243b55, #142130);
    display: flex;
    text-align: center;
    /* background-color: var(--light-bg); */
}

.section-title-capacitaciones h2 {
    color: var(--yellow2);
}

.section-title-capacitaciones>p {
    color: var(--light);
}
.titulo_taller{
   text-align: left;
}
.titulo_taller h1{
    color: var(--gold);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* grid-template-columns: 1fr 1fr 1fr; */
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(14, 9, 9, 0.219);
    transition: all ease 0.9s;
    position: relative;
    animation: flipIn 0.8s ease-out forwards;
    animation-timeline: view();
    animation-range: entry 0%;
}

.course-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--yellow1), var(--yellow2));
    transform: scaleX(0);
    transform-origin: left;
    transition: all ease 0.9s;
    z-index: 1;
}

.course-card:hover {
    transform: translateY(-5px);

    .course-img img {
        opacity: 0.9;
    }
}

.course-card:hover:before {
    transform: scaleX(1);
}

.course-img {
    height: 220px;
    overflow: hidden;
    transition: all ease 1s;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: all ease 0.9s
}

.course-content {
    height: 300px;
    padding: 10px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-evenly;
    transition: all ease 2s;
}

.section-container-capacitacion {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.section-container-capacitacion>.btn {
    display: flex;
    align-items: center;
    align-content: center;
    width: 80%;
}

.course-content h3 {
    color: var(--yellow2);
    margin-top: 50px;
    font-size: 1.4rem;
}

.course-content p {
    margin-bottom: 20px;
    color: var(--light);
    display: none;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    color: var(--yellow1);
    font-size: 0.9rem;
}

/* Sección de Modalidades */
.modalities {
    padding: 5rem 0;
}

.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modalities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.modality-card {
    background: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(35, 25, 25, 0.219);
    text-align: center;
}

.modality-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.modality-card h3 {
    font-size: 1.6rem;
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--red-wine1);
}

.modality-card p {
    padding: 0 1.5rem 1.5rem;
}

/* Testimonials */
.testimonials {
    background: var(--azul-profundo);
    color: white;
}

.testimonials h2 {
    color: var(--yellow2);
}

.testimonials h2:after {
    background: var(--yellow2);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: linear-gradient(to bottom, var(--azul-profundo) 80%, var(--yellow2) 100%, var(--azul-profundo) 100%);
    padding: 40px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(235, 208, 81, 0.2);
    transform: translateY(50px);
    transition: transform 1s ease, opacity 1s ease;
}

.testimonial-card.reveal {
    transform: translateY(0);
    opacity: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    padding-left: 30px;
}

.testimonial-text:before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 5rem;
    color: rgba(235, 208, 81, 0.2);
    font-family: Georgia, serif;
}

.client {
    display: flex;
    align-items: center;
}

.client-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
    border: 3px solid var(--yellow2);
}

.client h4 {
    color: var(--dorado);
}

.client p {
    color: #e8c96cb2;
}

/* Línea de tiempo */
.timeline-section {
    background: linear-gradient(to bottom, #0a2240, #7D2118, #142130);
    overflow: hidden;
    padding: 100px 0;
}

.section-title-camino {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

.section-title-camino h2 {
    color: var(--yellow2);
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Timeline Horizontal */
.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--yellow1), var(--yellow2), var(--yellow1));
    border-radius: 2px;
    z-index: 1;
}

.timeline-item-horizontal {
    flex: 1;
    max-width: 220px;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    margin: 0 10px;
}

.timeline-item-horizontal.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--yellow1), var(--yellow2));
    border: 4px solid var(--red-wine2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red-wine2);
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item-horizontal:hover .timeline-number {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(235, 208, 81, 0.4);
}

.timeline-content {
    background: linear-gradient(to top, #243b55, #0a2240);
    padding: 25px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #243b55;
}

.timeline-content h3 {
    color: var(--dorado-claro);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.timeline-content p {
    color: var(--light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.timeline-item-horizontal:hover .timeline-content {
    background: linear-gradient(to top, #2a4a6a, #0f2a4a);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Animación de progreso */
.timeline-progress {
    position: absolute;
    top: 50px;
    left: 0;
    height: 4px;
    background: var(--yellow1);
    border-radius: 2px;
    z-index: 1;
    transition: width 0.5s ease;
}


/* Contact */
.contact-content {
    display: flex;
    gap: 60px;
}

.contact-info {
   flex: 1;
}

.contact-info-liderando {
    margin-bottom: 40px;

}

.contact-info-item {
    display: flex;
    align-content: center;
    margin-bottom: 40px;
    transition: transform 1s ease, opacity 1s ease;
}

.contact-info-liderando h3 {
    color: var(--yellow2);
}

.contact-info-liderando {
    border: 10px solid transparent;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    position: relative;
    background: linear-gradient(to bottom, #14213047, #e3a440c9), url(../img/con\ jovenes\ de\ la\ fundacion\ terra.jpg);
    background-size: cover;
    background-position: center;
    color: var(--light);
    padding: 40px;
    text-align: center;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-info-liderando::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* sombra para mejor legibilidad */
    z-index: 1;
}

.contact-info-liderando>* {
    position: relative;
    z-index: 2;
}

.contact-info-liderando img {
    max-width: 150px;
    margin-top: 20px;
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--yellow2);
    margin-right: 25px;
    margin-top: 5px;
}

.contact-form {
    flex: 1;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(50px);
    transition: transform 1s ease, opacity 1s ease;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--red-wine2);
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(80, 22, 14, 0.2);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(235, 208, 81, 0.05);
}

.form-control:focus {
    border-color: var(--yellow2);
    outline: none;
    box-shadow: 0 0 0 3px rgba(235, 208, 81, 0.2);
    background: white;
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}
.caja_boton{
    display: flex;
    justify-content: center;
}
/* Footer */
footer {
    background:linear-gradient(to bottom,var(--light),var(--light),var(--azul-profundo),var(--azul-profundo));
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-rows: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    align-content: center;
    text-align: center;
    width: 100%;
   
}
.footer-about{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-logo {
    width: 400px;
    height: auto;
    display: block;

}

.footer-about p {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--yellow1);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--yellow1);
    color: var(--red-wine2);
    transform: translateY(-5px);
}

.footer-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    color: var(--yellow1);
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--yellow2);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--yellow1);
    padding-left: 8px;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .navbar img {
        margin: auto;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }

    .about-image,
    .about-text {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar img {
        margin: auto;
    }

    .about-content {
        width: 100%;
        display: flex;
    }

    .about-image img {
        display: flex;
        margin: auto;
        padding-top: 100px;
    }
    .about-image{
        height: 300px;
    }

    .about-text {
        text-align: justify;
    }

    .about-img {
        width: 100%;
        display: block;
        transition: transform 0.8s ease;
    }

    .nav-links {
        position: fixed;
        top: 105px;
        right: -100%;
        background: var(--navy);
        width: 250px;
        height: calc(100vh - 80px);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .mobile-menu {
        display: block;
    }
    .mobile-menu:hover{
        color: var(--gris-claro);
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.3rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    .btn-outline {
        margin-left: 0;
        margin-top: 15px;
        display: block;
    }
    /* Botones 100% ancho solo en stacks/formularios */
    .section-container-capacitacion > .btn,
    .contact-form .btn,
    #contactForm .btn {
        width: 100%;
        display: block;
        margin-bottom: 15px;
    }
    .mission-vision-grid{
        display: flex;
        flex-direction: column;
        text-align: justify;
    }
    .container-historia-marcial{
        display: flex;
        flex-direction: column;
    }
    .historia{
        display: flex;
        flex-direction: column;
    }
    .contenedor-marcial{
        margin-top: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content:center ;
        align-content: center;
        text-align: center;
    }
    #contactForm{
        display: flex;
        flex-direction: column;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-text {
        font-size: 0.9rem;
    }

    .stats-section .section-header h2 {
        font-size: 2rem;
    }
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        bottom: 20px;
        right: 20px;
    }
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        bottom: 70px;
        right: 22px;
    }
}

@media (max-width: 480px) {
   
    .navbar img {
        margin: auto;
    }

    .about-content {
        width: 100%;
        display: flex;
    }

    .about-image img {
        display: flex;
        margin: auto;
        padding-top: 100px;
    }
    .about-image{
        height: 300px;
    }

    .about-text {
        text-align: justify;
    }

    .about-img {
        width: 100%;
        display: block;
        transition: transform 0.8s ease;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2rem;
    }
    .mission-vision-grid{
        display: flex;
        flex-direction: column;
    }
    .container-historia-marcial{
        display: flex;
        flex-direction: column;
    }
    .historia{
        display: flex;
        flex-direction: column;
        
    }
    .contenedor-marcial{
        margin-top: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content:center ;
        align-content: center;
        text-align: center;
    }
    .grid-ofrecemos{
        display: grid;
        grid-template-columns: 1fr;
    }
    .modalities-grid{
        display: grid;
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-text {
        font-size: 1rem;
    }

    .stats-section .section-header h2 {
        font-size: 2.5rem;
    }
    
    .timeline-horizontal {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .timeline-item-horizontal {
        max-width: 100%;
        margin: 0;
    }

    .timeline-horizontal::before {
        display: none;
    }

    .timeline-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

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

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .timeline-item{
        display: none;
    }
    .footer-about {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #contactForm{
        display: flex;
        flex-direction: column;
    }
    .whatsapp-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        bottom: 14px;
        right: 14px;
    }
    .back-to-top {
        width: 34px;
        height: 34px;
        font-size: 1rem;
        bottom: 56px;
        right: 10px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1200;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
}
.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-5px) scale(1.08);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 35px;
    z-index: 1200;
    background: var(--yellow2);
    color: var(--red-wine2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, background 0.3s, transform 0.3s;
}
.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-10px);
}
.back-to-top:hover {
    background: var(--yellow1);
    color: var(--red-wine1);
    transform: translateY(-15px) scale(1.08);
}

@media (max-width: 768px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        bottom: 20px;
        right: 20px;
    }
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        bottom: 70px;
        right: 22px;
    }
}
@media (max-width: 480px) {
    .whatsapp-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        bottom: 14px;
        right: 14px;
    }
    .back-to-top {
        width: 34px;
        height: 34px;
        font-size: 1rem;
        bottom: 56px;
        right: 10px;
    }
    .btn{
        text-align: center;
    }
}


