@font-face {
  font-family: 'MiFuente';
  src: url('../fonts/FormaDJRDisplay-Medium.woff2') format('woff2'),
       url('../fonts/FormaDJRDisplay-Medium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==== VARIABLES CSS ==== */
:root {
  --color-principal: #034c8c;
  --color-secundario: #f7aa36;
  --color-fondo: #ffffff;
  --color-fondo-sec: #f4f4f4;
  --color-texto: #010626;
  --color-footer: #1a1a1a;
  --color-footer-text: #fff;
  --color-btn: #010626;
  --color-btn-hover: #2481a6;
  --color-shadow: #2481a6;
  --font-principal: 'MiFuente', Arial, sans-serif;
}

/* ==== RESET Y BASE ==== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-principal);
  margin: 0;
  padding: 0;
  background: var(--color-fondo);
  color: var(--color-texto);
}

/* ===== HEADER ===== */
.header-container {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--color-fondo)
}

.logo img {
  height: 60px;
  width: auto;
}

.spacer {
  flex: 1;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav ul li a {
  text-decoration: none;
  color: var(--color-texto);
  font-weight: 600;
  font-size: 18px;
  transition: color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus {
  color: var(--color-principal);
  outline: none;
}

/* ===== HERO SECTION ===== */
#hero {
  background-color: var(--color-fondo);
  padding: 3rem 2rem;
}

.hero-redesign {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
}

.hero-title {
  font-size: 6rem;
  margin: 0;
  line-height: 1.1;
  color: var(--color-texto);
}

.hero-title span {
  display: inline-block;
  opacity: 0;
  margin: 0 0.02em;
  white-space: nowrap;
}

/* Animaciones */
@keyframes fly-in-top {
  0% { transform: translateY(-100vh); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fly-in-left {
  0% { transform: translateX(-100vw); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes fly-in-right {
  0% { transform: translateX(100vw); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes explode-appear {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fade-in-text {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-down-image {
  from { transform: translateY(-100px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.hero-subtext {
  position: relative;
  font-size: 1.5rem;
  color: #2481A6;
  min-height: 1.5rem;
  overflow: visible;
  cursor: pointer;
}

.hero-subtext .normal-text {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0;
  opacity: 0;
  z-index: 1;
  animation: fade-in-text 1s ease forwards;
  animation-delay: 0s; /* se actualiza desde JS */
  font-weight: normal;
  text-transform: none;
  font-size: 2.5rem;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hero-subtext .hover-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  z-index: 0;
  font-weight: bold;
  color: var(--color-principal);
  text-transform: uppercase;
  font-size: 3rem;
  transition: opacity 0.5s ease;
}

/* En hover, ocultar normal y mostrar hover */
.hero-subtext:hover .normal-text,
.hero-subtext:focus .normal-text {
  opacity: 0 !important;
  z-index: 1;
}

.hero-subtext:hover .hover-text,
.hero-subtext:focus .hover-text {
  opacity: 1 !important;
  z-index: 2;
}


.hero-left .btn {
  margin-top: auto;
  background-color: var(--color-btn);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border: 2px solid var(--color-btn);
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  align-self: center;
  position: relative;
  overflow: hidden;
  transition: color 0.4s, border-color 0.4s, background-color 0.4s;
  z-index: 1;
}

.hero-left .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--color-fondo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
  z-index: -1;
}

.hero-left .btn:hover,
.hero-left .btn:focus {
  color: #2481A6;
  border-color: #2481A6;
  outline: none;
}

.hero-left .btn:hover::before,
.hero-left .btn:focus::before {
  transform: scaleX(1);
}

.hero-left .btn:active {
  transform: scale(0.98);
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: slide-down-image 1.2s ease forwards;
  animation-delay: 0s; /* desde JS */
}

.hero-image {
  height: 100%;
  width: auto;
  object-fit: cover;
  border-radius: 12px;
  max-height: 600px;
}



/* ===== BUENA COMPAÑIA ===== */
#buena-compania {
  padding: 4rem 2rem;
  background: var(--color-fondo);
  text-align: center;
}

#buena-compania h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--color-texto);
}

.companias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.compania-card {
  background:var(--color-fondo);
  padding: 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 8px;
  box-shadow: 5.5px 5px 0.5px 1px var(--color-shadow);
  transition: transform 0.3s, font-size 0.3s, box-shadow 0.3s;
}

.compania-card:hover,
.compania-card:focus {
  transform: scale(1.05);
  box-shadow: 5.5px 5px 0.5px 1px var(--color-shadow);
  font-size: 1.4rem;
  outline: none;
}

/* ===== OFERTA ===== */
#nosotros h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--color-texto);
  text-align: center;
}

.columna.numero {
  text-align: center;
}

.oferta-tabla {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 3rem auto;
  max-width: 1200px;
  border-collapse: collapse;
  font-family: var(--font-principal);
}

.oferta-tabla .fila {
  display: grid;
  grid-template-columns: 1fr 2fr 3fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 1rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.oferta-tabla .numero {
  font-weight: bold;
  font-size: 30px;
  color: var(--color-texto);
}

.oferta-tabla .titulo {
  text-transform: uppercase;
  font-size: 36px;
  color: var(--color-principal);
  font-weight: 600;
}

.oferta-tabla .viñetas ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.oferta-tabla .viñetas li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.4rem;
  font-size: 18px;
  color: var(--color-principal);
}

.oferta-tabla .viñetas li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 1rem;
  color: #010626; /* Color del check */
}

.oferta-tabla .icono,
.columna.icono {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === SECCIÓN EXPERIENCIA === */
#experiencia {
  padding: 4rem 2rem;
  background: var(--color-fondo);
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: center;
}

.experiencia-item {
  flex: 1 1 250px;
  max-width: 300px;
}

.experiencia-icono img {
  width: 72px;
  height: 72px;
  margin-bottom: 0.5rem;
}

.experiencia-numero {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2481A6; /* Color del número tipo cronometro*/
  margin-bottom: 0.5rem;
}

.experiencia-texto {
  font-size: 1rem;
  color: var(--color-texto);
}

/* === ANIMACIÓN SLIDE-UP PARA EXPERIENCIA === */
.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= CONTACTO ================== */

#contacto {
  width: 100%;
  padding: 60px 0;
}

.contacto-wrapper-nuevo {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contacto-header {
  text-align: center;
  margin-bottom: 24px;
}

.contacto-header h2 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--color-texto); /* Color del título de CONTACTANOS */
}

.contacto-header p {
  font-size: 1.5rem;
  color: #2481A6; /* Color del subtítulo de CONTACTANOS */
  margin: 0 auto;
  max-width: 600px;
}

.contacto-main {
  display: flex;
  flex-direction: row;
  gap: 0;
  min-height: 480px;
}

/* Columna izquierda: info y redes */
.contacto-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  background: #f0f4f8; /* Fondo DIRECCION, EMAIL, TELEFONO Y REDES */
  border-radius: 16px 0 0 16px;
  overflow: hidden;  
}

.info-bloque {
  flex: 1;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding: 24px 28px;
  gap: 16px;
}

.info-bloque:last-child {
  border-bottom: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.info-bloque img {
  width: 38px; /* Ajusta el tamaño del PNG aquí */
  height: 38px;
  flex-shrink: 0;
  object-fit: contain;
}

.info-texto {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.info-texto h4 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
  color: var(--color-principal);  /* Color del título de los datos direccion, email, telefono */
}

.info-bloque p,
.info-bloque a {
  margin: 0;
  font-size: 1rem;
  color: var(--color-texto); /* Color del texto de los datos direccion, email, telefono */
  text-decoration: none;
  word-break: break-all;
}

.iconos {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 4px;
}

.iconos a img {
  width: 36px;
  height: 36px;
  transition: transform 0.3s;
  display: block;
}

.iconos a img:hover,
.iconos a img:focus {
  transform: scale(1.18);
}

.info-bloque span {
  font-size: 1rem;
  color: var(--color-texto);  /* Color del SIGUENOS debajo de los iconos de las RRSS*/  
  text-align: left;
  width: 100%;
  display: block;
  margin-top: 4px;
  letter-spacing: 10px;
} 

/* Columna derecha: formulario */
.contacto-form-col {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background:#f0f4f8; /* Fondo del formulario */
  border-radius: 0 16px 16px 0;  
}

.formulario-contacto {
  width: 100%;
  max-width: 420px;
  margin: auto 0;
  background: transparent;
  border-radius: 0 16px 16px 0;
  box-shadow: none;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.formulario-contacto form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.formulario-contacto form label {
  font-weight: 500;
  margin-bottom: 4px;
  margin-top: 0;
}

.formulario-contacto form input,
.formulario-contacto form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin: 0;
  background: var();
  transition: border-color 0.2s;
}

.formulario-contacto form input:focus,
.formulario-contacto form textarea:focus {
  border-color: var(--color-principal, #0077cc);
  outline: none;
}

.formulario-contacto form textarea {
  min-height: 100px;
  resize: vertical;
}

.formulario-contacto form button {
  width: 100%;
  padding: 14px 0;
  border-radius: 8px;
  background: var(--color-btn, #c62828);
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  margin-top: 8px;
  box-sizing: border-box;
}

.formulario-contacto form button:hover,
.formulario-contacto form button:focus {
  background: var(--color-btn-hover, #8e0000);
  color: #fff;
  outline: none;
}

/* ================= FOOTER PERSONALIZADO ================= */
.footer-amplio {
  min-height: 65vh;
  background-color: var(--color-footer);
  color: var(--color-footer-text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

.footer-contenido {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.footer-amplio h2 {
  font-size: 4rem;
  margin: 0;
  font-weight: 600;
}

.footer-brand {
  font-size: 1.5rem;
  color: var(--color-footer-text);
  margin-top: 10rem; /* Aumenta la separación respecto al h2 */
  letter-spacing: 4px;
  font-weight: 300;
}

/* === ANIMACIÓN COMPAÑIAS / Habilidades === */
.compania-card {
  opacity: 0;
}

@keyframes slide-left {
  from { transform: translateX(-120px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes slide-right {
  from { transform: translateX(120px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.compania-card.from-left.animate  { animation: slide-left 0.9s ease forwards; }
.compania-card.from-right.animate { animation: slide-right 0.9s ease forwards; }

/* Animación de entrada desde la izquierda para títulos H2 */
.slide-in-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Animación de entrada para tarjetas de "Nosotros" */
#nosotros h2 {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#nosotros h2.visible {
  opacity: 1;
  transform: translateY(0);
}

#nosotros .fila {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#nosotros .fila.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1100px) {
  .hero-title { font-size: 4rem; }
  .companias-grid { grid-template-columns: 1fr 1fr; }
  .oferta-tabla .fila { grid-template-columns: 1fr 2fr 3fr; }
}

/* ===================== RESPONSIVE DESIGN ===================== */
/* Para tablets y móviles (iPad Mini y menores) */
@media (max-width: 800px) {
  /* HEADER */
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.5rem;
  }
  .main-nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .logo img {
    height: 40px;
  }

  /* HERO */
  .hero-redesign {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
  }
  .hero-left {
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  .hero-subtext {
    font-size: 1.1rem;
    min-height: unset;
    position: static;
    margin-bottom: 0.5rem;
  }
  .hero-subtext .normal-text {
    display: block;
    position: static;
    opacity: 1 !important;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
  }
  .hero-subtext .hover-text {
    display: none !important;
  }
  .hero-left .btn {
    margin-top: 1.2rem;
    width: 100%;
    font-size: 1rem;
    padding: 0.8rem 0;
    align-self: stretch;
  }
  .hero-right {
    width: 100%;
    justify-content: center;
  }
  .hero-image {
    max-width: 95vw;
    max-height: 220px;
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  /* BUENA COMPAÑIA */
  #buena-compania {
    padding: 2rem 0.5rem;
  }
  #buena-compania h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .companias-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .compania-card {
    font-size: 1rem;
    padding: 1rem;
    height: auto;
  }

  /* NOSOTROS */
  #nosotros h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .oferta-tabla {
    margin: 1.5rem auto;
    max-width: 100%;
    gap: 0.5rem;
  }
  .oferta-tabla .fila {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #eee;
  }
  .oferta-tabla .numero {
    font-size: 1.2rem;
  }
  .oferta-tabla .titulo {
    font-size: 1.1rem;
  }
  .oferta-tabla .viñetas li {
    font-size: 1rem;
    padding-left: 1.2rem;
  }
  .oferta-tabla .icono img {
    width: 36px;
    height: 36px;
  }

  /* EXPERIENCIA */
  #experiencia {
    flex-direction: column;
    gap: 1.2rem;
    padding: 2rem 0.5rem;
  }
  .experiencia-item {
    max-width: 100%;
    margin: 0 auto;
  }
  .experiencia-icono img {
    width: 48px;
    height: 48px;
  }
  .experiencia-numero {
    font-size: 1.3rem;
  }
  .experiencia-texto {
    font-size: 1rem;
  }

  /* CONTACTO */
  .contacto-wrapper.container {
    gap: 12px;
    padding: 0 4px;
  }
 @media (max-width: 800px) {
  .contacto-mapa {
    height: 180px;
    min-height: 120px;
    position: relative;
  }
  .formulario-contacto {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 16px 0 0 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 10px 2px;
    z-index: auto !important;
    clear: both;
    display: block;
  }
  .contacto-inferior {
    flex-direction: column;
    gap: 10px;
    margin-right: 0;
    margin-top: 10px;
    align-items: stretch;
    width: 100%;
    display: flex;
    clear: both;
  }
  .info-contacto {
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    width: 100%;
    display: flex;
  }
  .redes-sociales {
    align-items: flex-start;
    margin-top: 8px;
    width: 100%;
    display: flex;
  }
  .redes-sociales .iconos {
    gap: 10px;
  }
  .redes-sociales .iconos img {
    width: 28px;
    height: 28px;
  }
}

  /* FOOTER */
  .footer-amplio {
    min-height: 30vh;
    padding: 20px 5px;
  }
  .footer-contenido {
    max-width: 100%;
  }
  .footer-amplio h2 {
    font-size: 1.2rem;
    line-height: 1.3;
  }
  .footer-brand {
    font-size: 1rem;
    margin-top: 1.5rem;
  }
}

/* Responsive para móviles pequeños (iPhone, etc) */
@media (max-width: 500px) {
  .hero-title {
    font-size: 1rem;
  }
  .companias-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .oferta-tabla .fila {
    padding: 0.5rem 0.2rem;
  }
  .contacto-mapa {
    height: 110px;
  }
  .formulario-contacto {
    padding: 6px 1px;
  }
  .footer-amplio h2 {
    font-size: 1rem;
  }
  .footer-brand {
    font-size: 0.9rem;
    margin-top: 1rem;
  }
}

/* Animación para sección de contacto que emerge desde abajo */
@keyframes emerge-up {
  0% {
    transform: translateY(80px);
    opacity: 0;
    filter: blur(6px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

.emerge-section {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.emerge-section.visible {
  animation: emerge-up 1s ease forwards;
}

/* Ocultar spans por defecto */
.footer-h2-animado span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0);
}

/* Solo animar cuando se activa la clase .animar */
.footer-h2-animado.animar span {
  animation: lift-word 0.6s ease forwards;
}

/* Delays controlados con data-index */
.footer-h2-animado.animar span[data-index="1"] { animation-delay: 0.3s; }
.footer-h2-animado.animar span[data-index="2"] { animation-delay: 0.9s; }
.footer-h2-animado.animar span[data-index="3"] { animation-delay: 1.5s; }
.footer-h2-animado.animar span[data-index="4"] { animation-delay: 2.1s; }
.footer-h2-animado.animar span[data-index="5"] { animation-delay: 2.7s; }
.footer-h2-animado.animar span[data-index="6"] { animation-delay: 3.3s; }
.footer-h2-animado.animar span[data-index="7"] { animation-delay: 3.9s; }

/* Movimiento de cada palabra (sube y baja) */
@keyframes lift-word {
  0%   { transform: translateY(0); opacity: 0; }
  50%  { transform: translateY(-18px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Estado inicial del footer-brand */
.footer-brand-animado {
  opacity: 0;
  transform: translateY(-120vh);
}

/* Animación solo al agregar clase .animar */
.footer-brand-animado.animar {
  animation: fall-bounce 2.2s ease-out forwards;
  animation-delay: 4.7s; /* justo después del último span */
}

/* Rebote tipo balón */
@keyframes fall-bounce {
  0%   { transform: translateY(-120vh); opacity: 0; }
  60%  { transform: translateY(20px); opacity: 1; }
  75%  { transform: translateY(-10px); }
  88%  { transform: translateY(5px); }
  94%  { transform: translateY(-2px); }
  100% { transform: translateY(0); opacity: 1; }
}

.campo-invalido {
  border: 2px solid red !important;
  background-color: #ffe6e6;
}

.iti {
  width: 100%;
}

.iti input {
  width: 100%;
}

/* ====== CIRCULO DE SCROLL ====== */
.scroll-circle {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 9999;  
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-circle.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-circle svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.scroll-circle .progress-group {
  transform: rotate(-90deg);
  transform-origin: center;
}

.circle-bg,
.circle-fill {
  fill: none;
  stroke-width: 10;
}

.circle-fill {
  stroke-dasharray: 283;
  
  transition: stroke-dashoffset 0.1s linear;  
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35px;
  height: 35px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* === Botón WhatsApp – Usa mismo estilo de scroll-circle pero siempre visible === */
.whatsapp-circle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #F2CA50; /* si necesitas fondo blanco */
  border-radius: 50%;  
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998; /* Debajo del scroll-to-top (9999) */
  opacity: 1 !important;
  visibility: visible !important;
}

.whatsapp-circle img {
  width: 35px;
  height: 35px;
}





