/* main.css - Estilos específicos de secciones y estructura de la landing page */

/* ==========================================================================
   Pantalla de Entrada Cinematográfica (Intro Screen)
   ========================================================================== */

.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--red-deep);
  z-index: var(--z-intro);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.intro-screen.fade-out {
  opacity: 0;
  transform: translateY(-40px);
  pointer-events: none;
}

.intro-screen__logo-wrapper {
  text-align: center;
  max-width: 260px;
}

.intro-screen__logo {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  animation: introLogoIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: var(--shadow-xl);
}

.intro-screen__text {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.8s 0.8s forwards;
}


/* ==========================================================================
   Barra de Navegación (Navbar)
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-4) 0;
  transition: all var(--transition-base);
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(196, 30, 42, 0.05);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
}

.navbar__logo img {
  height: 50px;
  width: auto;
  border-radius: var(--radius-sm);
  transition: height var(--transition-base);
}

.navbar.scrolled .navbar__logo img {
  height: 42px;
}

.navbar__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--white);
  box-shadow: var(--shadow-xl);
  flex-direction: column;
  align-items: flex-start;
  padding: 100px var(--space-5) var(--space-5);
  gap: var(--space-4);
  transition: right var(--transition-spring);
  z-index: calc(var(--z-sticky) - 1);
  display: flex;
}

.navbar__menu.open {
  right: 0;
}

.navbar__link {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--transition-base);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--gray-100);
  width: 100%;
  display: block;
}

.navbar.scrolled .navbar__link {
  color: var(--gray-900);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  width: 100%;
  justify-content: space-between;
}

/* Cambiador de idioma (Language Toggle) */
.lang-toggle {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all var(--transition-base);
}

.navbar.scrolled .lang-toggle {
  background-color: var(--gray-100);
  border-color: var(--gray-200);
}

.lang-toggle__btn {
  padding: 6px 12px;
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--white);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.navbar.scrolled .lang-toggle__btn {
  color: var(--gray-600);
}

.lang-toggle__btn.active {
  background-color: var(--red-primary);
  color: var(--white) !important;
}

/* Menú Móvil Hamburger */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: var(--z-sticky);
}

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.navbar.scrolled .navbar__hamburger span {
  background-color: var(--gray-900);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.navbar__hamburger.open span {
  background-color: var(--gray-900) !important;
}

/* Media Query para Escritorio (Desktop Style) - Mobile First */
@media (min-width: 992px) {
  .navbar__hamburger {
    display: none;
  }

  .navbar__menu {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: var(--space-6);
    z-index: auto;
  }

  .navbar__link {
    color: var(--white);
    font-size: var(--text-sm);
    padding: var(--space-1) 0;
    border-bottom: none;
    width: auto;
    display: inline-block;
  }

  .navbar.scrolled .navbar__link {
    color: var(--gray-900);
  }

  .navbar__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--red-primary);
    transition: width var(--transition-base);
  }

  .navbar__link:hover::after,
  .navbar__link.active::after {
    width: 100%;
  }

  .navbar__link:hover {
    color: var(--white);
  }

  .navbar.scrolled .navbar__link:hover,
  .navbar.scrolled .navbar__link.active {
    color: var(--red-primary);
  }

  .navbar__actions {
    margin-top: 0;
    width: auto;
    justify-content: flex-start;
  }
}


/* ==========================================================================
   Sección Hero (Hero)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  padding: 120px 0 80px;
  overflow: hidden;
  /* Gradiente con mayor contraste para legibilidad premium */
  background-image: linear-gradient(135deg, rgba(15, 5, 6, 0.95) 0%, rgba(107, 15, 24, 0.8) 60%, rgba(15, 5, 6, 0.9) 100%), 
                    url('../imagenes/WhatsApp Image 2026-06-01 at 4.28.45 PM (15).jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to top, var(--white) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
  color: var(--white); /* Forzar color blanco para sobrescribir reset.css */
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.6); /* Mejor legibilidad */
}

@media (min-width: 768px) {
  .hero__title {
    font-size: var(--text-6xl);
  }
}

.hero__subtitle {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--white); /* Forzar color blanco para sobrescribir reset.css */
  opacity: 0.95;
  margin-bottom: var(--space-6);
  max-width: 600px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Mejor legibilidad */
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: var(--text-lg);
  }
}

.hero__actions {
  display: flex;
  flex-direction: column; /* Apilado en mobile */
  gap: var(--space-3);
  width: 100%;
}

@media (min-width: 576px) {
  .hero__actions {
    flex-direction: row; /* En fila para pantallas más grandes */
    width: auto;
    gap: var(--space-4);
  }
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  color: var(--white);
  opacity: 0.8;
  z-index: 2;
  cursor: pointer;
}

.hero__scroll-indicator span {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero__scroll-indicator i {
  font-size: var(--text-lg);
  animation: scrollIndicator 2s infinite;
}


/* ==========================================================================
   Franja de Estadísticas (Stats)
   ========================================================================== */

.stats {
  background: var(--red-gradient);
  padding: var(--space-6) 0;
  position: relative;
  overflow: hidden;
  margin-top: -1px; /* Evita huecos visuales */
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.4;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats__item {
  text-align: center;
  color: var(--white);
  padding: var(--space-2);
}

.stats__icon {
  font-size: var(--text-3xl);
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.stats__number {
  font-family: var(--font-accent);
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-1);
}

@media (min-width: 768px) {
  .stats__number {
    font-size: var(--text-5xl);
  }
}

.stats__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}


/* ==========================================================================
   Servicios (Services)
   ========================================================================== */

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 576px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ==========================================================================
   Sobre Nosotros (About)
   ========================================================================== */

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 992px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about__image-wrapper {
  position: relative;
  z-index: 1;
}

.about__image-wrapper::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--red-primary);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about__image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .about__image {
    height: 460px;
  }
}

.about__badge {
  margin-bottom: var(--space-3);
}

.about__text {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.about__values {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 576px) {
  .about__values {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about__value {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-900);
}

.about__value-icon {
  width: 32px;
  height: 32px;
  background-color: rgba(196, 30, 42, 0.08);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
  font-size: var(--text-sm);
  flex-shrink: 0;
}


/* ==========================================================================
   Galería Bento (Gallery)
   ========================================================================== */

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
  }
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  height: 180px;
}

@media (min-width: 768px) {
  .gallery__item {
    height: auto;
  }
  
  .gallery__item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .gallery__item:nth-child(4) {
    grid-column: span 2;
  }
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(107, 15, 24, 0.7) 0%, transparent 80%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__item-overlay {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  z-index: 2;
  color: var(--white);
  opacity: 0;
  transform: translateY(12px);
  transition: all var(--transition-base);
}

.gallery__item:hover .gallery__item-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery__item-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--white); /* Forzar color blanco para sobrescribir reset.css */
}

@media (min-width: 768px) {
  .gallery__item:nth-child(1) .gallery__item-title {
    font-size: var(--text-lg);
  }
}

.gallery__item-tag {
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
}


/* ==========================================================================
   Propiedades (Properties Slider)
   ========================================================================== */

.properties__carousel-wrapper {
  position: relative;
  margin-bottom: var(--space-6);
}

.properties__carousel {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 5px var(--space-4);
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}

.properties__carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.properties__card {
  flex: 0 0 290px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .properties__card {
    flex: 0 0 350px;
  }
}

.properties__cta {
  text-align: center;
  padding: var(--space-5);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gray-200);
  max-width: 680px;
  margin: var(--space-6) auto 0;
}

.properties__cta-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .properties__cta-title {
    font-size: var(--text-xl);
  }
}

.properties__cta-text {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: var(--space-4);
}


/* ==========================================================================
   Testimonios (Testimonials)
   ========================================================================== */

.testimonials {
  background: var(--red-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 250px;
  height: 250px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.testimonials__carousel {
  position: relative;
  max-width: 740px;
  margin: 0 auto;
}

.testimonials__slide {
  display: none;
  text-align: center;
  padding: 0 var(--space-4);
  animation: fadeIn var(--transition-base);
}

.testimonials__slide.active {
  display: block;
}

.testimonials__avatar-wrapper {
  margin-bottom: var(--space-4);
}

.testimonials__avatar {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  margin: 0 auto;
  border: 3px solid var(--gold);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.testimonials__quote {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-style: italic;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .testimonials__quote {
    font-size: var(--text-xl);
  }
}

.testimonials__quote::before {
  content: '“';
  font-size: 80px;
  color: var(--gold);
  opacity: 0.15;
  position: absolute;
  top: -36px;
  left: -10px;
  font-family: serif;
  z-index: -1;
}

.testimonials__author {
  font-family: var(--font-accent);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--white);
}

.testimonials__role {
  font-size: var(--text-xs);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.testimonials__dot.active {
  background-color: var(--gold);
  transform: scale(1.25);
}


/* ==========================================================================
   Contacto y Ubicación (Contact)
   ========================================================================== */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 992px) {
  .contact__grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.contact__form-wrapper {
  background-color: var(--white);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

@media (min-width: 768px) {
  .contact__form-wrapper {
    padding: var(--space-6);
  }
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact__info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: rgba(196, 30, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-primary);
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.contact__info-title {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact__info-text {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-normal);
}

.contact__info-text a:hover {
  color: var(--red-primary);
  text-decoration: underline;
}

.contact__socials {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.contact__social {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--gray-100);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  transition: all var(--transition-base);
}

.contact__social:hover {
  background-color: var(--red-primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 250px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


/* ==========================================================================
   Pie de Página (Footer)
   ========================================================================== */

.footer {
  background-color: #150A0B; /* Tono rojizo casi negro */
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-8) 0 var(--space-5);
  font-size: var(--text-sm);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__logo {
  margin-bottom: var(--space-3);
}

.footer__logo img {
  height: 46px;
  border-radius: var(--radius-sm);
}

.footer__desc {
  line-height: var(--leading-relaxed);
  max-width: 380px;
}

.footer__title {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-4);
  position: relative;
  padding-bottom: var(--space-2);
}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--red-primary);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.footer__link:hover {
  color: var(--red-light);
  transform: translateX(4px);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer__copyright {
  font-size: var(--text-xs);
}

.footer__back-to-top {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--red-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  border: none;
}

.footer__back-to-top:hover {
  background-color: var(--red-light);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(196, 30, 42, 0.3);
}


/* ==========================================================================
   Botón Flotante de WhatsApp
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background-color: #25D366;
  border-radius: var(--radius-full);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: var(--z-toast);
  cursor: pointer;
  transition: all var(--transition-spring);
  opacity: 0;
  transform: scale(0);
}

.whatsapp-float.visible {
  opacity: 1;
  transform: scale(1);
  animation: whatsappBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  background-color: rgba(37, 211, 102, 0.3);
  z-index: -1;
  animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background-color: #20ba59;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float__tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--white);
  color: var(--gray-900);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  border: 1px solid var(--gray-100);
}

.whatsapp-float__tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--white);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
}

/* Modificador mobile-first para pantallas medianas/grandes */
@media (min-width: 768px) {
  .whatsapp-float {
    bottom: var(--space-5);
    right: var(--space-5);
    width: 56px;
    height: 56px;
    font-size: 28px;
  }
}
