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

:root {
  --color-primary: #f2c200;
  --color-primary-dark: #d9a800;
  --color-accent: #f4a61c;
  --color-accent-hover: #ffb933;
  --color-text-dark: #0a1a2a;
  --color-footer-bg: #000c18;
  --shadow-strong: 0 20px 50px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 6px 18px rgba(0, 0, 0, 0.35);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  background-color: #ffffff;
}

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

/* ============ ANIMACIONES ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ============ HERO PRINCIPAL ============ */
.hero-wrapper {
  min-height: 50vh;
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: url("img/fondo1.webp") center/cover no-repeat;
  filter: brightness(0.55);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.35));
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* NAVBAR */
.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.95rem;
}

.hero-logo img {
  height: 90px;
  width: auto;
  display: block;
}

/* Botón hamburguesa */
.hero-burger {
  display: none;
  width: 32px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.hero-burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.hero-burger span:nth-child(1) { top: 0; }

.hero-burger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hero-burger span:nth-child(3) { bottom: 0; }

.hero-burger.is-open span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hero-burger.is-open span:nth-child(2) { opacity: 0; }

.hero-burger.is-open span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.hero-menu {
  display: flex;
  gap: 26px;
  list-style: none;
  justify-content: center;
}

.hero-menu a {
  position: relative;
  padding-bottom: 4px;
  font-weight: 500;
  opacity: 0.9;
}

.hero-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.hero-menu a:hover::after,
.hero-menu a.is-active::after {
  width: 100%;
}

.btn-header {
  background: var(--color-accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.2s ease;
}

.btn-header:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.hero-contact {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ============ HERO MAIN ============ */
.hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-text {
  max-width: 480px;
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 0.98rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* Tarjeta logo */
.hero-logo-card {
  flex: 0 0 420px;
  max-width: 460px;
  background: #000;
  border-radius: 32px;
  padding: 26px 30px;
  box-shadow: var(--shadow-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-card img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  display: block;
}

/* ============ CTA ============ */
.cta-section {
  text-align: center;
  padding: 80px 20px;
  background: #ffffff;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.cta-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 35px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  padding: 18px 40px;
  color: var(--color-text-dark);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(242, 194, 0, 0.35);
  transition: all 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #ffd83b, var(--color-primary));
  box-shadow: 0 12px 35px rgba(242, 194, 0, 0.55);
}

/* ============ PRODUCTS SECTION ============ */
.products-section {
  position: relative;
  min-height: 65vh;
  color: #ffffff;
  overflow: hidden;
}

.products-bg {
  position: absolute;
  inset: 0;
  background: url("img/fondo2.webp") center/cover no-repeat;
  filter: brightness(0.3);
  z-index: 0;
}

.products-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.products-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.products-copy {
  max-width: 450px;
}

.products-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.products-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.products-text {
  font-size: 0.98rem;
  line-height: 1.6;
  opacity: 0.92;
}

.products-row {
  display: flex;
  gap: 22px;
  align-items: center;
}

.product-card {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 20px;
  padding: 12px;
  display: block;
  text-align: center;
  width: 200px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
}

.product-card img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

/* ============ WHY SECTION ============ */
.why-section {
  padding: 80px 40px;
  background-color: #ffffff;
  color: var(--color-text-dark);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.why-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: center;
}

.why-images {
  flex: 0 0 auto;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  min-height: 280px;
}

.why-img {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

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

.why-img-main {
  top: 0;
  left: 0;
  width: min(75%, 380px);
}

.why-img-secondary {
  bottom: 0;
  right: 0;
  width: min(65%, 280px);
}

.why-content {
  flex: 1;
}

.why-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.why-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.why-text {
  font-size: 0.98rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 26px;
}

.why-features {
  display: grid;
  gap: 16px;
}

.why-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.why-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #000;
}

/* ============ FOOTER ============ */
.site-footer {
  background-color: var(--color-footer-bg);
  color: #e5e7eb;
  padding: 30px 40px 18px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto 12px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.footer-info,
.footer-contact {
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding-top: 10px;
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ============ SERVICES SECTION ============ */
.services-hero {
  background: url('img/servicios.webp') center center/cover no-repeat;
  color: #fff;
  padding: 70px 40px 60px;
  position: relative;
  z-index: 0;
}

.services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 26, 42, 0.88);
  z-index: 1;
}

.services-inner, .services-copy, .services-title, .services-eyebrow, .services-text, .services-list {
  position: relative;
  z-index: 2;
}

.services-title, .services-eyebrow, .services-text, .services-list li {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* CTA dentro de servicios */
.services-cta {
  display: inline-block;
  margin-top: 16px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-wrapper {
    min-height: 45vh;
  }

  .products-section {
    min-height: 55vh;
  }

  .hero-logo-card {
    display: none;
  }

  .hero-inner,
  .products-inner,
  .why-section,
  .site-footer {
    padding-inline: 24px;
  }

  .hero-main { gap: 40px; }

  .products-inner { gap: 36px; }

  .products-row { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .hero-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-logo-card { max-width: 420px; }

  .services-images-col {
    display: none !important;
  }

  .why-inner {
    flex-direction: column;
    padding-inline: 0;
  }

  .why-images {
    max-width: 420px;
    min-height: 240px;
  }

  .why-img-main { width: min(80%, 340px); }

  .why-img-secondary { width: min(60%, 260px); }

  .site-footer {
    padding: 24px 20px 14px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contact { text-align: left; }
}

@media (max-width: 768px) {
  .hero-inner {
    padding: 16px 18px 30px;
    gap: 30px;
  }

  .hero-nav {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
  }

  .hero-logo img { height: 70px; }

  .hero-burger {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-nav-links { width: 100%; }

  .hero-menu {
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    display: none;
    align-items: center;
  }

  .hero-menu.is-open { display: flex; }

  .btn-header {
    display: none;
  }

  .hero-contact {
    display: none;
  }

  .hero-logo-card {
    display: none;
  }

  .hero-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .hero-title,
  .cta-title {
    font-size: 2.2rem;
  }

  .products-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 24px;
  }

  .products-copy { max-width: 100%; }
}

@media (max-width: 600px) {
  .hero-inner {
    padding: 12px 16px 24px;
    gap: 24px;
  }

  .hero-logo img { height: 50px; }

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

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

  .hero-logo-card { display: none; }

  .cta-section { padding: 60px 20px; }

  .cta-title { font-size: 2rem; }

  .cta-button {
    width: 100%;
    max-width: 260px;
  }

  .products-inner {
    padding: 40px 16px;
    gap: 18px;
  }

  .products-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
  }

  .product-card {
    flex: 1;
    max-width: 100%;
    padding: 8px;
    border-radius: 14px;
  }

  .product-card img { border-radius: 10px; }

  .why-section { padding: 60px 20px; }

  .why-title { font-size: 2rem; }

  .why-images {
    min-height: 200px;
    max-width: 340px;
  }

  .site-footer {
    padding: 20px 18px 12px;
  }

  .footer-inner { gap: 14px; }

  .footer-info,
  .footer-contact {
    font-size: 0.85rem;
  }

  .footer-bottom { font-size: 0.75rem; }
}

@media (max-width: 420px) {
  .hero-contact { display: none; }
}

@media (max-width: 400px) {
  .product-card {
    flex: 0 0 140px;
    max-width: 140px;
  }
}

