:root{
    --rojo:#c21617;
    --beige:#eee9e2;
    --gris1:#aaa097;
    --gris2:#a09d9b;
    --gris3:#757473;
}

/* TIPOGRAFÍA */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: "sofia-pro-narrow-black", sans-serif;
font-weight: 700;
font-style: normal;
}

body{
    background:var(--beige);
    color:var(--gris3);
}

/* HEADER */
header{
    position:fixed;
    width:100%;
    background:white;
    z-index:10;
}

.nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 6%;
}

.logo{
    height:45px;
}

/* MENU */
.menu{
    display:flex;
    gap:25px;
    list-style:none;
}

.menu a{
    text-decoration:none;
    color:var(--gris3);
    font-weight:600;
}

.menu a:hover{
    color:var(--rojo);
}

/* DROPDOWN */
.dropdown{position:relative;}

.submenu{
    position:absolute;
    top:40px;
    background:white;
    padding:10px 0;
    border-radius:12px;
    box-shadow:0 10px 20px rgba(0,0,0,0.1);
    opacity:0;
    visibility:hidden;
    transform:translateY(-10px);
    transition:.3s;
}

.dropdown:hover .submenu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.submenu a{
    display:block;
    padding:10px 20px;
}

.submenu a:hover{
    background:var(--beige);
    color:var(--rojo);
}


/* HERO */




/* TÍTULO */
.hero-title{
    font-size:90px;
    font-weight:600;
    color:var(--gris3);
    position:relative;
    z-index:2;
}

/* HERO NUEVO FLUJO */
.hero-flow{
    height:55vh;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    overflow:hidden;
    background:white;
}

/* TITULO */
.hero-title{
    font-size:65px;
    color:var(--gris3);
    z-index:2;
}

/* CONTENEDOR LINEAS */
.lines span{
    position:absolute;
    height:3px;
    width:200px;
    background:var(--rojo);
    opacity:.7;
}

/* LINEAS MOVIMIENTO CONTINUO */
.lines span:nth-child(1){
    top:30%;
    animation:flow 6s linear infinite;
}
.lines span:nth-child(2){
    top:50%;
    animation:flow 8s linear infinite;
}
.lines span:nth-child(3){
    top:70%;
    animation:flow 7s linear infinite;
}

/* ANIMACION FLUJO */
@keyframes flow{
    from{ transform:translateX(-120%); }
    to{ transform:translateX(120vw); }
}







/* SECCIONES */
.section{
    padding:100px 15%;
    text-align:center;
}

.section.alt{
    background:white;
}

.section-title{
    font-size:40px;
    margin-bottom:20px;
}

.intro{
    max-width:700px;
    margin:auto;
    line-height:1.6;
    font-family: "sofia-pro-narrow-black", sans-serif;
font-weight: 400;
font-style: normal;
}

/* CONTADORES */
.counters{
    display:flex;
    justify-content:center;
    gap:60px;
    margin:50px 0;
    
}

.number{
    font-size:50px;
    font-weight:bold;
    
}

.texto-final{
    font-family: "sofia-pro-narrow-black", sans-serif;
font-weight: 400;
font-style: normal;
}

/* CTA */
.cta{
    padding:120px 20px;
    text-align:center;
}

.cta h2{
    font-size:42px;
    margin-bottom:30px;
}

.cta-btn{
    display:inline-block;
    padding:15px 35px;
    border:none;
    background:var(--gris3);
    color:white;
    border-radius:30px;
    text-decoration:none;
    font-size:18px;
    cursor:pointer;
    transition:.3s;
    margin-top:25px;
}

.cta-btn:hover{
    background:var(--rojo);
    transform:scale(1.05);
}

.footer{
    background:var(--gris3);
    color:white;
    padding-top:60px;
}

/* GRID PRINCIPAL */
.footer-container{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:50px;
    padding:0 10% 50px;
}

/* IZQUIERDA */
.footer-left h2{
    font-size:34px;
    margin-bottom:15px;
}

.footer-left p{
    line-height:1.5;
    color:#eee9e2;
    margin-bottom:20px;
    max-width:300px;
}

/* LINKS */
.footer-links h4{
    margin-bottom:15px;
    font-size:18px;
}

.footer-links a{
    display:block;
    color:#eee9e2;
    text-decoration:none;
    margin-bottom:10px;
}

.footer-links a:hover{
    color:var(--rojo);
}

/* REDES SOCIALES */
.socials{
    display:flex;
    gap:12px;
    margin-top:15px;
}

.socials img{
    width:28px;
    height:28px;
    filter:brightness(0) invert(1);
    transition:.3s;
}

.socials img:hover{
    transform:scale(1.15);
}

/* COPYRIGHT */
.footer-bottom{
    text-align:center;
    padding:15px;
    background:#686767;
    font-size:14px;
}

/* BOTÓN SUBIR */
#scrollTopBtn{
    position:fixed;
    bottom:30px;
    right:30px;
    width:60px;
    height:60px;
    border:none;
    cursor:pointer;
    z-index:9999;

    background:var(--gris3);
    color:white;
    font-size:26px;

    display:flex;
    align-items:center;
    justify-content:center;

    /* forma gota */
    border-radius:50% 50% 50% 0;
    transform:rotate(45deg);

    opacity:0;
    visibility:hidden;
    transition:all .4s ease;
}

/* flecha recta */
.arrow{
    transform:rotate(-45deg);
}

/* aparece al hacer scroll */
#scrollTopBtn.show{
    opacity:1;
    visibility:visible;
}

/* hover */
#scrollTopBtn:hover{
    background:var(--rojo);
    transform:rotate(45deg) scale(1.1);
}

.monotalic{
    font-family: "monotalic", sans-serif;
font-weight: 700;
font-style: normal;
}






/* PROCESO */
.process{
    display:flex;
    justify-content:center;
    gap:20px;
    margin:40px 0;
    flex-wrap:wrap;
}

.step{
    background:white;
    padding:20px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    font-weight:600;
}

/* GRID PROCESO */
.process-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
    margin-top:50px;
}

/* ITEM */
.process-item{
    text-align:center;
    padding:20px;
    background:white;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);

    opacity:0;
    transform:translateY(30px);
    animation:fadeUp .8s ease forwards;
}

/* delay escalonado */
.process-item:nth-child(1){animation-delay:.1s;}
.process-item:nth-child(2){animation-delay:.3s;}
.process-item:nth-child(3){animation-delay:.5s;}
.process-item:nth-child(4){animation-delay:.7s;}

/* IMÁGENES */
.process-item img{
    width:90px;
    height:90px;
    object-fit:contain;
    margin-bottom:15px;

    transition:.4s ease;
}

/* hover animación ilustración */
.process-item:hover img{
    transform:scale(1.15) rotate(3deg);
}

/* TITULOS */
.process-item h4{
    margin-bottom:10px;
    color:var(--gris3);
}

/* ANIMACIÓN ENTRADA */
@keyframes fadeUp{
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media (max-width:900px){
    .process-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media (max-width:600px){
    .process-grid{
        grid-template-columns:1fr;
    }
}

/* GRID BLOQUES */
.grid{
    display:flex;
    gap:40px;
    justify-content:center;
    flex-wrap:wrap;
}

.card{
    background:white;
    padding:30px;
    border-radius:15px;
    width:300px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    text-align:center;
}

.card h3{
    margin-bottom:15px;
}

.card p{
    margin-bottom:20px;
}




/*estilo sin negrita*/

.sinbold{
  font-family: "sofia-pro-narrow-black", sans-serif;
font-weight: 200;
font-style: normal;
}


.center{text-align:center;}
.intro{max-width:700px;margin:auto;margin-top:20px;}

.tabs{text-align:center;margin:40px 0;}
.tab-btn{
    padding:12px 25px;
    margin:10px;
    border:none;
    background:#eee9e2;
    border-radius:30px;
    cursor:pointer;
    transition:.3s;
}
.tab-btn.active,.tab-btn:hover{background:#c21617;color:white;}

.tab-content{display:none;text-align:center;margin-top:20px;}
.tab-content.active{display:block;}

.cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    margin-top:40px;
}
.card{
    padding:35px;
    background:white;
    border-radius:20px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    text-align:center;
    transition:.4s;
}

.card:hover{
    transform:translateY(-10px);
}

.card img{
    width:120px;
    margin-top:25px;
    transition:.5s;
}

.card:hover img{
    transform:scale(1.15) rotate(6deg);
}

.accordion{
    max-width:750px;
    margin:auto;
    margin-top:50px;
    background:white;
    padding:40px;
    border-radius:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}
.acc-btn{
    width:100%;
    padding:22px 25px;
    border:none;
    text-align:left;
    background:#eee9e2;
    margin-top:15px;
    cursor:pointer;
    border-radius:15px;
    font-size:18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    transition:.3s;
    position:relative;
}

/* efecto hover que invita a pulsar */
.acc-btn:hover{
    background:#ddd6cf;
    transform:scale(1.02);
}

.acc-content{
    max-height:0;
    overflow:hidden;
    transition:max-height .5s ease;
    padding:0 20px;
    background:white;
    border-radius:0 0 15px 15px;
}

.acc-content.show{
    max-height:200px;
    padding:20px;
}

/* flecha animada */
.acc-btn::after{
    content:"▼";
    font-size:14px;
    transition:.3s;
}

/* cuando está abierto rota */
.acc-btn.open::after{
    transform:rotate(180deg);
}

@media(max-width:900px){
.cards{grid-template-columns:1fr;}
}

/* BLOQUE DONACIÓN + CARRUSEL */
.donation-info{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

/* TEXTO */
.donation-text p{
    margin-top:20px;
    line-height:1.7;
}

/* CARRUSEL */
.carousel{
    position:relative;
    overflow:hidden;
    border-radius:20px;
}

.carousel-track{
    display:flex;
    transition:transform .6s ease;
}

.carousel img{
    width:100%;
    min-width:100%;
    height:350px;
    object-fit:cover;
}

/* BOTONES */
.carousel-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:40px;
    height:50px;
    border:none;
    background:var(--beige);
    color:white;
    
    font-size:18px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.3s;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
}

/* forma gota izquierda */
.prev{
    left:15px;
    border-radius:50% 50% 50% 0;
}

/* forma gota derecha */
.next{
    right:15px;
    border-radius:50% 50% 0 50%;
}

.carousel-btn:hover{
    transform:translateY(-50%) scale(1.1);
    background-color: #c21617;
}

/* RESPONSIVE */
@media(max-width:900px){
    .donation-info{grid-template-columns:1fr;}
}

.sinbold{
  font-family: "sofia-pro-narrow-black", sans-serif;
font-weight: 200;
font-style: normal;
}


/* FONDO ANIMADO SECCIÓN TIPOS */
.donation-types-bg{
    position:relative;
    overflow:hidden;
}

/* líneas animadas fondo */
.donation-types-bg::before{
    content:"";
    position:absolute;
    width:200%;
    height:200%;
    top:-50%;
    left:-50%;
    background:repeating-linear-gradient(
        45deg,
        transparent 0px,
        transparent 40px,
        rgba(194,22,23,0.06) 40px,
        rgba(194,22,23,0.06) 42px
    );
    animation:moveBg 20s linear infinite;
}

/* animación fondo */
@keyframes moveBg{
    from{transform:translateX(0);}
    to{transform:translateX(200px);}
}

/* CAJA BLANCA CONTENIDO */
.donation-box{
    position:relative;
    background:white;
    padding:60px;
    border-radius:25px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

/* IMPACTO */
.impact-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    margin-top:40px;
}

.impact-card{
    background:white;
    padding:30px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.big-number{
    font-size:60px;
    color:var(--rojo);
}

/* BARRAS */
.bars{
    max-width:700px;
    margin:auto;
}

.bar{
    margin-bottom:20px;
}

.progress{
    background:#eee;
    height:12px;
    border-radius:20px;
    overflow:hidden;
}

.progress div{
    height:100%;
    background:var(--gris3);
    animation:load 2s ease forwards;
}

.progress.low div{
    background:var(--rojo);
}

@keyframes load{
    from{width:0;}
}

/* DONUT SIMPLE */
.donut-grid{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.donut{
    width:140px;
    height:140px;
    border-radius:50%;
    
   
    background: conic-gradient(
        var(--rojo) calc(var(--p) * 1%),
        var(--gris1) 0
    );

    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-weight:bold;
    text-align:center;
    position:relative;
}


/* BLOOD TYPES */
.blood-types{
    display:flex;
    justify-content:center;
    gap:40px;
}

.blood{
    width:150px;
    height:150px;
    border-radius:50%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    color:white;
    font-weight:bold;
}

.blood span{
    font-size:12px;
    margin-top:5px;
}

.o{background:#c21617;}
.ab{background:#757473;}

/* ALERTA */
.warning{
    margin-top:30px;
    font-weight:bold;
    color:var(--rojo);
}

/* BIG STAT */
.big-stat{
    font-size:40px;
    text-align:center;
}







/* HERO DATOS - EFECTO PULSO */
.hero-pulse{
    height:55vh;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    overflow:hidden;
    background:white;
}

/* círculos animados */
.pulse-circle{
    position:absolute;
    width:200px;
    height:200px;
    border-radius:50%;
    border:2px solid rgba(194,22,23,0.4);
    animation:pulse 3s infinite;
}

.pulse-circle.delay{
    animation-delay:1.5s;
}

/* animación latido */
@keyframes pulse{
    from{
        transform:scale(0.5);
        opacity:0.7;
    }
    to{
        transform:scale(4);
        opacity:0;
    }
}

.frecuencia-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:40px;
    max-width:800px;
    margin:50px auto 0;
}

/* ================= HERO FIX FINAL ================= */

.hero-lines{
    height:65vh;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    overflow:hidden;
    background:white;
    padding-top:80px;
    box-sizing:border-box;
}

/* CANVAS (fondo real) */
#threadCanvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    display:block;
    z-index:0; /*  IMPORTANTE: fondo */
}

/* capa blanca suave encima del canvas */
.hero-lines::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to bottom,
        rgba(255,255,255,0.92),
        rgba(255,255,255,0.75)
    );
    z-index:1;
    pointer-events:none;
}

/* TITULO */
.hero-title{
    font-size:90px;
    color:var(--gris3);
    position:relative;
    z-index:2;   /*  encima de todo */
    
    opacity:0;
    transform:translateY(25px);
    animation:titleFade 1.2s ease forwards;
}

/* animación entrada */
@keyframes titleFade{
    to{
        opacity:1;
        transform:translateY(0);
    }
}