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

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

:root {
  --color-white: #FFFFFF;
  --color-black: #0D0D0D;
  --color-gray-light: #F4F4F4;
  --color-gray-mid: #E0E0E0;
  --color-gray-text: #555555;
  --color-accent: #3365fa;
  --color-accent-light: #e8edff;
  --color-accent-dark: #1a4cd8;

  --font-main: 'Inter', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 3rem;
  --text-4xl: 4rem;

  --max-width: 1200px;
  --section-padding: 80px 0;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 48px;
  --gap-xl: 80px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap-md);
}

/* ========================
   TYPOGRAPHY
   ======================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.1;
}

.accent {
  font-style: italic;
  color: var(--color-accent);
}

.typed-cursor {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 100;
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--gap-md);
}

h3 {
  font-size: var(--text-xl);
}

p {
  color: var(--color-gray-text);
  line-height: 1.7;
}

/* ========================
   BUTTONS
   ======================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-black);
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  position: relative;
}

.btn-play svg {
  flex-shrink: 0;
}

.btn-play:hover {
  background: var(--color-accent-dark);
}

/* ========================
   BADGE
   ======================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--color-black);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--gap-md);
}

.badge svg {
  width: 16px;
  height: 16px;
}

/* ========================
   HEADER
   ======================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-mid);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header-logo img {
  height: 60px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
}

.header-nav ul {
  display: flex;
  gap: var(--gap-md);
}
.header-nav ul a {

 color: var(--color-gray-text);
}
.header-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
color: var(--color-white); 
  transition: color 0.3s ease;
}

.header-nav a:hover {
  color: var(--color-black);
}

.header-cta {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background 0.3s ease;
}

.header-cta:hover {
  background: var(--color-accent-dark);
}

.header-lang {
  position: relative;
}

.header-lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--color-gray-mid);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-black);
  transition: border-color 0.3s ease;
}

.header-lang-btn:hover {
  border-color: var(--color-black);
}

.header-lang-btn svg {
  width: 16px;
  height: 16px;
}

ul.header-lang-list {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-white);
  border: 1px solid var(--color-gray-mid);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-width: 100%;
  z-index: 10;
  flex-direction: column;
  gap: 0;
}

@media (hover: hover) {
  .header-lang:hover .header-lang-list {
    display: block;
  }
}

.header-lang.open .header-lang-list {
  display: block;
}

.header-lang-item {
  display: block;
  padding: 10px 16px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-text);
  transition: background 0.2s ease, color 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.header-lang-item:hover {
  background: var(--color-gray-light);
  color: var(--color-black);
}

.header-lang-item.active {
  color: var(--color-accent);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  transition: all 0.3s ease;
}

/* ========================
   HERO
   ======================== */

.hero {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--section-padding);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, var(--text-4xl));
  margin-bottom: var(--gap-md);
}

.hero-content h2 {
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-gray-mid);
  margin-bottom: var(--gap-md);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--gap-lg);
  font-size: var(--text-lg);
}

.hero-buttons {
  display: flex;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

.hero-slider {
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
}

.hero-slider .swiper-wrapper {
  width: 100%;
}

.hero-slider .swiper-slide {
  width: 100%;
  height: 0;
  padding-bottom: 125%;
  overflow: hidden;
}

.hero-slider .swiper-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider .swiper-pagination-bullet {
  background: var(--color-white);
  opacity: 0.5;
}

.hero-slider .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--color-accent);
}

/* ========================
   MARQUEE
   ======================== */

.marquee-section {
  padding: var(--gap-lg) 0;
  border-bottom: 1px solid var(--color-gray-mid);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.marquee-label {
  text-align: center;
  padding: 0 var(--gap-md);
}

.marquee-label span {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gray-text);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-track-left {
  animation: marquee-left 30s linear infinite;
}

.marquee-track-right {
  animation: marquee-right 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  flex-shrink: 0;
  padding: 0 var(--gap-lg);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gray-text);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  white-space: nowrap;
  user-select: none;
}

.marquee-item svg {
  width: 32px;
  height: 32px;
}

.marquee-logo-frame {
  width: 120px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marquee-logo {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ========================
   ABOUT (QUIÉNES SOMOS)
   ======================== */

.about {
  padding: var(--section-padding);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.about-slider {
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
}

.about-slider .swiper-wrapper {
  width: 100%;
}

.about-slider .swiper-slide {
  width: 100%;
  height: 0;
  padding-bottom: 125%;
  overflow: hidden;
}

.about-slider .swiper-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-slider .swiper-pagination-bullet {
  background: var(--color-white);
  opacity: 0.5;
}

.about-slider .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--color-accent);
}

.about-content p {
  margin-bottom: var(--gap-lg);
}

.about-features {
  display: flex;
  gap: var(--gap-lg);
}

.about-feature {
  text-align: center;
}

.about-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.about-feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.about-feature p {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-black);
}

/* ========================
   PRODUCTS
   ======================== */

.products {
  padding: var(--section-padding);
  background: var(--color-gray-light);
}

.products-header {
  text-align: center;
  margin-bottom: var(--gap-xl);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.product-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--gap-md);
  color: var(--color-black);
}

.product-card-icon svg {
  width: 48px;
  height: 48px;
}

.product-card h3 {
  margin-bottom: 8px;
}

.product-card p {
  font-size: var(--text-sm);
}

/* ========================
   CONTACT
   ======================== */

.contact {
  padding: var(--section-padding);
}

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}

.contact-info h2 {
  margin-bottom: var(--gap-md);
}

.contact-info > p {
  margin-bottom: var(--gap-lg);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  margin-bottom: var(--gap-lg);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-detail p {
  font-weight: 500;
  color: var(--color-black);
}

.contact-detail a {
  color: var(--color-black);
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-detail a:hover {
  color: var(--color-accent);
}

.contact-buttons {
  display: flex;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-gray-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-map svg {
  width: 64px;
  height: 64px;
  opacity: 0.3;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========================
   FOOTER
   ======================== */

.footer {
  background: var(--color-accent-dark);
  color: var(--color-white);
  padding: var(--gap-xl) 0 var(--gap-lg);
  position: relative;
  overflow: hidden;
}

.footer-name {
  font-size: clamp(2rem, 8vw, 10rem);
  font-weight: 900;
  opacity: 0.15;
  text-align: center;
  line-height: 1;
  margin-bottom: var(--gap-lg);
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: var(--gap-lg);
  flex-wrap: wrap;
  gap: var(--gap-md);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand h3 {
  margin-bottom: 8px;
  font-size: var(--text-lg);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
}

.footer-nav {
  display: flex;
  gap: var(--gap-xl);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--gap-md);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-white);
}

/* ========================
   MODAL
   ======================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: var(--gap-md);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  max-width: 420px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-md);
}

.modal-text {
  font-size: var(--text-lg);
  color: var(--color-black);
}

.modal-text strong {
  color: var(--color-accent);
}

.footer-bottom p{
  color: var(--color-white);
}

/* ========================
   RESPONSIVE — Tablet
   ======================== */

@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }

  .hero-slider {
    max-width: 500px;
  }

  .hero-slider .swiper-slide {
    padding-bottom: 100%;
  }

  .about-slider {
    max-width: 500px;
  }

  .about-slider .swiper-slide {
    padding-bottom: 100%;
  }

  .about .container {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }

  .about-slider {
    max-width: 500px;
  }

  .about-slider .swiper-slide {
    padding-bottom: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact .container {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }

  .contact-map {
    max-width: 500px;
  }
}

/* ========================
   RESPONSIVE — Mobile
   ======================== */

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  h1 {
    font-size: var(--text-2xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  .header .container {
    height: 64px;
  }

  .header-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--gap-lg) var(--gap-md);
    border-bottom: 1px solid var(--color-gray-mid);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
  }

  .header-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .header-nav ul {
    flex-direction: column;
    gap: var(--gap-md);
  }

  .header-nav a {
    font-size: var(--text-lg);
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn,
  .hero-buttons .btn-play {
    justify-content: center;
    width: 100%;
  }

  .about-features {
    flex-direction: row;
    justify-content: space-around;
    gap: var(--gap-md);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .contact-buttons .btn {
    justify-content: center;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-nav {
    flex-direction: column;
    gap: var(--gap-md);
  }
}
