@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlow-condensed-bold.woff2') format('woff2');
}

:root {
  --navy-primary:   #0A1628;
  --navy-secondary: #1B3A5C;
  --dark-gray:      #1C1C1E;
  --mid-gray:       #4A4A4A;
  --light-gray:     #F4F5F7;
  --white:          #FFFFFF;
  --wa-green:       #25D366;
  --wa-hover:       #128C7E;

  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --shadow-card:  0 2px 12px rgba(10,22,40,0.12);
  --shadow-hover: 0 8px 30px rgba(10,22,40,0.18);
  --radius:       6px;
  --max-width:    1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-gray);
  background: var(--white);
}

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

a {
  color: var(--navy-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--navy-primary);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--navy-primary);
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--navy-primary), var(--navy-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== KEYFRAMES ===== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes waPulse {
  0% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,0.6); transform: scale(1.04); }
  100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

.section-subtitle {
  text-align: center;
  color: var(--mid-gray);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}

.header--compact {
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  transition: height 0.3s;
}

.header--compact .container {
  height: 56px;
}

.header--compact .logo img {
  height: 32px;
}

.header--compact .nav a {
  font-size: 0.9rem;
}

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

.logo img {
  height: 42px;
  width: auto;
}

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

.nav a {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy-primary);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--navy-secondary);
  transition: width 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy-primary);
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0A1628, #1B3A5C, #0A1628) center/cover no-repeat;
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,22,40,0.5);
}

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

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.15;
  animation: fadeInUp 0.8s ease forwards;
}

.hero p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero .btn {
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--navy-primary);
  color: var(--white);
  box-shadow: 0 0 20px rgba(27,58,92,0.3);
}

.btn-wa {
  background: var(--wa-green);
  color: var(--white);
}

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

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

.btn-outline:hover {
  background: var(--white);
  color: var(--navy-primary);
}

/* ===== PROPUESTA DE VALOR ===== */
.value-prop {
  padding: 80px 0;
  background: var(--light-gray);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.value-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--navy-primary);
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--mid-gray);
  font-size: 0.95rem;
}

/* ===== CATEGORIAS GRID ===== */
.categorias {
  padding: 80px 0;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.cat-card:nth-child(1) { transition-delay: 0s; }
.cat-card:nth-child(2) { transition-delay: 0.05s; }
.cat-card:nth-child(3) { transition-delay: 0.1s; }
.cat-card:nth-child(4) { transition-delay: 0.15s; }
.cat-card:nth-child(5) { transition-delay: 0.2s; }
.cat-card:nth-child(6) { transition-delay: 0.25s; }

.cat-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cat-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.85), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.cat-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.cat-card p {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.cat-card .btn-small {
  display: inline-block;
  padding: 8px 20px;
  background: var(--white);
  color: var(--navy-primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  border-radius: var(--radius);
  align-self: flex-start;
  transition: background 0.2s;
}

.cat-card .btn-small:hover {
  background: var(--navy-secondary);
  color: var(--white);
}

/* ===== MARCAS ===== */
.marcas {
  padding: 60px 0;
  background: var(--light-gray);
  text-align: center;
}

.marcas h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--navy-primary);
  margin-bottom: 2rem;
}

.marcas-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: center;
}

.marca-item {
  background: var(--white);
  padding: 16px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--navy-secondary);
  letter-spacing: 1px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0;
  background: var(--navy-primary);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.cta-section .btn + .btn {
  margin-left: 12px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-gray);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  line-height: 2;
  color: rgba(255,255,255,0.65);
}

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

.footer-logo img {
  height: 36px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.3s, background 0.3s;
  animation: waPulse 3s ease-in-out infinite;
}

.wa-float:hover {
  animation: none;
  transform: scale(1.1);
  background: var(--wa-hover);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

/* ===== CONTACTO PAGE ===== */
.page-header {
  background: var(--navy-primary);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  text-transform: uppercase;
}

.page-section {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h2,
.contact-form h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--navy-primary);
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.contact-detail .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--navy-secondary);
}

.contact-detail .label {
  font-weight: 600;
  color: var(--navy-primary);
  display: block;
}

.contact-detail .value {
  color: var(--mid-gray);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy-secondary);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* ===== NOSOTROS PAGE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--navy-primary);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--mid-gray);
  margin-bottom: 1rem;
}

.about-image img {
  border-radius: var(--radius);
  width: 100%;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 3rem;
}

.mvv-card {
  background: var(--light-gray);
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
}

.mvv-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--navy-primary);
  margin-bottom: 0.75rem;
}

.mvv-card p {
  color: var(--mid-gray);
  font-size: 0.95rem;
}

/* ===== PRODUCTOS PAGE ===== */
.prod-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.prod-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--navy-primary);
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.product-table th {
  background: var(--navy-primary);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-table th:first-child {
  border-radius: var(--radius) 0 0 0;
}

.product-table th:last-child {
  border-radius: 0 var(--radius) 0 0;
}

.product-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.product-table tr:hover td {
  background: var(--light-gray);
}

.product-table .marca {
  color: var(--navy-secondary);
  font-size: 0.85rem;
}

.product-table .wa-cell {
  text-align: center;
}

.product-table .wa-cell a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wa-green);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  transition: background 0.2s;
}

.product-table .wa-cell a:hover {
  background: var(--wa-hover);
  color: var(--white);
}

/* ===== 404 PAGE ===== */
.error-page {
  text-align: center;
  padding: 120px 20px;
}

.error-page h1 {
  font-family: var(--font-heading);
  font-size: 6rem;
  color: var(--navy-primary);
  line-height: 1;
}

.error-page p {
  font-size: 1.2rem;
  color: var(--mid-gray);
  margin: 1rem 0 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

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

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 1rem;
  }

  .nav.open {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 60px 0;
  }

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

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

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

  .cta-section h2 {
    font-size: 1.6rem;
  }

  .cta-section .btn + .btn {
    margin-left: 0;
    margin-top: 12px;
  }

  .prod-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .product-table {
    font-size: 0.85rem;
  }

  .product-table th,
  .product-table td {
    padding: 8px 10px;
  }

  .product-table .wa-cell a {
    padding: 4px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.6rem;
  }
}
