/* =========================================
   VARIABLES Y BASE
   ========================================= */
:root {
    --primary: #fda417; 
    --primary-hover: #fda417;
    --bg-dark-panel: #1e1e21; 
    --font-heading: 'Orbitron', sans-serif;
    --font-text: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #333;
    color: white;
    font-family: var(--font-text);
    overflow-x: hidden;
}

/* =========================================
   TEXTOS JUSTIFICADOS (PC, TABLET Y MÓVIL)
   ========================================= */
.mitad-texto p,               /* Historia (Pasado y Futuro) */
.contenedor-texto-amplio p,   /* Presente */
.diseno-texto p,              /* Diseño Anterior */
.card-content p,              /* Tarjetas del Team (Inicio) */
.donaciones-texto-min p,      /* Texto de Donaciones */
.equipo-hero p                /* Texto introductorio en index (team).html */
{
    text-align: justify !important; /* Fuerza la justificación en cualquier pantalla */
    
    /* Efecto "Libro": Separa en sílabas automáticamente para evitar huecos blancos en celulares */
    -webkit-hyphens: auto !important;
    -ms-hyphens: auto !important;
    hyphens: auto !important;
}

/* =========================================
   HEADER & HERO (INICIO)
   ========================================= */
#principal {
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.572), rgba(0, 0, 0, 0.572)), url("img/IMG-20141119-WA0039.jpg");
    background-size: cover;
    background-position: center;    
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

/* Barra Sticky */
.titulo-pagina-inicio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(rgba(24, 24, 24, 0.4), transparent);
    height: 12.5vh;
    width: 100%;
    padding: 0 4rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transition: all 0.4s ease;
}

.titulo-pagina-inicio.sticky {
    background: #111111;
    height: 10vh;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
    border-bottom: 2px solid var(--primary);
}

.imagen-titulo {
    height: 120%;
    width: auto;
}

/* Botón Hamburguesa PC (Oculto) */
.menu-hamburguesa {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.menu-hamburguesa:hover { color: var(--primary); }

#botones-titulo {          
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.botones-de-inicio {
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    transition: all 0.4s ease;
    border-radius: 5px;
}
.botones-de-inicio:hover {
    color: black;
    background-color: white;
}
.boton-destacado { background-color: var(--primary); color: black; }
.boton-destacado:hover { background-color: black; color: var(--primary); }

/* Hero Text */
#Somo-Formula-Sae {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1; 
    gap: 3rem; 
    padding: 2rem;
    padding-top: 12.5vh; 
}

.img-Somo-Formula-Sae {
    height: 560px; 
    width: auto;
    margin-left: -50px;
}

.contenedor-texto-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.texto-somos-team-formula-sae {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #a0a0a5;
    letter-spacing: 4px;
    margin-bottom: 0.2rem;
    margin-left: -250px;
}
.texto-somos-team-formula-sae2,
.texto-somos-team-formula-sae3,
.texto-somos-team-formula-sae4 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 4.2rem); 
    line-height: 1.1;
    font-weight: 900;
    color: white;
    margin-left: -250px;
}
.texto-somos-team-formula-sae4 { color: var(--primary); }

/* =========================================
   EVENTO RELOJ
   ========================================= */
.event-section {
    background-color: #274683; 
    padding: 3rem 0rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.event-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem; 
    flex-wrap: wrap; 
    max-width: 1500px;
    width: 100%;
}
.event-info { text-align: left; }
.event-info h2 { font-family: var(--font-heading); color: white; font-size: 2.5rem; margin-bottom: 0.2rem; }
.event-info .fecha { color: var(--primary); font-size: 1.3rem; font-weight: 600; }

.simple-countdown { display: flex; align-items: center; gap: 1.5rem; }
.time-box { display: flex; flex-direction: column; align-items: center; }
.time-box .number { font-family: var(--font-heading); font-size: 4rem; font-weight: 700; color: var(--primary); line-height: 1; }
.time-box .label { font-size: 1rem; color: white; margin-top: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.separator { font-family: var(--font-heading); font-size: 3rem; color: rgba(255, 255, 255, 0.5); margin-top: -1.5rem; }

/* =========================================
   DONACIONES MINIMALISTAS
   ========================================= */
.donaciones-minimal {
    background-color: #1a1a1c;
    padding: 2.5rem 2rem; 
    display: flex;
    justify-content: center;
    align-items: center;
}
.donaciones-container-min {
    max-width: 900px; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; 
}
.donaciones-texto-min { text-align: center; }
.donaciones-texto-min h2 { font-family: var(--font-heading); font-size: 2rem; color: white; margin-bottom: 0.5rem; }
.donaciones-texto-min h2 span { color: var(--primary); }
.donaciones-texto-min p { font-size: 1rem; color: #a0a0a5; max-width: 700px; margin: 0 auto; }

.donaciones-tracker-min { width: 100%; }
.tracker-info { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.monto-actual { font-family: var(--font-heading); font-size: 1.8rem; color: white; font-weight: 700; }
.usd-text { font-size: 0.85rem; color: #888; margin-left: 8px; }
.monto-meta { font-size: 0.9rem; color: #888; }
.barra-fondo-min { width: 100%; height: 5px; background-color: #333; border-radius: 3px; overflow: hidden; }
.barra-relleno-min { height: 100%; background-color: var(--primary); border-radius: 3px; transition: width 1.5s; }

.donaciones-razones-min { display: flex; justify-content: center; gap: 3rem; width: 100%; border-top: 1px solid #333; padding-top: 1.5rem; }
.razon-item { display: flex; flex-direction: row; align-items: center; gap: 0.8rem; }
.razon-item i { font-size: 1.2rem; color: var(--primary); }
.razon-item span { font-size: 0.8rem; color: #a0a0a5; text-transform: uppercase; letter-spacing: 1px; }

.btn-donar-min {
    font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--primary);
    background-color: transparent; border: 2px solid var(--primary); padding: 0.6rem 2rem;
    border-radius: 4px; text-transform: uppercase; transition: all 0.3s ease; margin-top: -0.5rem;
}
.btn-donar-min:hover { background-color: var(--primary); color: black; }

/* =========================================
   HISTORIA (PASADO, PRESENTE, FUTURO)
   ========================================= */
.seccion-mitad { display: flex; width: 100%; min-height: 50vh; background-color: #c22319; }
.seccion-mitad1 { display: flex; width: 100%; min-height: 50vh; background-color: #274683; }

.mitad-imagen { width: 50%; background-size: cover; background-position: center; background-repeat: no-repeat; }
.pasado-img { background-image: url("img/michigan\ 078.jpg"); }
.futuro-img { background-image: url("img/Nuestro futuro2.png"); }

.mitad-texto { width: 50%; padding: 3rem 6%; display: flex; flex-direction: column; justify-content: center; }
.mitad-texto h2 { font-family: var(--font-heading); font-size: 2.5rem; color: white; margin-bottom: 0.5rem; text-transform: uppercase; }
.linea-naranja { width: 60px; height: 4px; background-color: var(--primary); margin-bottom: 1.5rem; }
.mitad-texto p { font-size: 1rem; color: white; line-height: 1.3; margin-bottom: 1rem; }

.seccion-texto-centrado { background-color: #27272c; padding: 3rem 2rem; display: flex; justify-content: center; align-items: center; text-align: center; }
.contenedor-texto-amplio { max-width: 900px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.contenedor-texto-amplio h2 { font-family: var(--font-heading); font-size: 2.5rem; color: white; margin-bottom: 0.3rem; text-transform: uppercase; }
.linea-naranja.centrada { width: 80px; height: 4px; background-color: var(--primary); margin-bottom: 2rem; border-radius: 2px; }
.contenedor-texto-amplio p { font-size: 1rem; color: white; line-height: 1.3; margin-bottom: 1rem; }

/* =========================================
   DISEÑO ANTERIOR
   ========================================= */
.seccion-diseno-anterior { background-color: #1e1e21; padding: 3rem 2rem; display: flex; justify-content: center; align-items: center; }
.diseno-container { max-width: 1200px; width: 100%; display: flex; align-items: center; gap: 5rem; }
.diseno-texto { flex: 1; }
.diseno-texto h2 { font-family: var(--font-heading); font-size: 2.8rem; color: white; margin-bottom: 0.5rem; text-transform: uppercase; line-height: 1.1; }
.diseno-texto h2 span { color: var(--primary); }
.diseno-texto p { font-size: 1.1rem; color: #cccccc; line-height: 1.6; margin-bottom: 2rem; }

.specs-list { list-style: none; padding: 0; }
.specs-list li { font-size: 1rem; color: #e0e0e5; margin-bottom: 1rem; display: flex; align-items: center; gap: 15px; background: rgba(255, 255, 255, 0.03); padding: 1rem 1.5rem; border-radius: 8px; border-left: 3px solid var(--primary); transition: transform 0.3s ease, background 0.3s ease; }
.specs-list li:hover { transform: translateX(10px); background: #274683; }
.specs-list i { color: var(--primary); font-size: 1.2rem; width: 25px; text-align: center; }

.diseno-imagen { flex: 1; position: relative; }
.diseno-imagen img { width: 100%; border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.5); object-fit: cover; display: block; }
.diseno-badge { position: absolute; bottom: -20px; right: -20px; background-color: var(--primary); color: black; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; padding: 1rem 2rem; border-radius: 6px; text-transform: uppercase; box-shadow: 0 10px 20px rgba(253, 164, 23, 0.4); letter-spacing: 1px; }

/* =========================================
   EL EQUIPO (TEAM)
   ========================================= */
.seccion-team { background-color: var(--primary); padding: 2rem 2rem; color: #111; }
.team-container { max-width: 1350px; margin: 0 auto; }
.team-header { text-align: center; margin-bottom: 2.5rem; }
.team-header h2 { font-size: 2.8rem; font-family: var(--font-heading); text-transform: uppercase; color: #111; }
.team-header h2 span { color: white; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); }
.team-header p { font-size: 1.1rem; font-weight: 600; margin-top: 0.5rem; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 1.5rem; }
.team-card { background-color: #1a1a1c; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.4); display: flex; flex-direction: column; transition: transform 0.3s ease; }
.team-card:hover { transform: translateY(-8px); }

.card-img { height: 180px; background-size: cover; background-position: center; }
.reclutamiento-bg { background-color: #27272c; display: flex; justify-content: center; align-items: center; border-bottom: 3px solid var(--primary); }
.reclutamiento-bg i { font-size: 5rem; color: var(--primary); }

.card-content { padding: 1.8rem 2.5rem; display: flex; flex-direction: column; flex-grow: 1; color: white; }
.card-content h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 0.8rem; color: var(--primary); }
.card-content p { font-size: 1rem; color: #cccccc; line-height: 1.5; margin-bottom: 1.5rem; }
.lista-requisitos { list-style: none; margin-bottom: 1.5rem; padding: 0; }
.lista-requisitos li { font-size: 0.95rem; color: #cccccc; margin-bottom: 0.8rem; display: flex; align-items: flex-start; gap: 10px; }
.lista-requisitos li i { color: var(--primary); margin-top: 4px; }

.btn-team { margin-top: auto; text-align: center; background-color: var(--primary); color: black; font-family: var(--font-heading); font-weight: 700; padding: 0.9rem; border-radius: 6px; text-transform: uppercase; transition: all 0.3s ease; }
.btn-team:hover { background-color: white; color: black; box-shadow: 0 5px 15px rgba(255,255,255,0.3); }
.btn-outline { background-color: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: black; }

/* =========================================
   GALERÍA CARRUSEL
   ========================================= */
.seccion-galeria { background-color: #274683; padding: 2rem 2rem; }
.galeria-header { text-align: center; margin-bottom: 1.5rem; }
.galeria-header h2 { font-family: var(--font-heading); font-size: 2.8rem; color: white; margin-bottom: 0.1rem; text-transform: uppercase; }
.galeria-header h2 span { color: var(--primary); }
.galeria-header p { color: #cccccc; font-size: 1.1rem; }

.carrusel-wrapper { position: relative; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; }
.carrusel-track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding: 1rem 0; -ms-overflow-style: none; scrollbar-width: none; }
.carrusel-track::-webkit-scrollbar { display: none; }

.galeria-item { min-width: 320px; height: 300px; flex-shrink: 0; scroll-snap-align: start; position: relative; overflow: hidden; border-radius: 10px; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }

.galeria-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s ease; }
.galeria-overlay i { color: black; font-size: 2.5rem; transform: translateY(30px); transition: transform 0.4s ease; }
.galeria-item:hover img { transform: scale(1.15); }
.galeria-item:hover .galeria-overlay { opacity: 1; }
.galeria-item:hover .galeria-overlay i { transform: translateY(0); }

.btn-carrusel { background-color: var(--primary); color: black; border: none; width: 50px; height: 50px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; position: absolute; z-index: 10; box-shadow: 0 5px 15px rgba(0,0,0,0.5); transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; }
.btn-carrusel:hover { background-color: white; transform: scale(1.1); }
.btn-izq { left: -25px; }
.btn-der { right: -25px; }

/* =========================================
   REDES SOCIALES MINIMALISTA
   ========================================= */
.redes-lineal-min { background-color: #27272c; padding: 2rem 1rem; display: flex; justify-content: center; align-items: center; }
.redes-container-min { width: 100%; max-width: 1000px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
.redes-header-min h2 { font-family: var(--font-heading); font-size: 1.8rem; color: white; text-transform: uppercase; line-height: 1.1; text-align: left; margin: 0; }
.redes-header-min h2 span { color: var(--primary); display: block; }

.fila-iconos-rs { display: flex; flex-direction: row; gap: 3rem; align-items: center; }
.item-rs { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: white; transition: transform 0.3s ease; }
.item-rs i { font-size: 2.5rem; margin-bottom: 0.5rem; color: white; transition: color 0.3s ease; }
.item-rs p { font-size: 0.9rem; text-align: center; line-height: 1.2; margin: 0; font-weight: 600; }
.item-rs p span { font-weight: normal; color: #a0a0a5; font-size: 0.8rem; }
.item-rs:hover { transform: translateY(-5px); }
.item-rs:hover i, .item-rs:hover p { color: var(--primary); }

/* =========================================
   FOOTER (IMAGE_932288 DESIGN)
   ========================================= */
.site-footer { background-color: #111111; color: #cccccc; padding: 2rem 2rem 1.5rem 2rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; }
.footer-content-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; width: 100%; }
.footer-left-block { display: flex; flex-direction: column; align-items: flex-start; max-width: 50%; }
.footer-address { font-size: 0.9rem; line-height: 1.4; color: #cccccc; margin: 0; }
.footer-address span { color: var(--primary); font-weight: 600; }

.footer-right-block { display: flex; gap: 2.5rem; align-items: center; }
.contact-icon-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.icon-circle { background-color: var(--primary); color: white; border-radius: 50%; width: 55px; height: 55px; display: flex; justify-content: center; align-items: center; margin-bottom: 0.5rem; box-shadow: 0 5px 15px rgba(253, 164, 23, 0.3); font-size: 1.8rem; }
.contact-icon-item span { font-size: 0.8rem; color: #a0a0a5; line-height: 1.2; }

.footer-divider { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); margin: 0 0 1.5rem 0; }
.footer-bottom-row { text-align: center; }
.footer-bottom-row p { font-size: 0.75rem; color: #666; margin: 0; }

/* =========================================
   ANIMACIONES DE SCROLL (REVEAL)
   ========================================= */
.reveal { opacity: 0; transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translate(0, 0) scale(1); }
.reveal-bottom { transform: translateY(60px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-scale { transform: scale(0.9); }

/* =========================================
           BARRA DE NAVEGACIÓN COMPACTA
           ========================================= */
        .nav-equipo {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #161619;
            padding: 1rem 4rem;
            border-bottom: 2px solid rgba(253, 164, 23, 0.3);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-logo {
            height: 100px;
            width: auto;
            margin-top: -20px;
            margin-bottom: -20px;
        }

        .btn-regresar {
            color: white;
            font-family: var(--font-heading);
            font-weight: 700;
            font-size: 0.9rem;
            text-transform: uppercase;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 0.5rem 1rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        .btn-regresar:hover {
            color: black;
            background-color: white;
            border-color: white;
        }

        /* =========================================
           ENCABEZADO DE LA PÁGINA (HERO)
           ========================================= */
        .body-team{
            background-color: #27272c;
        }
        
        .equipo-hero {
            text-align: center;
            padding: 4rem 2rem 2rem 2rem;
            background: linear-gradient(rgba(17, 17, 17, 0.5), var(--bg-dark)), url("style/img/upscalemedia-transformed.png");
            background-size: cover;
            background-position: center;
        }

        .equipo-hero h1 {
            font-family: var(--font-heading);
            font-size: 3rem;
            text-transform: uppercase;
            margin: 0 0 0.5rem 0;
            letter-spacing: 2px;
        }

        .equipo-hero h1 span {
            color: var(--primary);
        }

        .equipo-hero p {
            color: #a0a0a5;
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto;
        }

        .linea-naranja {
            width: 80px;
            height: 4px;
            background-color: var(--primary);
            margin: 1rem auto 1.5rem auto;
            border-radius: 2px;
        }

        /* =========================================
           CONTENEDOR PRINCIPAL Y CATEGORÍAS
           ========================================= */
        .equipo-seccion {
            max-width: 1300px;
            margin: 0 auto;
            padding: 1rem;
        }

        .categoria-titulo {
            font-family: var(--font-heading);
            font-size: 1.8rem;
            text-transform: uppercase;
            color: white;
            margin: 2rem 0 1.5rem 0;
            border-left: 4px solid var(--primary);
            padding-left: 12px;
            letter-spacing: 1px;
        }

        .categoria-titulo2 {
            font-family: var(--font-heading);
            font-size: 1.4rem;
            text-transform: uppercase;
            color: white;
            margin: 2rem 0 1.5rem 0;
            border-left: 4px solid var(--primary);
            padding-left: 12px;
            letter-spacing: 1px;
        }

        /* Cuadrícula adaptable para las tarjetas de integrantes */
        .equipo-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
            gap: 2rem;
        }

        /* =========================================
           DISEÑO DE LAS CARDS DE INTEGRANTES
           ========================================= */
        .member-card {
            background-color: var(--bg-card);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.03);
            display: flex;
            flex-direction: column;
            transition: all 0.3s ease;
        }

        /* Contenedor de la foto del integrante */
        .member-img-box {
            width: 100%;
            height: 320px; /* Altura ideal de retrato */
            overflow: hidden;
            position: relative;
            background-color: #222;
        }

        .member-img-box img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Recorta y cuadra la foto de forma inteligente */
            transition: transform 0.5s ease;
        }

        /* Contenido de información */
        .member-info {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .member-name {
            font-family: var(--font-heading);
            font-size: 1.3rem;
            color: white;
            margin: 0 0 0.3rem 0;
            font-weight: 700;
        }

        .member-card h3{
            font-size: 1.8rem;
        }

        .member-card p{
            font-size: 1rem;
        }

        /* =========================================
   PÁGINA DE DONACIONES
   ========================================= */
.seccion-donaciones {
    padding: 40px 20px 20px 20px; /* Espacio arriba para que el menú no lo tape */
    background-color: linear-gradient(rgba(17, 17, 17, 0.5), var(--bg-dark)), url("style/img/upscalemedia-transformed.png");
    min-height: 100vh;
}

.contenedor-donaciones {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contenedor-donaciones .titulo-principal {
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 1rem;
    font-family: 'Audiowide', sans-serif; /* Usa tu fuente tecnológica */
}

.texto-intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Grid para que las tarjetas se pongan lado a lado en PC y una sobre otra en móviles */
.grid-donaciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.tarjeta-donacion {
    background-color: #fff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 5px solid #ff6600; /* Borde superior con el color SAE */
    transition: transform 0.3s ease;
}

.tarjeta-donacion:hover {
    transform: translateY(-5px); /* Efecto de salto al pasar el mouse */
}

.icono-pago {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tarjeta-donacion h3 {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 1.5rem;
}

.datos-pago p {
    font-size: 0.95rem;
    color: #444;
    margin: 8px 0;
    text-align: left; /* Alineamos los datos a la izquierda para mejor lectura */
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.contacto-patrocinio {
    background-color: #222;
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
}

.contacto-patrocinio h3 {
    margin-top: 0;
    color: #ff6600;
}

.btn-patrocinio {
    display: inline-block;
    margin-top: 1rem;
    padding: 12px 24px;
    background-color: #ff6600;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.3s;
}

.btn-patrocinio:hover {
    background-color: #cc5200;
}

.icono-pago {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #ff6600; /* Aplica el naranja SAE al icono */
    transition: transform 0.3s ease;
}

/* Un pequeño efecto para que el icono crezca al pasar el mouse */
.tarjeta-donacion:hover .icono-pago {
    transform: scale(1.1);
}

/* =========================================
   DISEÑO RESPONSIVO (MEDIA QUERIES MAESTRAS)
   ========================================= */
@media (max-width: 992px) {
    .img-Somo-Formula-Sae{
        display: none;
    }
    .footer-logo{
        display: none;
    }
    .seccion-mitad, .seccion-mitad1 { flex-direction: column; }
    .mitad-imagen { width: 100%; min-height: 350px; }
    .mitad-texto { width: 100%; padding: 4rem 2rem; }
    .diseno-container { flex-direction: column; gap: 3rem; }
    .diseno-badge { right: 15px; bottom: -15px; }
    .redes-container-min { flex-direction: column; gap: 2rem; }
    .redes-header-min h2 { text-align: center; }
    /* Ajuste responsivo de la galería en móviles */
    .galeria-item { 
        min-width: 75vw; /* La foto ocupará el 75% del ancho de la pantalla del celular */
        height: 60vw; /* La altura crece o se encoge en proporción perfecta al ancho */
        max-height: 320px; /* Un límite de seguridad para que no se vuelva gigante en tablets pequeñas */
        scroll-snap-align: center; 
    }
}

@media (max-width: 768px) {
    .img-Somo-Formula-Sae{
        display: none;
    }
    .footer-logo{
        display: none;
    }

    /* MENÚ HAMBURGUESA Y HEADER */
    .titulo-pagina-inicio { padding: 0 1.5rem; position: relative; }
    .menu-hamburguesa { display: block; }
    #botones-titulo { position: absolute; top: 100%; left: 0; width: 100%; background-color: #111111; flex-direction: column; gap: 0; padding: 0; box-shadow: 0 15px 20px rgba(0,0,0,0.8); clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: clip-path 0.4s ease-in-out; }
    #botones-titulo.desplegado { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    .botones-de-inicio { font-size: 1.1rem; padding: 1.5rem 0; width: 100%; text-align: center; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
    .boton-destacado { border-bottom: 3px solid var(--primary); }
    
    #Somo-Formula-Sae { flex-direction: column; text-align: center; gap: 1.5rem; }
    .img-Somo-Formula-Sae { margin-left: 0; height: 220px; }
    .contenedor-texto-hero { margin-left: 0; }
    .texto-somos-team-formula-sae{ margin-left: 0px;}
    .texto-somos-team-formula-sae2, .texto-somos-team-formula-sae3, .texto-somos-team-formula-sae4 { font-size: 2.5rem; margin-left: 0px; }

    /* EVENTO */
    .event-section { padding: 1.5rem 1rem; }
    .event-container { gap: 1rem; flex-direction: column; text-align: center; }
    .event-info h2 { font-size: 1.6rem; margin-bottom: 0.1rem; }
    .event-info .fecha { font-size: 1rem; }
    .simple-countdown { gap: 0.6rem; }
    .time-box .number { font-size: 2rem; }
    .time-box .label { font-size: 0.65rem; margin-top: 0.2rem; letter-spacing: 0.5px; }
    .separator { font-size: 1.5rem; margin-top: -0.8rem; }

    /* DONACIONES */
    .donaciones-minimal { padding: 2.5rem 1.5rem; }
    .donaciones-texto-min h2 { font-size: 1.6rem; }
    .monto-actual { font-size: 1.5rem; }
    .donaciones-razones-min { flex-direction: column; gap: 1rem; padding-top: 1.5rem; }

    /* HISTORIA Y DISEÑO COMPACTO */
    .mitad-imagen { min-height: 220px; }
    .mitad-texto { padding: 2rem 1.5rem; }
    .mitad-texto h2 { font-size: 1.8rem; margin-bottom: 0.3rem; }
    .mitad-texto p { font-size: 0.95rem; margin-bottom: 0.8rem; }
    .seccion-texto-centrado { padding: 2rem 1.5rem; }
    .contenedor-texto-amplio h2 { font-size: 1.8rem; }
    .contenedor-texto-amplio p { font-size: 0.95rem; }
    .seccion-diseno-anterior { padding: 2rem 1.5rem; }
    .diseno-container { gap: 1.5rem; }
    .diseno-texto h2 { font-size: 1.8rem; }
    .diseno-texto p { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .specs-list li { font-size: 0.85rem; padding: 0.8rem 1rem; margin-bottom: 0.6rem; }
    .diseno-badge { font-size: 0.8rem; padding: 0.6rem 1rem; right: 10px; bottom: -10px; }

    /* EQUIPO ULTRA COMPACTO */
    .team-grid { grid-template-columns: 1fr; }
    .team-card { width: 100%; max-width: 100%; }
    .team-header h2 { font-size: 2rem; }
    .card-img { height: 110px; }
    .reclutamiento-bg i { font-size: 3.5rem; }
    .card-content { padding: 1.2rem 1.5rem; }
    .card-content h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
    .card-content p { font-size: 0.9rem; margin-bottom: 1rem; }
    .lista-requisitos { margin-bottom: 1rem; }
    .lista-requisitos li { font-size: 0.85rem; margin-bottom: 0.5rem; }
    .btn-team { padding: 0.7rem; font-size: 0.9rem; }

    /* GALERÍA 100% FUNCIONAL EN MÓVIL */
    .seccion-galeria { padding: 3rem 0; }
    .galeria-header { padding: 0 1.5rem; }
    .carrusel-track { padding: 1rem 1.5rem; gap: 1rem; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
    .galeria-item { min-width: 250px; height: 240px; scroll-snap-align: center; }
    .btn-carrusel { display: flex; width: 40px; height: 40px; font-size: 1rem; background-color: rgba(253, 164, 23, 0.85); }
    .btn-izq { left: 15px; }
    .btn-der { right: 15px; }
    .galeria-overlay { display: none !important; }

    /* FOOTER */
    .footer-content-row { flex-direction: column; align-items: center; gap: 2.5rem; }
    .footer-left-block { max-width: 100%; align-items: center; text-align: center; }
    .brand-col .footer-logo { margin: 0 auto 1.5rem auto; height: 120px; }
    .footer-right-block { flex-direction: column; gap: 1.5rem; }

    /* APAGAR ANIMACIONES DE SCROLL EN MÓVILES */
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

    /* index del team */
    .nav-equipo {
        padding: 1rem 1.5rem;
            }
    .nav-logo {
        height: 35px;
            }
    .equipo-hero h1 {
        font-size: 2.2rem;
            }
    .equipo-hero p {
        font-size: 0.95rem;
            }
    .categoria-titulo {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
            }
    .member-img-box {
        height: 280px; /* Tarjetas ligeramente más cortas en celulares */
            }
    .member-info {
        padding: 1.2rem;
            }
    .member-name {
        font-size: 1.15rem;
            }
            /* =========================================
       CORRECCIÓN: DISEÑO ANTERIOR EN MÓVILES
       ========================================= */
    .seccion-diseno-anterior {
        padding: 3rem 1.5rem; 
        overflow: hidden; /* Corta cualquier elemento rebelde que intente salirse de la pantalla */
    }
    
    .diseno-container {
        flex-direction: column;
        gap: 2.5rem; /* Le damos un buen respiro entre el texto y la foto */
        width: 100%;
    }

    /* Forzamos a que los bloques no superen el tamaño del teléfono */
    .diseno-texto, 
    .diseno-imagen {
        width: 100%; 
        max-width: 100%;
        margin: 0;
    }

    /* Centramos los textos y títulos para un look más móvil */
    .diseno-texto h2 {
        font-size: 1.8rem;
        line-height: 1.2;
        text-align: center;
    }

    .diseno-texto .linea-naranja {
        margin: 0.8rem auto 1.5rem auto; /* Centramos la línea naranja */
    }

    .diseno-texto p {
        font-size: 0.95rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    /* Arreglamos la lista para que no se deforme si el texto baja a dos líneas */
    .specs-list li {
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
        margin-bottom: 0.8rem;
        align-items: flex-start; /* Evita que el ícono quede en el medio si hay mucho texto */
        word-break: break-word; /* Evita que palabras largas rompan el borde */
    }

    .specs-list i {
        margin-top: 3px; /* Alineamos el ícono con la primera línea del texto */
    }

    .diseno-imagen img {
        width: 100%;
        height: auto;
    }

    /* Ajustamos la etiqueta de "Michigan 2015" */
    .diseno-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
        right: 15px; /* Lo metemos un poco más a la pantalla */
        bottom: -15px; 
    }

    /* =========================================
       CORRECCIÓN DEFINITIVA: GALERÍA EN iPHONE (SAFARI)
       ========================================= */
    .seccion-galeria { 
        padding: 3rem 0; 
        width: 100%;
        overflow-x: hidden; /* Solo cortamos los bordes horizontales para evitar conflictos en iOS */
    }
    
    .galeria-header { 
        padding: 0 1.5rem; 
    }
    
    .carrusel-wrapper {
        width: 100%;
    }
    
    .carrusel-track { 
        padding: 1rem 7.5vw; 
        display: flex;
        gap: 1.5rem; 
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Activa la inercia nativa de Apple */
        scroll-snap-type: x mandatory; 
        scrollbar-width: none; /* Oculta la barra de abajo en móviles Android */
    }

    /* Oculta la barra de desplazamiento fea específicamente en iPhones/Safari */
    .carrusel-track::-webkit-scrollbar {
        display: none; 
    }
    
    .galeria-item { 
        /* LA MAGIA PARA iPHONE: "flex: 0 0 [ancho]" obliga a Safari a respetar el tamaño */
        flex: 0 0 85vw; 
        width: 85vw; 
        height: 60vw; 
        max-height: 350px; 
        scroll-snap-align: center; 
        border-radius: 12px;
        display: block;
    }

    .galeria-overlay { 
        display: none !important; 
    }

    #logro{
        display: none !important;
    }

    .ocupar-espacio {
        display: none;
    }

    /* CORRECCIÓN DE ENCUADRE: Centrar el fondo en el carro */
    #principal {
        background-position: 75% center; /* Mueve horizontalmente el fondo para enfocar el carro */
    }

    .footer-right-block {
        display: none;
    }

    /* =========================================
       DONACIONES EN MÓVILES
       ========================================= */
    .seccion-donaciones {
        padding: 100px 15px 40px 15px; /* Reducimos los márgenes laterales y superiores */
    }

    .contenedor-donaciones .titulo-principal {
        font-size: 1.8rem; /* Achicamos el título para que no se desborde o se parta feo */
    }

    .texto-intro {
        font-size: 0.95rem; /* Texto un poco más pequeño */
        margin-bottom: 2rem;
    }

    .grid-donaciones {
        grid-template-columns: 1fr; /* Fuerza a que las tarjetas se apilen una exactamente debajo de la otra */
        gap: 15px;
    }

    .tarjeta-donacion {
        padding: 1.5rem 1rem; /* Tarjetas un poco más compactas para aprovechar el espacio */
    }

    .contacto-patrocinio {
        padding: 1.5rem 1rem;
    }

    .btn-patrocinio {
        width: 100%; /* El botón ocupa todo el ancho de la pantalla para que sea fácil de tocar con el dedo pulgar */
        box-sizing: border-box;
        text-align: center;
        padding: 15px 0;
    }

}

@media (max-width: 600px) {
    .fila-iconos-rs { flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
    .item-rs i { font-size: 2rem; }
    .item-rs p { font-size: 0.8rem; }
    /* =========================================
       CORRECCIÓN: DISEÑO ANTERIOR EN MÓVILES
       ========================================= */
    .seccion-diseno-anterior {
        padding: 3rem 1.5rem; 
        overflow: hidden; /* Corta cualquier elemento rebelde que intente salirse de la pantalla */
    }

    #logro{
        display: none !important;
    }
    
    .diseno-container {
        flex-direction: column;
        gap: 2.5rem; /* Le damos un buen respiro entre el texto y la foto */
        width: 100%;
    }

    /* Forzamos a que los bloques no superen el tamaño del teléfono */
    .diseno-texto, 
    .diseno-imagen {
        width: 100%; 
        max-width: 100%;
        margin: 0;
    }

    /* Centramos los textos y títulos para un look más móvil */
    .diseno-texto h2 {
        font-size: 1.8rem;
        line-height: 1.2;
        text-align: center;
    }

    .diseno-texto .linea-naranja {
        margin: 0.8rem auto 1.5rem auto; /* Centramos la línea naranja */
    }

    .diseno-texto p {
        font-size: 0.95rem;
        text-align: center;
        margin-bottom: 2rem;
    }

    /* Arreglamos la lista para que no se deforme si el texto baja a dos líneas */
    .specs-list li {
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
        margin-bottom: 0.8rem;
        align-items: flex-start; /* Evita que el ícono quede en el medio si hay mucho texto */
        word-break: break-word; /* Evita que palabras largas rompan el borde */
    }

    .specs-list i {
        margin-top: 3px; /* Alineamos el ícono con la primera línea del texto */
    }

    .diseno-imagen img {
        width: 100%;
        height: auto;
    }

    /* Ajustamos la etiqueta de "Michigan 2015" */
    .diseno-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
        right: 15px; /* Lo metemos un poco más a la pantalla */
        bottom: -15px; 
    }
    
    .ocupar-espacio {
        display: none;
    }
}