@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700;800&display=swap');

:root {
  --azul-marino: #17395F;
  --azul-medic: #3F5F96;
  --blanco: #FFFFFF;
  --gris-claro: #F4F6F8;
  --gris: #D9DCE1;
  --verde-acento: #2FA36B;
  --texto-oscuro: #1A1A1A;
  --texto-claro: #4A5568;
  --borde-radius: 16px;
  --sombra-suave: 0 4px 20px rgba(23, 57, 95, 0.08);
  --sombra-hover: 0 8px 30px rgba(23, 57, 95, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--texto-oscuro);
  background-color: var(--blanco);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--azul-marino);
}

a {
  text-decoration: none;
  color: var(--azul-marino);
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--borde-radius);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Bar */
.top-bar {
  background-color: var(--azul-medic);
  color: var(--blanco);
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-socials {
  display: flex;
  gap: 16px;
}
.top-bar-socials a {
  color: var(--blanco);
  font-weight: 500;
}
.top-bar-socials a:hover {
  opacity: 0.8;
}

/* Header */
header {
  background-color: var(--blanco);
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

header.header-scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.logo img {
  height: 65px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--azul-marino);
  border-radius: 3px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

nav a {
  font-weight: 500;
  color: var(--azul-marino);
  position: relative;
  padding-bottom: 5px;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--verde-acento);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--verde-acento);
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--azul-medic);
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--borde-radius);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--azul-marino);
  color: var(--blanco);
}

.btn-primary:hover {
  background-color: var(--azul-medic);
  color: var(--blanco);
  transform: translateY(-2px);
  box-shadow: var(--sombra-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--azul-marino);
  border: 2px solid var(--azul-marino);
}

.btn-outline:hover {
  background-color: var(--azul-marino);
  color: var(--blanco);
}

.btn-whatsapp {
  background-color: var(--verde-acento);
  color: var(--blanco);
}

.btn-whatsapp:hover {
  background-color: #268959;
  color: var(--blanco);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(47, 163, 107, 0.2);
}

/* Sections Generales */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--texto-claro);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.hero {
  background-color: var(--gris-claro);
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  text-align: left;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--texto-claro);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}

.hero-image img {
  width: 100%;
  border-radius: var(--borde-radius);
  box-shadow: var(--sombra-suave);
}

/* Cards (Grid) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  background: var(--blanco);
  border-radius: var(--borde-radius);
  padding: 32px;
  box-shadow: var(--sombra-suave);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--gris);
}

.card-icon .icon-wrap {
  font-size: 3rem;
  margin-bottom: 16px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-hover);
  border-color: var(--azul-medic);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card p {
  color: var(--texto-claro);
  margin-bottom: 24px;
}

.price {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--azul-marino);
  margin-bottom: 24px;
  display: block;
}

/* Nuevos Ingresos */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.gallery-item {
  border-radius: var(--borde-radius);
  overflow: hidden;
  box-shadow: var(--sombra-suave);
  aspect-ratio: 4/5;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Slider (Confianza) */
.slider-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding: 10px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.slider-container.active {
  cursor: grabbing;
  scroll-behavior: auto; /* Remove smooth scroll during drag */
  scroll-snap-type: none; /* Disable snapping while dragging */
}
.slider-container::-webkit-scrollbar {
  display: none;
}
.slider-item {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  height: 200px;
  flex-shrink: 0;
  scroll-snap-align: center;
  aspect-ratio: 1/1;
  border-radius: var(--borde-radius);
  overflow: hidden;
  box-shadow: var(--sombra-suave);
}
.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.slider-item:hover img {
  transform: scale(1.05);
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid var(--gris);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--azul-marino);
  transition: all 0.2s;
}
.slider-btn:hover {
  background: var(--gris-claro);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
.prev-btn { left: -25px; }
.next-btn { right: -25px; }

/* Grid Content Icons */
.grid-content-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.content-item {
  background: var(--gris-claro);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 500;
  color: var(--azul-marino);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Footer */
footer {
  background-color: var(--azul-marino);
  color: var(--blanco);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--blanco);
  margin-bottom: 24px;
  font-size: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--gris);
}

.footer-col a:hover.social-link-ig { color: #E1306C; }
.footer-col a:hover.social-link-fb { color: #1877F2; }
.footer-col a:hover.social-link-tk { color: #ffffff; }

.footer-col a:hover:not(.social-link-ig):not(.social-link-fb):not(.social-link-tk) {
  color: var(--blanco);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--gris);
  font-size: 0.9rem;
}

/* Float WhatsApp */
.float-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: transparent;
  color: var(--blanco);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--sombra-hover);
  z-index: 1000;
  transition: all 0.3s ease;
}

.float-wa:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--blanco);
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    padding: 20px;
  }
  nav.active {
    display: block;
  }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    text-align: center;
    order: 2;
  }
  .hero-image {
    order: 1;
    margin-bottom: 20px;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
}

.nav-social-icons a {
  transition: all 0.3s ease;
}
.nav-social-icons a.social-link-ig:hover { color: #E1306C !important; }
.nav-social-icons a.social-link-fb:hover { color: #1877F2 !important; }
.nav-social-icons a.social-link-tk:hover { color: #000000 !important; }

/* FAQ Styles */
.faq-item {
  border-bottom: 1px solid var(--gris);
  margin-bottom: 15px;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 15px 0;
  font-size: 1.1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--azul-marino);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-icon {
  font-size: 1.5rem;
  color: var(--verde-acento);
  transition: transform 0.3s;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-item.active .faq-answer {
  max-height: 200px;
}
.faq-answer p {
  padding-bottom: 15px;
  color: var(--texto-claro);
  line-height: 1.6;
}

/* Scroll Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background-color: var(--azul-marino);
  color: var(--blanco);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--sombra-suave);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top-btn:hover {
  background-color: var(--azul-medic);
  transform: translateY(-3px);
}
.scroll-top-btn svg {
  width: 24px;
  height: 24px;
}

/* Testimonios */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}
.testimonio-card {
  background-color: var(--blanco);
  padding: 30px;
  border-radius: var(--borde-radius);
  box-shadow: var(--sombra-suave);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-hover);
}
.estrellas {
  color: #FACC15; /* Dorado */
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 15px;
}
.testimonio-texto {
  font-size: 1rem;
  color: var(--texto-claro);
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.6;
}
.testimonio-autor {
  font-weight: 700;
  color: var(--azul-marino);
  font-size: 1.1rem;
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--verde-acento);
  color: var(--blanco);
  text-align: center;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: 500;
}
.announcement-bar p {
  margin: 0;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Exit Intent Popup */
.popup-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(23, 57, 95, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}
.popup-content {
  background: var(--blanco);
  padding: 40px;
  border-radius: var(--borde-radius);
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.8);
  transition: all 0.3s ease;
}
.popup-overlay.show .popup-content {
  transform: scale(1);
}
.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--texto-claro);
}
.popup-close:hover {
  color: var(--azul-marino);
}

/* Calculadora */
.calc-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  background: var(--blanco);
  border-radius: var(--borde-radius);
  box-shadow: var(--sombra-suave);
  padding: 40px;
  border: 1px solid rgba(0,0,0,0.05);
}
.calc-text {
  flex: 1 1 400px;
}
.calc-results {
  flex: 1 1 300px;
  background: linear-gradient(135deg, var(--azul-marino) 0%, #0d233a 100%);
  color: var(--blanco);
  padding: 40px;
  border-radius: var(--borde-radius);
  box-shadow: 0 10px 30px rgba(23, 57, 95, 0.4);
}
.calc-results .calc-row span {
  opacity: 0.9;
}
.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: var(--gris);
  border-radius: 4px;
  outline: none;
  margin-top: 20px;
  margin-bottom: 10px;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--azul-medic);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.1s;
}
.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.calc-divider {
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 20px 0;
}
.calc-total {
  font-size: 1.3rem;
  font-weight: 700;
  display: block;
}
.calc-total span {
  display: block;
  margin-bottom: 10px;
}
.calc-total strong {
  font-size: 3rem;
  line-height: 1;
  color: #4ade80 !important; /* Brighter green for dark bg */
  text-shadow: 0 2px 10px rgba(74, 222, 128, 0.3);
  display: block;
}
.badge-promo {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: #FF3B30;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(255, 59, 48, 0.4);
  transform: rotate(5deg);
  z-index: 10;
  letter-spacing: 1px;
}
.slider-promo-label {
  color: #FF3B30;
  font-weight: 800;
  font-size: 0.75rem;
  display: block;
  margin-top: 3px;
}

/* Scarcity Bar */
.scarcity-container {
  margin: 10px 0 15px 0;
  text-align: left;
}
.scarcity-bar {
  width: 100%;
  height: 6px;
  background-color: #ffe4e6;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 5px;
}
.scarcity-fill {
  width: 85%;
  height: 100%;
  background-color: #e11d48;
  border-radius: 3px;
}
.scarcity-text {
  font-size: 0.8rem;
  color: #e11d48;
  font-weight: 700;
  display: block;
}

/* FOMO Notifications */
#fomo-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.fomo-toast {
  background: white;
  border-left: 3px solid var(--verde-acento);
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 260px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.fomo-toast.show {
  opacity: 1;
  transform: translateX(0);
}
.fomo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fomo-text {
  font-size: 0.75rem;
  color: var(--texto-oscuro);
  line-height: 1.2;
}
.fomo-time {
  font-size: 0.65rem;
  color: var(--texto-claro);
  margin-top: 2px;
  display: block;
}

/* Brands Marquee */
.brands-section {
  background-color: var(--blanco);
  padding: 40px 0;
  border-top: 1px solid var(--gris);
  border-bottom: 1px solid var(--gris);
  overflow: hidden;
}
.brands-title {
  text-align: center;
  font-size: 1.1rem;
  color: var(--texto-claro);
  margin-bottom: 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.marquee-container {
  display: flex;
  width: max-content;
  animation: scroll-marquee 40s linear infinite;
}
.marquee-content {
  display: flex;
  align-items: center;
  padding: 0 40px;
}
.brand-logo-img {
  height: 40px;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.4;
  filter: grayscale(100%) contrast(120%);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
  margin: 0 40px;
}
.brand-logo-img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.more-brands {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    margin: 0 40px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--azul-marino);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    white-space: nowrap;
}
@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Envíos Seguros Section */
.envios-section {
    background: #f8fafc;
    padding: 30px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.envios-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.envios-text {
    flex: 1 1 300px;
}
.envios-title {
    color: var(--azul-marino);
    font-size: 1.4rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.envios-title i {
    color: var(--verde-acento);
}
.envios-subtitle {
    color: var(--gris);
    font-size: 0.95rem;
    margin: 0;
}
.envios-logos {
    flex: 1 1 400px;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}
.carrier-placeholder {
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-weight: 700;
    color: var(--azul-marino);
    font-size: 1.1rem;
    border: 1px solid #e2e8f0;
    opacity: 0.8;
}
.carrier-logo {
    height: 35px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.carrier-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* --- 3D Tilt Effect --- */
.tilt-card {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.tilt-card:hover {
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
.tilt-glare-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--borde-radius);
    pointer-events: none;
}
.tilt-glare {
    position: absolute;
    top: 50%;
    left: 50%;
    background-image: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 100%);
    transform-origin: center center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease-out;
}

/* ==========================================
   MAPA DE ENVÍOS (COBERTURA NACIONAL) - WATERMARK
   ========================================== */
.map-watermark-container {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 350px;
    height: auto;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}
@media (max-width: 768px) {
    .map-watermark-container {
        right: 50%;
        transform: translate(50%, -50%);
        width: 300px;
        opacity: 0.08; /* Make it even more subtle on mobile behind text */
    }
}
.map-svg-watermark {
    width: 100%;
    height: auto;
    fill: var(--azul-marino);
}
.pulse-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--verde-acento);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    box-shadow: 0 0 10px var(--verde-acento), 0 0 20px var(--verde-acento);
    z-index: 10;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    background-color: var(--verde-acento);
    border-radius: 50%;
    opacity: 0.5;
    animation: radarPulse 2s infinite ease-out;
}
@keyframes radarPulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}
.pulse-active {
    animation: fadePulse 3s ease-in-out;
}
@keyframes fadePulse {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    30% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

/* ==========================================
   LÍNEA DE TIEMPO (CÓMO FUNCIONA)
   ========================================== */
.como-funciona-section {
    background-color: var(--blanco);
    padding: 50px 0;
}
.timeline-container {
    position: relative;
    max-width: 500px;
    margin: 30px auto 0;
    padding-left: 40px;
}
.timeline-line {
    position: absolute;
    left: 14px;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--gris-claro);
}
.timeline-progress {
    position: absolute;
    left: 14px;
    left: 10px;
    top: 0;
    width: 2px;
    height: 0%;
    background-color: var(--verde-acento);
    z-index: 2;
    transition: height 0.5s ease;
    box-shadow: 0 0 8px var(--verde-acento);
}
.timeline-step {
    position: relative;
    margin-bottom: 20px;
    opacity: 0.3;
    transform: translateX(15px);
    transition: all 0.4s ease;
}
.timeline-step.active {
    opacity: 1;
    transform: translateX(0);
}
.timeline-dot {
    position: absolute;
    left: -29px;
    top: 5px;
    width: 22px;
    height: 22px;
    background-color: var(--blanco);
    border: 2px solid var(--gris-claro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--texto-claro);
    font-size: 0.8rem;
    z-index: 3;
    transition: all 0.4s ease;
}
.timeline-step.active .timeline-dot {
    border-color: var(--verde-acento);
    color: var(--azul-marino);
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.4);
}
.timeline-content {
    background: var(--gris-claro);
    padding: 10px 15px;
    border-radius: var(--borde-radius);
    border: 1px solid transparent;
    transition: all 0.4s ease;
}
.timeline-step.active .timeline-content {
    border-color: var(--verde-acento);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.timeline-content h3 {
    color: var(--azul-marino);
    margin-bottom: 4px;
    font-size: 1rem;
}
.timeline-content p {
    color: var(--texto-oscuro);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* ==========================================
   CART STYLES
========================================== */
.cart-nav-btn {
  background: none;
  border: none;
  color: var(--azul-marino);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  padding: 5px;
  transition: transform 0.2s;
}
.cart-nav-btn:hover {
  transform: scale(1.1);
}
.cart-icon {
  font-size: 1.5rem;
}
.cart-nav-btn .cart-count {
  position: absolute;
  top: -5px;
  right: -10px;
  background-color: var(--verde-acento);
  color: var(--blanco);
  font-size: 0.75rem;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.cart-overlay.show {
  opacity: 1;
  visibility: visible;
}
.cart-sidebar {
  position: absolute;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--blanco);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}
.cart-overlay.show .cart-sidebar {
  right: 0;
}
.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--gris);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--texto-claro);
  transition: color 0.2s;
}
.cart-close:hover {
  color: red;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.cart-empty-msg {
  text-align: center;
  color: var(--texto-claro);
  margin-top: 50px;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px dashed var(--gris);
}
.cart-item-title {
  font-weight: 600;
  color: var(--azul-marino);
  margin-bottom: 5px;
}
.cart-item-price {
  color: var(--texto-claro);
  font-size: 0.9rem;
}
.cart-item-remove {
  background: none;
  border: none;
  color: red;
  cursor: pointer;
  font-size: 1.2rem;
}
.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--gris);
  background: var(--gris-claro);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
}
.cart-total-row strong {
  color: var(--azul-marino);
  font-size: 1.5rem;
}

/* ==========================================
   TOP BAR STYLES
========================================== */
.top-bar {
  background-color: var(--verde-acento);
  color: var(--azul-marino);
  padding: 8px 0;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1001;
}

.top-bar-content {
  display: inline-block;
  animation: scrollText 22s linear infinite;
  padding-left: 100%; /* Inicia desde fuera de la pantalla a la derecha */
}

@keyframes scrollText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}