﻿/*____________________ ESTABLECIENDO ESTILOS GENERALES _____________________*/
:root {
  --color-fondo: #050505;
  --color-superficie: #10100f;
  --color-superficie-clara: #181715;
  --color-texto: #f7f3ea;
  --color-texto-suave: #d7d0c2;
  --color-acento: #f5a623;
  --color-linea: rgba(245, 166, 35, 0.24);
  --color-linea-suave: rgba(255, 255, 255, 0.12);
  --ancho-contenido: 74rem;
  --fuente-titulo: "Rajdhani", "Segoe UI", Roboto, Arial, sans-serif;
  --fuente-principal: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --fuente-secundaria: "Rajdhani", "Segoe UI", Roboto, Arial, sans-serif;
  --fuente-acento: "Saira Semi Condensed", "Bahnschrift", "Arial Narrow", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-texto);
  background: var(--color-fondo);
  font-family: var(--fuente-principal);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.contenedor {
  width: min(calc(100% - 2rem), var(--ancho-contenido));
  margin-inline: auto;
}


/*____________________ DISEÑANDO CABECERA _____________________*/
.cabecera {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(3, 3, 3, 0.88);
  border-bottom: 1px solid var(--color-linea-suave);
  backdrop-filter: blur(8px);
}

.cabecera__logo {
  display: inline-flex;
  align-items: center;
  width: 8rem;
}

.cabecera__logo img {
  width: 100%;
  height: auto;
}

.menu__boton {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--color-linea-suave);
  border-radius: 0.2rem;
  color: var(--color-texto);
  cursor: pointer;
}

.menu__boton span,
.menu__boton::before,
.menu__boton::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  transition: all 0.3s ease;
}

.menu__boton::before {
  top: 0.5rem;
}

.menu__boton span {
  top: 1rem;
}

.menu__boton::after {
  top: 1.5rem;
}

.menu__boton[aria-expanded="true"]::before {
  transform: translateY(0.5rem) rotate(45deg);
}

.menu__boton[aria-expanded="true"] span {
  opacity: 0;
}

.menu__boton[aria-expanded="true"]::after {
  transform: translateY(-0.5rem) rotate(-45deg);
}

.navegacion {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: none;
  padding: 1rem;
  background: rgba(3, 3, 3, 0.98);
  border-bottom: 1px solid var(--color-linea-suave);
}

.navegacion--abierta {
  display: block;
}

.navegacion__lista {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navegacion__enlace {
  display: block;
  padding: 0.85rem 0;
  color: var(--color-texto);
  font-weight: 700;
  font-family: var(--fuente-secundaria);
}

.navegacion__enlace--activo,
.navegacion__enlace:hover {
  color: var(--color-acento);
}


/*____________________ DISEÑANDO HERO (PARTE PRINCIPAL) _____________________*/
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 8rem 0 3rem;
  background: var(--color-fondo);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -10;
  background: url("../img/furgoneta_fondo_pantalla.png") 63% center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -10;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.74)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.82) 56%, rgba(0, 0, 0, 0.32) 100%);
}

.hero__contenido {
  max-width: 95svw;
  margin-left: 1rem;
}

.hero .etiqueta {
  max-width: 60%;
}

.etiqueta {
  margin: 0 0 0.75rem;
  color: var(--color-acento);
  font-size: 0.65rem;
  max-width: 90%;
  font-family: var(--fuente-acento);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  padding: 1rem 0 0.5rem;
  letter-spacing: 0.02rem;
  line-height: 1.15;
}

h1 {
  max-width: 12ch;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  color: var(--color-texto);
  font-size: clamp(2rem, 10vw, 6rem);
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.82);
  text-transform: uppercase;
  font-family: var(--fuente-titulo);
  font-weight: 700;
  font-style: normal;
}

h1 span{
    color: var(--color-acento);
    font-family: var(--fuente-acento);
    font-weight: 900;
}

.hero__entradilla {
  max-width: 24ch;
  margin: 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-linea);
  color: var(--color-texto);
  font-size: clamp(1rem, 4.4vw, 1.55rem);
  font-family: var(--fuente-principal);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.86);
}

.hero__acciones,
.pie__contenido {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__acciones {
  width: 100%;
  max-width: 25rem;
  margin-top: 1.5rem;
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  max-width: 80svw;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--color-acento);
  border-radius: 0.2rem;
  font-family: var(--fuente-acento);
  font-weight: 800;
  text-align: center;
  transition: all 0.3s ease;
}

.boton:hover,
.boton:focus-visible {
  transform: scale(1.02);
}

.boton--principal {
  color: var(--color-fondo);
  background: var(--color-acento);
  transition: all 0.5s ease;
}

.boton--principal:hover {
  color: var(--color-acento);
  background: var(--color-fondo);
  transition: all 0.5s ease;
}


/*____________________ DISEÑANDO SECCIÓN DE PRESENTACIÓN _____________________*/
.seccion {
  padding: 2rem 0;
}

.presentacion {
  background: var(--color-fondo);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 12vw, 3.8rem);
  font-family: var(--fuente-secundaria);
  font-weight: 700;
}

.presentacion__texto {
  display: grid;
  gap: 0.85rem;
  counter-reset: razones;
}

.presentacion__texto p {
  color: var(--color-texto-suave);
  font-size: 1rem;
  position: relative;
  margin: 0;
  padding: 1rem 1rem 1rem 3.25rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(24, 23, 21, 0.88), rgba(16, 16, 15, 0.62));
  border: 1px solid var(--color-linea-suave);
  border-left: 3px solid var(--color-acento);
  line-height: 1.65;
  text-transform: none;
  counter-increment: razones;
}

.presentacion__texto p:first-child {
  color: var(--color-texto);
  font-weight: 400;
  text-transform: none;
}

.presentacion__texto p::before {
  position: absolute;
  color: var(--color-acento);
  font-family: var(--fuente-acento);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  content: "";
  top: 1.15rem;
  left: 1rem;
  width: 0.82rem;
  height: 0.82rem;
  background: var(--color-acento);
  box-shadow: 0 0 0 5px rgba(245, 166, 35, 0.12);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 24% 50%);
}

.presentacion__texto p::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 4rem;
  height: 4rem;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.12), transparent 68%);
  pointer-events: none;
}

.presentacion__texto p:nth-child(1)::before,
.presentacion__texto p:nth-child(2)::before,
.presentacion__texto p:nth-child(3)::before,
.presentacion__texto p:nth-child(4)::before {
  clip-path: polygon(0 0, 100% 50%, 0 100%, 24% 50%);
}


/*____________________ DISEÑANDO SECCIÓN DE DATOS _____________________*/
.datos {
  padding: 1rem 0;
  background: var(--color-acento);
  color:var(--color-fondo);
}

.datos__grid {
  display: grid;
}

.dato {
  padding: 1.4rem;
  background: var(--color-acento);
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

.dato:last-child {
  border-bottom: none;
}

.dato strong {
  display: block;
  font-size: clamp(2.1rem, 9vw, 3.4rem);
  line-height: 1;
}

.dato span {
  display: block;
  margin-top: 0.35rem;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.5rem;
}


/*____________________ DISEÑANDO SECCIÓN DE PRODUCTOS _____________________*/
.productos,
.proceso {
  background: var(--color-superficie);
}

.tarjetas {
  display: grid;
  gap: 1rem;
}

.tarjeta {
  min-height: 17rem;
  padding: 1.35rem;
  background: var(--color-superficie-clara);
  border: 1px solid var(--color-linea-suave);
}

.tarjeta__numero {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--color-acento);
  font-weight: 800;
}

h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  letter-spacing: 1px;
}

.tarjeta p {
  margin-bottom: 0;
  color: var(--color-texto-suave);
  font-size: 0.8rem;
  line-height: 1.9;
}

.boton--secundario {
  color: var(--color-texto);
  background: var(--color-fondo);
  margin-bottom: 1rem;
  justify-self: center;
}

.boton--secundario:hover {
  color: var(--color-acento);
  background: var(--color-fondo);
  transition: all 0.5s ease;
}


/*____________________ DISEÑANDO APARTADO DE PRESUPUESTO _____________________*/
.presupuesto {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.35rem;
  align-items: center;
  background: linear-gradient(135deg, var(--color-acento), #f7bf56);
  color: var(--color-fondo);
}

.presupuesto p {
  margin-top: 0;
  color: var(--color-superficie);
  font-weight: 700;
}

.presupuesto .boton--principal {
  border-color: var(--color-superficie);
}


/*____________________ DISEÑANDO APARTADO DE SERVICIOS _____________________*/
.servicio {
  background: var(--color-fondo);
}

.servicio__grid {
  display: grid;
  gap: 1rem;
}

.servicio__imagen {
  min-height: 20rem;
  background: url("../img/furgoneta_fondo_pantalla.png") 75% center / cover no-repeat;
  border: 1px solid var(--color-linea-suave);
}

.lista-check {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 2rem;
  padding: 0;
  list-style: none;
}

.lista-check li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--color-texto-suave);
}

.lista-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--color-acento);
}

.servicio__grid div{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.5rem;
}


/*____________________ DISEÑANDO APARTADO DEL PROCEDIMIENTO _____________________*/
.pasos {
  display: grid;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pasos;
}

.pasos li {
  position: relative;
  min-height: 12rem;
  padding: 1.35rem;
  background: var(--color-superficie-clara);
  border: 1px solid var(--color-linea-suave);
  counter-increment: pasos;
}

.pasos li::before {
  content: "0" counter(pasos);
  display: block;
  margin-bottom: 1.5rem;
  color: var(--color-texto-suave);
  font-size: 1.1rem;
  font-weight: 800;
}

.pasos strong {
  display: block;
  color: var(--color-acento);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  font-weight: 800;
}

.pasos span {
  display: block;
  margin-top: 0.7rem;
  color: var(--color-texto-suave);
  font-size: 0.8rem;
  line-height: 1.9;
}


/*____________________ DISEÑANDO APARTADO DE CONTACTO _____________________*/
#contacto {
  scroll-margin-top: 5rem;
}

.contacto {
  padding: 2rem 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.74)),
    url("../img/furgoneta_fondo_pantalla.png") 86% center / cover no-repeat fixed;
}

.contacto__grid {
  display: grid;
  gap: 1rem;
}

.formulario {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem;
  background: rgba(8, 8, 8, 0.72);
  border: 1px solid var(--color-linea-suave);
}

.formulario label {
  font-weight: 800;
  color: var(--color-texto-suave);
}

.formulario input,
.formulario textarea {
  width: 100%;
  border: 1px solid var(--color-linea-suave);
  padding: 0.55rem;
  color: var(--color-acento);
  background: var(--color-superficie-clara);
}

.formulario textarea {
  resize: vertical;
  margin-bottom: 1rem;
}

.formulario__privacidad {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  grid-column: 1 / -1;
  padding: 0.85rem;
  border: 1px solid var(--color-linea-suave);
  background: rgba(16, 16, 15, 0.72);
}

.formulario__privacidad input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--color-acento);
}

.formulario__privacidad label {
  color: var(--color-texto-suave);
  font-size: 0.88rem;
  line-height: 1.5;
}

.formulario__privacidad a {
  color: var(--color-acento);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.formulario__privacidad .formulario__error {
  grid-column: 1 / -1;
  margin-left: 0;
}

.formulario__privacidad input[aria-invalid="true"] {
  outline: 2px solid #ff8f7a;
  outline-offset: 3px;
}


/*____________________ DISEÑANDO PIE DE PÁGINA _____________________*/
.pie {
  padding: 1.5rem 0;
  color: var(--color-texto-suave);
  background: var(--color-fondo);
  border-top: 1px solid var(--color-linea-suave);
}

.pie p {
  margin: 0;
  font-size: 0.9rem;
}

.pie span {
  display: block;
  text-align: right;
  color: var(--color-acento);
  font-size: 1rem;
  font-weight: 800;
}

.pie i {
  display: block;
  text-align: right;
  font-size: 0.8rem;
}

.pie a {
  color: var(--color-texto-suave);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.pie a:hover {
  color: var(--color-acento);
}


/*______________ ESTILOS PARA TIPOGRAFÍAS _____________*/
#titulo-presentacion,
#titulo-productos,
#titulo-servicio,
#titulo-proceso,
#titulo-storytelling,
#titulo-contacto {
  font-family: var(--fuente-secundaria);
}


/*____________________ ESTILOS PARA ACCESIBILIDAD _____________________*/
.boton:focus-visible,
.navegacion__enlace:focus-visible,
.cabecera__logo:focus-visible,
.menu__boton:focus-visible,
.formulario input:focus-visible,
.formulario textarea:focus-visible {
  outline: 3px solid var(--color-acento);
}


/*____________________ DISEÑANDO ESTILOS PARA RESPONSIVE _____________________*/

@media (min-width: 425px) {
  .contenedor {
    width: min(calc(100% - 3rem), var(--ancho-contenido));
  }}

@media (min-width: 680px) {
  .cabecera {
    padding-inline: clamp(1.5rem, 4vw, 4rem);
  }
  .cabecera__logo {
    width: 11rem;
  }
  .hero {
    align-items: center;
    padding: 9rem 0 0;
    padding-bottom: 5rem;
  }
  .hero::before {
    opacity: 0.78;
  }
  .hero__contenido {
    margin-left: max(2rem, calc((100vw - var(--ancho-contenido)) / 2));
  }
  .hero__acciones {
    flex-direction: row;
    align-items: center;
  }
  h2 {
    font-size: clamp(2rem, 6vw, 2.75rem);
  }
  .presentacion__texto p {
    min-height: 10.5rem;
  }
  .dato {
    border-right: 1px solid rgba(0, 0, 0, 0.16);
  }
  .datos__grid .dato {
    border-bottom: none;
    border-right: 1px solid rgba(0, 0, 0, 0.16);
  }
  .datos__grid .dato:last-child {
    border-right: none;
  }
  .presupuesto {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr) minmax(0, 0.85fr);
    text-align: center;
  }
  .presupuesto h3 {
    max-width: 12ch;
    font-weight: 800;
  }
  .presupuesto p {
    max-width: 34ch;
  }
  .etiqueta {
    max-width: none;
  }
  .hero__entradilla {
    max-width: 30ch;
  }
  .presentacion__texto {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .datos__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dato{
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .dato span {
    max-width: 15ch;
  }
  .tarjetas,
  .pasos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tarjetas > :last-child,
  .pasos > :last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 50%;
  }
  .formulario {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .formulario > :nth-child(n + 5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
  }
  .formulario > button[type="submit"] {
    width: 100%;
    max-width: none;
  }
  .pie__contenido {
    flex-direction: row;
    justify-content: space-between;
    text-align: center;
  }
  .pie span {
    text-align: left;
  }
  .storytelling {
    padding: 4rem 0 2rem;
  }
  .storytelling__recorrido {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .storytelling__paso:nth-child(2) {
    margin-top: 3rem;
  }
  .storytelling__paso:nth-child(3) {
    margin-top: 6rem;
  }
}

@media (min-width: 980px) {
  #contacto {
    scroll-margin-top: 5rem;
  }
  .cabecera {
    padding-block: 0.9rem;
  }
  .menu__boton {
    display: none;
  }
  .navegacion {
    position: static;
    display: block;
    width: auto;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border-bottom: 0;
  }
  .navegacion__lista {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
  }
  .navegacion__enlace {
    position: relative;
    padding: 0.4rem 0;
    font-size: 0.98rem;
  }
  .navegacion__enlace::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-acento);
    transition: width 0.2s ease;
  }
  .navegacion__enlace:hover::after,
  .navegacion__enlace--activo::after {
    width: 100%;
  }
  .hero{
    padding-top: 10rem;
  }
  .hero__contenido {
    display: grid;
    width: min(calc(100vw - 6rem), var(--ancho-contenido));
    max-width: 90%;
    padding-left: 3rem;
    padding-right: 3rem;
    grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.65fr);
    column-gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
  }
  .hero__contenido h1 {
    grid-column: 1;
    grid-row: 1 / 4;
    padding: 0;
    max-width: 13ch;
    margin-bottom: 0;
    font-size: clamp(3rem, 6.8vw, 5.2rem);
  }
  .hero__contenido .etiqueta {
    grid-column: 2;
    grid-row: 1;
    max-width: 100%;
    align-self: start;
    margin-bottom: 0.5rem;
  }
  .hero__entradilla {
    grid-column: 2;
    grid-row: 2;
    max-width: 32ch;
    padding: 1.1rem 0;
  }
  .hero__acciones {
    grid-column: 2;
    grid-row: 3;
    width: auto;
    max-width: none;
    margin-top: 0.8rem;
  }
  .seccion{
    padding-top: 3rem;
  }
  .servicio__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
  }
  .contacto__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }
  .presentacion__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }
  .servicio__grid > :first-child {
    grid-column: 1 / -1;
  }
  .servicio__imagen {
    height: 90%;
  }
  .presentacion__texto,
  .servicio__grid > div p,
  .contacto__grid > div p {
    max-width: 90%;
  }
  .presentacion__texto {
    gap: 1rem;
    width: 100%;
    max-width: 90%;
    margin-inline: auto;
    justify-self: center;
  }
  .tarjetas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .presupuesto {
    display: flex;
    flex-direction: row;
    gap: 3.5rem;
    align-items: center;
    justify-content: center;
  }
  .datos__grid,
  .pasos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pasos > :last-child {
    grid-column: auto;
    max-width: none;
  }
  .servicio__imagen {
    min-height: 34rem;
  }
  .storytelling {
    min-height: auto;
    display: grid;
    align-items: start;
  }
  .storytelling__cabecera {
    position: sticky;
    top: 8rem;
  }
  .storytelling__contenedor {
    width: min(calc(100% - 3rem), 82rem);
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: top;
  }
  .storytelling__recorrido {
    gap: 1.15rem;
  }
  .storytelling__paso h3 {
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .storytelling__fondo,
  .animacion-suave,
  .storytelling__paso::before {
    transition: none;
    transform: none;
    will-change: auto;
  }
  .animacion-suave {
    opacity: 1;
  }
  .js-animaciones .hero.hero--entrada::before,
  .js-animaciones .hero.hero--entrada .hero__contenido,
  .js-animaciones .seccion,
  .js-animaciones .datos,
  .js-animaciones .elemento-animado,
  .js-animaciones .productos .tarjeta.elemento-animado,
  .js-animaciones .proceso .pasos li.elemento-animado {
    opacity: 1;
    animation: none;
    transition: none;
    transform: none;
    clip-path: none;
  }
}


/*______________ DISEÑANDO STORYTELLING Y PARALLAX (ANIMACIONES) _____________*/
.storytelling {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: auto;
  padding: 2rem 0;
  background: var(--color-fondo);
}

.storytelling__fondo {
  display: none;
}

@media (min-width: 980px) {
  .storytelling {
    padding-top: 3rem;
  }
}
.storytelling__contenedor {
  display: grid;
  gap: 2rem;
}
.storytelling__cabecera {
  max-width: 42rem;
}
.storytelling__cabecera p:last-child {
  color: var(--color-texto-suave);
  font-family: var(--fuente-principal);
  font-size: clamp(1rem, 4vw, 1.35rem);
}
.storytelling__recorrido {
  display: grid;
  gap: 1rem;
}
.storytelling__paso {
  position: relative;
  padding: 1.35rem;
  overflow: hidden;
  background: rgba(16, 16, 15, 0.76);
  border: 1px solid var(--color-linea-suave);
  backdrop-filter: blur(8px);
}
.storytelling__paso::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--color-acento);
  transform: scaleY(0.35);
  transform-origin: top;
  transition: transform 0.6s ease;
}
.storytelling__paso:hover::before,
.storytelling__paso:focus-within::before {
  transform: scaleY(1);
}
.storytelling__numero {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--color-acento);
  font-family: var(--fuente-acento);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.storytelling__paso h3 {
  max-width: 14ch;
  color: var(--color-texto);
}
.storytelling__paso p {
  margin: 0;
  color: var(--color-texto-suave);
  font-size: 0.9rem;
  line-height: 1.8;
}
.animacion-suave {
  opacity: 0;
  transform: translateY(1.8rem);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.animacion-suave.animacion-suave--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animaciones suaves */
@keyframes entradaHeroFondo {
  from {
    opacity: 0.55;
    transform: scale(1.2);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes entradaHeroTexto {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js-animaciones .hero.hero--entrada::before {
  transform-origin: center;
  animation: entradaHeroFondo 5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.js-animaciones .hero.hero--entrada .hero__contenido {
  animation: entradaHeroTexto 1.4s ease 0.25s both;
}

.js-animaciones .seccion,
.js-animaciones .datos {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.js-animaciones .seccion.seccion-visible,
.js-animaciones .datos.seccion-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-animaciones .elemento-animado {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.75s ease, transform 0.75s ease, border-color 0.75s ease, box-shadow 0.75s ease;
  transition-delay: var(--demora, 0ms);
}

.js-animaciones .elemento-animado.elemento-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animación propia para las tarjetas de productos */
.js-animaciones .productos .tarjeta.elemento-animado {
  transform: translateY(1.6rem) scale(0.96);
  transform-origin: center bottom;
  border-color: rgba(255, 255, 255, 0.08);
}

.js-animaciones .productos .tarjeta.elemento-visible {
  transform: translateY(0) scale(1);
  border-color: var(--color-linea);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.22);
}

.productos .tarjeta {
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.productos .tarjeta:hover,
.productos .tarjeta:focus-within {
  transform: translateY(-0.35rem);
  border-color: var(--color-acento);
  box-shadow: 0 1.2rem 2.6rem rgba(0, 0, 0, 0.34);
}

/* Animación propia para los pasos del proceso */
.js-animaciones .proceso .pasos li.elemento-animado {
  clip-path: inset(0 0 0 18%);
  transform: translateX(-1.1rem);
}

.js-animaciones .proceso .pasos li.elemento-visible {
  clip-path: inset(0 0 0 0);
  transform: translateX(0);
}

.proceso .pasos li {
  transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.proceso .pasos li:hover,
.proceso .pasos li:focus-within {
  transform: translateY(-0.3rem);
  border-color: var(--color-acento);
  background: #1d1b18;
}


/*______________ VALIDANDO EL FORMULARIO DE CONTACTO _____________*/
.formulario__error {
  min-height: 1.25rem;
  margin: 0.35rem 0 0;
  color: #ffb4a8;
  font-size: 0.78rem;
  line-height: 1.4;
}

.formulario__estado {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--color-linea-suave);
  color: var(--color-texto-suave);
  background: rgba(8, 8, 8, 0.82);
  font-size: 0.9rem;
}

.formulario__estado--error {
  border-color: #ff8f7a;
  color: #ffcabf;
}

.formulario__estado--exito {
  border-color: var(--color-acento);
  color: var(--color-acento);
}

.formulario input[aria-invalid="true"],
.formulario textarea[aria-invalid="true"] {
  border-color: #ff8f7a;
  box-shadow: 0 0 0 2px rgba(255, 143, 122, 0.18);
}

.formulario input[aria-invalid="false"],
.formulario textarea[aria-invalid="false"] {
  border-color: rgba(245, 166, 35, 0.52);
}
