:root {
    --primary-color: #e67e22;
    /* Naranja */
    --secondary-color: #8B4513;
    /* Café */
    --light-orange: #f39c12;
    --dark-brown: #5D4037;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --yellow-branch: #F1C40F;
    --blue-branch: #3498DB;
    --red-branch: #E74C3C;
    --green-branch: #2ECC71;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background-color: var(--light-gray);
    color: var(--dark-gray);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

span {
    color: var(--primary-color);
}


/* Ajuste para secciones considerando header fijo */
section {
    scroll-margin-top: 70px;
    /* Altura aproximada de tu header */
}

/* Temporalmente desactivar transiciones problemáticas */
body.no-transition * {
    transition: none !important;
    animation: none !important;
}

#backToTop {
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
}

/* Navbar */
.navbar {
    background: rgba(230, 126, 34, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar.scrolled {
    background: rgba(139, 69, 19, 0.95);
    padding: 10px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand img.logo-img {
    height: 40px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Hero Section */


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Ajusta para mejor contraste */
}

/* Asegura legibilidad del texto */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-section {
    background-image: url('../img/imagen2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--white);
    height: 100vh;
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section p.lead {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero-section .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-section .btn-primary {
    background-color: var(--light-orange);
    color: var(--white);
    border: 2px solid var(--light-orange);
}

.hero-section .btn-primary:hover {
    background-color: var(--dark-brown);
    border-color: var(--dark-brown);
    color: var(--white);
}

.hero-section .btn-outline-light {
    border: 2px solid var(--white);
}

.hero-section .btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.hero-section img.floating {
    animation: floating 3s ease-in-out infinite;
}


@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.wave-divider .shape-fill {
    fill: var(--light-gray);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.about-img-container {
    position: relative;
    width: 100%;
}

.about-img-main {
    width: 85%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    z-index: 1;
    position: relative;
}

.about-img-secondary {
    width: 60%;
    position: absolute;
    bottom: -30px;
    right: 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
    border: 5px solid var(--white);
}

.feature-item {
    display: flex;
    margin-bottom: 20px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-text h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Branches Section */
.branches-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.branches-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 0;
}

.section-header {
    position: relative;
    z-index: 1;
}

.branch-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
}

.branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--yellow-branch);
}

.branch-card[data-branch="exploradores"]::before {
    background-color: var(--blue-branch);
}

.branch-card[data-branch="pioneros"]::before {
    background-color: var(--red-branch);
}

.branch-card[data-branch="rovers"]::before {
    background-color: var(--green-branch);
}

.branch-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.branch-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.branch-card:hover .branch-icon {
    transform: rotateY(180deg);
}

.branch-card h3 {
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.branch-card p {
    color: var(--dark-gray);
    opacity: 0.8;
    margin-bottom: 20px;
}

.branch-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.branch-details a {
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    background-color: var(--white);
}

.branch-details a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.branch-card:hover .branch-details {
    max-height: 200px;
}

/* Leaders Section */
.leaders-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.05), rgba(139, 69, 19, 0.05));
}

.leader-card {
    display: flex;
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    height: 400px;
}

.leader-video {
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.leader-video img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


.leader-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.leader-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.position {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.leader-bio {
    margin-bottom: 25px;
}

.leader-social {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.leader-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.leader-social a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

ol {
    list-style-type: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.boton-envio {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.boton-envio:hover {
    background-color: var(--dark-brown);
    color: var(--white);
}


.contact-form .form-control,
.contact-form .form-select {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.25);
}

.contact-form textarea.form-control {
    min-height: 150px;
}

.contact-form .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 0;
}

.footer-logo {
    height: 50px;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
}

.footer-link:hover::after {
    width: 100%;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Animaciones personalizadas */
@keyframes leafShake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-5deg);
    }
}

.leaf-animate {
    animation: leafShake 2s ease-in-out infinite;
}

.modal-content {
    border-radius: 1rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    background: #fdfdfd;
    border: none;
}

.modal-header {
    background-color: var(--light-orange);
    color: #ffffff;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
}

.modal-body {
    color: var(--dark-gray);
    padding: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-body h6 {
    font-weight: 600;
    margin-top: 1.25rem;
    color: var(--light-orange);
}

.btn-close {
    filter: invert(1);
}



/* Responsive Design */
/* Responsive Design */
@media (max-width: 992px) {
    .leader-card {
        flex-direction: column;
    }

    .leader-video {
        min-height: 300px;
    }

    .hero-section .floating {
        display: block;
        /* Mostrar solo en desktop */
    }

    .hero-section {
        padding: 180px 0 100px;
        text-align: left;
        /* Alinear a la izquierda en desktop */
    }

    .hero-section h1 {
        font-size: 3.5rem;
    }

    .hero-section p.lead {
        font-size: 1.5rem;
    }

    .hero-section .btn {
        padding: 12px 30px;
    }

    .feature-item {
        padding: 0 15%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-item {
        padding: 0 15%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .carousel-control-next,
    .carousel-control-prev {
        width: 40px;
        height: 40px;
    }

    .leader-info {
        width: 100%;
        padding: 0 15%;
    }

    .leader-card {
        display: flex;
        background-color: var(--white);
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        margin-bottom: 30px;
        position: relative;
        z-index: 1;
        height: 600px;
    }

    .leader-video {
        width: 100%;
    }

    .fot{
        display: flex;
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    section {
        scroll-margin-top: 50px;
    }

    /* Reducir padding en todas las secciones */
    .hero-section,
    .about-section,
    .branches-section,
    .leaders-section,
    .contact-section {
        padding: 40px 0 !important;
    }

    /* Ajustes específicos para el hero */
    .hero-section {
        padding-top: 80px !important;
        padding-bottom: 40px !important;
        background-size: 100% cover;
        background-position: top center;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .hero-section p.lead {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .hero-section .btn {
        width: 100%;
        margin: 0 0 10px 0 !important;
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    /* Navbar más compacta */
    .navbar {
        padding: 8px 0 !important;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-brand img.logo-img {
        height: 25px;
    }

    /* Sección Nosotros */
    .about-section .row {
        flex-direction: column-reverse;
    }

    .about-img-container {
        margin-top: 20px;
    }

    .about-img-main {
        width: 100%;
    }

    .about-img-secondary {
        width: 50%;
        bottom: -15px;
        right: -15px;
    }

    .feature-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 15px;
    }

    /* Sección Ramas */


    /* Estilo base de tarjetas */
    .branch-card {
        position: relative;
        width: 260px;
        height: 220px;
        overflow: hidden;
        border-radius: 8px;
        background-color: #fff;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
        transition: transform 0.3s ease;
        z-index: 1;
    }

    /* Contenido visible */
    .branch-card>div:not(.branch-details) {
        padding: 20px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    /* Icono */
    .branch-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 10px;
    }

    /* Detalles ocultos inicialmente */
    .branch-details {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        color: #fff;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .branch-details p {
        color: #fff;
        font-size: 0.9rem;
        margin-bottom: 5px;
        font-weight: bold;
    }

    /* Hover: solo esta tarjeta crece */
    .branch-card:hover {
        transform: scale(1.05);
        z-index: 10;
    }

    /* Hover: mostrar detalles */
    .branch-card:hover .branch-details {
        opacity: 1;
        max-height: 200px;
        padding: 20px;
    }

    .branch-card {
        width: 100%;
        height: auto;
    }

    .branch-card>div:not(.branch-details) {
        padding: 15px;
    }


    /* Sección Dirigentes */
    .leader-card {
        flex-direction: column;
    }

    .leader-video {
        min-height: 200px;
    }

    .leader-info {
        padding: 20px;
    }

    /* Sección Contacto */
    .contact-item {
        margin-bottom: 15px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 15px;
    }

    .contact-form {
        padding: 20px;
        margin-top: 20px;
    }

    /* Footer más compacto */
    .footer {
        padding: 20px 0 !important;
    }

    .footer-logo {
        height: 30px;
        margin-bottom: 10px;
    }

    .footer .row>div {
        margin-bottom: 10px;
    }

    /* Elementos flotantes */
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 15px;
        right: 15px;
    }

    .back-to-top {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        bottom: 70px;
        right: 15px;
    }

    .hero-section {
        padding: 150px 0 80px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .about-img-secondary {
        width: 50%;
        bottom: -20px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .contact-social {
        justify-content: center;
    }

    .leader-card {
        display: flex;
        background-color: var(--white);
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        margin-bottom: 30px;
        position: relative;
        z-index: 1;
        height: 700px;
    }
}

@media (max-width: 576px) {
    .modal-content {
        border-radius: 0.75rem;
    }

    .modal-header,
    .modal-body {
        padding: 1rem;
    }

    .hero-section {
        padding: 150px 0 80px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p.lead {
        font-size: 1.3rem;
    }

    .hero-section .btn {
        display: inline-block;
        width: auto;
        margin: 0 10px 0 0;
    }

    .hero-section .btn+.btn {
        margin-left: 10px;
    }

    .whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        bottom: 30px;
        right: 30px;
    }

    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 100px;
        right: 30px;
    }

    .branch-card {
        padding: 20px;
    }

    .footer .text-lg-start,
    .footer .text-lg-end {
        text-align: center !important;
    }

    .footer .mb-3 {
        margin-bottom: 1rem !important;
    }

    .leader-card {
        display: flex;
        background-color: var(--white);
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        margin-bottom: 30px;
        position: relative;
        z-index: 1;
        height: 750px;
    }
}

@media (max-width: 375px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section p.lead {
        font-size: 0.9rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}