/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

/* ===== VARIABLES ===== */
:root {
  --primary: #3394d1;
  --primary-dark: #1e78b9;
  --primary-light: #60afdd;
  --bg-black: #000;
  --bg-dark: #0a0a0a;
  --text-white: #fff;
  --text-muted: rgba(255,255,255,0.7);
  --text-dim: rgba(255,255,255,0.5);
  --border-light: rgba(255,255,255,0.1);
  --border-medium: rgba(255,255,255,0.2);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
}

.hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ===== HEADER ===== */
.header {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.header > * {
  position: relative;
  z-index: 1;
}

.header-logo img {
  height: 2.5rem;
  width: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  display: none;
  z-index: 30;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.2);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  display: none;
  z-index: 50;
}

.lang-menu.open {
  display: block;
}

.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  transition: all 0.2s;
}

.lang-menu button:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.lang-menu button.active {
  color: var(--primary);
  background: rgba(255,255,255,0.1);
}

/* Mobile menu button */
.mobile-menu-btn {
  color: #fff;
  padding: 0.5rem;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  z-index: 20;
  padding: 1.5rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu nav a {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}

.mobile-menu nav a:hover {
  color: #fff;
}

.mobile-lang-btns {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.mobile-lang-btns button {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  transition: all 0.2s;
}

.mobile-lang-btns button.active {
  background: var(--primary);
  color: #fff;
}

/* ===== HERO CONTENT ===== */
.hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: calc(100vh - 80px);
  padding: 1rem 1.5rem;
  padding-left: 2rem;
  justify-content: flex-start;
  padding-top: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

.hero-badge span {
  color: #fff;
  font-size: 0.75rem;
}

.hero-title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title-accent {
  font-style: italic;
  font-weight: 300;
  position: relative;
  display: inline-block;
}

.hero-title-accent::after {
  content: attr(data-i18n);
  position: absolute;
  left: 2px;
  top: 2px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.3);
  z-index: -1;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 32rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(96,175,221,0.3);
  box-shadow: 0 10px 30px rgba(51,148,209,0.25);
  transition: all 0.3s;
}

.cta-btn:hover {
  background: linear-gradient(to right, var(--primary-dark), #1464a0);
  box-shadow: 0 15px 40px rgba(51,148,209,0.4);
  transform: translateY(-2px) scale(1.02);
}

.cta-btn svg {
  transition: transform 0.3s;
}

.cta-btn:hover svg {
  transform: translateX(4px) rotate(-12deg);
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 1rem;
}

.section-dark {
  background: var(--bg-dark);
}

.section-black {
  background: var(--bg-black);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.section-divider {
  width: 4rem;
  height: 4px;
  background: var(--primary);
  margin: 0 auto 2.5rem;
  border-radius: 2px;
}

.section-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 56rem;
  margin: 0 auto;
}

/* ===== PRODUCTOS ===== */
.productos-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.productos-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.productos-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.productos-items li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.productos-items li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 0.375rem;
}

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #171717;
  border: 1px solid var(--border-light);
}

.carousel-images {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.carousel-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.carousel-images img.active {
  opacity: 1;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent, transparent);
  pointer-events: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 0.5rem;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
  z-index: 5;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.7);
}

.carousel-prev {
  left: 0.75rem;
}

.carousel-next {
  right: 0.75rem;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.3);
  transition: all 0.3s;
}

.carousel-dots button:hover {
  background: rgba(255,255,255,0.5);
}

.carousel-dots button.active {
  background: var(--primary);
  width: 24px;
}

/* ===== INDUSTRIES ===== */
.industries-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.industry-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: rgba(51,148,209,0.1);
  border: 1px solid rgba(51,148,209,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-label {
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-value {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
}

.contact-link {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-light);
  padding: 2rem 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 2rem;
  width: auto;
  opacity: 0.6;
}

.footer-info {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .header {
    padding: 1rem 1.5rem;
  }

  .header-logo img {
    height: 3rem;
  }

  .hero-content {
    justify-content: center;
    padding-top: 0;
    margin-top: -3rem;
    padding-left: 3rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 7rem 1.5rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .productos-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-info {
    text-align: right;
  }
}

@media (min-width: 768px) {
  .header {
    padding: 1rem 3rem;
  }

  .nav-desktop {
    display: flex;
  }

  .lang-dropdown {
    display: block;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero-content {
    padding-left: 5rem;
    margin-top: -6rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .contact-grid {
    flex-direction: row;
    gap: 4rem;
  }

  .contact-col {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .header-logo img {
    height: 3.5rem;
  }

  .nav-desktop {
    gap: 2rem;
  }

  .nav-desktop a {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .cta-btn {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .section-text {
    font-size: 1.125rem;
  }

  .productos-grid {
    flex-direction: row;
    gap: 4rem;
  }

  .productos-list {
    flex: 0 0 40%;
  }

  .productos-carousel {
    flex: 0 0 55%;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 6rem;
  }
}
