: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 */
.hero{
    height:100vh;
    width:100%;
    background:url(hero.png) center/cover no-repeat;
}

/* capa oscura */
.hero-overlay{
    background:rgba(0,0,0,0.4);
    padding:50px;
    border-radius:12px;
    color:white;
}

.hero h1{
    font-size:70px;
    margin-bottom:10px;
}

.hero p{
    font-size:20px;
    margin-bottom:25px;
}

.hero{
    position:relative; /* importante botón dentro */
}

.hero-title{
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 2px;
  position:relative;  
  z-index:2;          
}



/* botón bajar en hero */
.hero-scroll-btn{
    position:absolute;
    bottom:40px;
    left:50%;
    transform:translateX(-50%);
    
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    
    background:white;
    color:var(--gris3);
    font-size:22px;
    cursor:pointer;
    
    display:flex;
    align-items:center;
    justify-content:center;

    box-shadow:0 10px 20px rgba(0,0,0,0.15);
    transition:.3s;
}

.hero-scroll-btn:hover{
    background:var(--rojo);
    color:white;
    transform:translateX(-50%) translateY(5px);
}

/* botón */
.hero-btn{
    padding:12px 28px;
    border:none;
    border-radius:30px;
    cursor:pointer;
    font-size:16px;
    background:white;
    color:var(--gris3);
    transition:.3s;
}

.hero-btn:hover{
    background:var(--rojo);
    color:white;
    transform:translateY(3px);
}

/* 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;
}

.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;
}

.hero-fluid{
    height:55vh;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    overflow:hidden;
    background:white;
    isolation:isolate;   
}

.lines span{
    position:absolute;
    width:200%;
    height:6px;
    background:#dc2626;
    border-radius:20px;
    animation:flow 6s linear infinite;
    z-index:0;         
}

.lines span:nth-child(1){top:30%; animation-delay:0s;}
.lines span:nth-child(2){top:45%; animation-delay:1s;}
.lines span:nth-child(3){top:60%; animation-delay:2s;}
.lines span:nth-child(4){top:75%; animation-delay:3s;}

@keyframes flow{
    from{transform:translateX(-100%);}
    to{transform:translateX(100%);}
}

.process-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:40px;
    margin-top:40px;
}

.process-card{
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.process-card:hover{
    transform:translateY(-10px);
}

.checklist{
    display:grid;
    gap:20px;
    max-width:600px;
    margin:40px auto 0;
}

.check-item{
    background:white;
    padding:18px;
    border-radius:30px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transition:.3s;
}

.check-item:hover{
    transform:scale(1.05);
    color:#c21617;
}

/* SECCIÓN REQUISITOS INTERACTIVA */
.requisitos{
  background:white;
  padding:120px 8%;
  text-align:center;
}

.requisitos-wrapper{
  position:relative;
  display:flex;
  justify-content:space-between;
  margin-top:80px;
}


/* HOVER */
.req-item:hover{
  transform:translateY(-8px);
}

/* ESTADO ACTIVO */
.req-item.active{
  opacity:1;
}

.req-item.active .req-icon{
  background:#c21617;
}

.req-item.active img{
  filter:brightness(0) invert(1);
}

/* SECCIÓN REQUISITOS FLIP */
.requisitos{
  background:#f7f5f2;
  padding:120px 10%;
  text-align:center;
}

.flip-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
  margin-top:60px;
}

/* TARJETA */
.flip-card{
  perspective:1000px;
  height:260px;
}

.flip-inner{
  position:relative;
  width:100%;
  height:100%;
  transition:transform 0.8s;
  transform-style:preserve-3d;
}

/* EFECTO HOVER */
.flip-card:hover .flip-inner{
  transform:rotateY(180deg);
}

/* CARAS */
.flip-front,
.flip-back{
  position:absolute;
  width:100%;
  height:100%;
  backface-visibility:hidden;
  border-radius:20px;
  padding:30px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}

/* DELANTE */
.flip-front{
  background:white;
}

.flip-front img{
  width:90px;
  margin-bottom:15px;
}

/* DETRÁS */
.flip-back{
  background:#c21617;
  color:white;
  transform:rotateY(180deg);
  font-weight:400;
}
.cuidados-table{
    max-width:800px;
    margin:40px auto;
}

.title{
    font-weight:bold;
    background:#eee9e2;
}

.tabla-cuidados{
  display:flex;
  gap:40px;
  margin:40px auto 80px auto;   /* margen lateral + margen abajo */
  max-width:1100px;             /* bordes */
  padding:0 20px;               /* aire a los lados en móvil */
  flex-wrap:wrap;
}

.columna-cuidados{
  flex:1;
  min-width:280px;
  background:white;
  padding:30px;
  border-radius:20px;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
  margin-bottom:20px;   /* ← separación extra abajo */
}

.columna-cuidados h3{
  text-align:center;
  margin-bottom:25px;
  color:#dc2626;
}

.item-cuidado{
  display:flex;
  align-items:center;
  gap:15px;
  margin-bottom:18px;
  padding:12px;
  border-radius:12px;
  transition:0.3s;
}

.item-cuidado img{
  width:45px;
  height:45px;
  object-fit:contain;
}

.item-cuidado:hover{
  background:#fff1f2;
  transform:translateX(6px);
}

.cuidados{
  text-align:center;
  padding:100px 0 20px 0;
}

h2{
  font-size:42px;
    margin-bottom:30px;
}

/* SECCIÓN */
.proceso{
    background:#f7f5f2;
    padding-bottom:80px;
}

/* LÍNEA DEL TIMELINE */
.timeline{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    position:relative;
    margin-top:70px;
    gap:30px;
}

.timeline::before{
    content:"";
    position:absolute;
    top:35px;
    left:0;
    width:100%;
    height:6px;
    background:#c21617;
    border-radius:20px;
    z-index:0;
}

/* PASOS */
.step{
    position:relative;
    text-align:center;
    width:22%;
    z-index:1;
}

/* CÍRCULO NUMERO */
.circle{
    width:70px;
    height:70px;
    background:white;
    border:6px solid #c21617;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-weight:bold;
    font-size:22px;
    margin:0 auto 20px;
    transition:.3s;
}

/* ILUSTRACIÓN */
.step img{
    width:120px;
    margin:10px 0 15px;
    transition:.3s;
}

/* TARJETA TEXTO */
.step h3{
    margin-bottom:10px;
}

/* HOVER ANIMACIÓN */
.step:hover img{
    transform:translateY(-10px) scale(1.05);
}

.step:hover .circle{
    background:#c21617;
    color:white;
}

.sinbold{
  font-family: "sofia-pro-narrow-black", sans-serif;
font-weight: 200;
font-style: normal;
}

/* ================= 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);
    }
}