/* ============================================================
   PINTURAS ZHAIA — Landing Page Styles
   ============================================================ */

/* --- CSS Variables --- */
:root {
  /* Primary — Azul corporativo profundo */
  --color-primary: #1a3a5c;
  --color-primary-light: #2c5f8a;
  --color-primary-dark: #0f2440;

  /* Accent — Naranja/ámbar para CTAs */
  --color-accent: #f5a623;
  --color-accent-hover: #e09515;
  --color-accent-light: rgba(245, 166, 35, 0.12);

  /* Neutros */
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-bg-dark: #0f2440;
  --color-bg-card: #ffffff;

  /* Texto */
  --color-text: #2d3436;
  --color-text-light: #555b6e;
  --color-text-muted: #8e95a5;
  --color-text-inverse: #ffffff;

  /* Bordes */
  --color-border: rgba(0, 0, 0, 0.06);
  --color-border-light: rgba(255, 255, 255, 0.1);

  /* Layout */
  --max-width: 1200px;
  --navbar-height: 72px;

  /* Transiciones */
  --transition-fast: 0.25s ease;
  --transition-med: 0.4s ease;
  --transition-slow: 0.6s ease;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 4px 20px rgba(245, 166, 35, 0.3);
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Text helpers --- */
.text--accent {
  color: var(--color-accent);
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header__title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  line-height: 1.1;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.section-header__desc {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 166, 35, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-text-inverse);
  transform: translateY(-2px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  transition: all var(--transition-med);
  background: transparent;
}

.navbar--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  height: 64px;
}

.navbar--scrolled .navbar__link {
  color: var(--color-text);
}

.navbar--scrolled .navbar__link.active {
  color: var(--color-accent);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 2px 0;
  cursor: pointer;
  position: relative;
  z-index: 10000;
}

.navbar__logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  transition: height var(--transition-med);
  border-radius: 8px;
  animation: logo-glow 2.5s ease-in-out infinite;
}

.navbar--scrolled .navbar__logo-img {
  height: 52px;
}

@keyframes logo-glow {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 32px rgba(255, 255, 255, 0.2));
  }
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
}

.navbar__link:hover {
  color: var(--color-text-inverse);
  background: rgba(255, 255, 255, 0.08);
}

.navbar__link.active {
  color: var(--color-accent);
}

.navbar--scrolled .navbar__link:hover {
  color: var(--color-primary);
  background: var(--color-accent-light);
}

.navbar--scrolled .navbar__link.active {
  color: var(--color-accent);
}

/* --- Nav Toggle (mobile) --- */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.navbar__toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--color-text-inverse);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.navbar--scrolled .navbar__toggle span {
  background: var(--color-text);
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video--blur {
  filter: blur(40px) brightness(0.5);
  transform: scale(1.3);
  opacity: 0.6;
}

.hero__video--main {
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 36, 64, 0.75) 0%,
    rgba(26, 58, 92, 0.5) 50%,
    rgba(15, 36, 64, 0.75) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-text-inverse);
  max-width: 800px;
  padding-top: 60px;
}

.hero__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(245, 166, 35, 0.15);
  padding: 8px 24px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(245, 166, 35, 0.2);
}

.hero__title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  font-weight: 300;
  letter-spacing: 1px;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   ABOUT / NOSOTROS
   ============================================================ */
.about {
  padding: 100px 0;
  background: var(--color-bg);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about__card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 16px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  transition: all var(--transition-med);
}

.about__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.about__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 1.5rem;
  transition: all var(--transition-med);
}

.about__card:hover .about__icon {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

.about__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.about__desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================================
   PRODUCTS / MERCANCÍA
   ============================================================ */
.products {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.products__card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all var(--transition-med);
}

.products__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.products__card-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.products__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.products__card:hover .products__card-img {
  transform: scale(1.08);
}

/* ============================================================
   TRAINING / CAPACITACIÓN
   ============================================================ */
.training {
  padding: 100px 0;
  background: var(--color-bg);
}

.training__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.training__card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all var(--transition-med);
}

.training__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.training__card-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.training__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.training__card:hover .training__card-img {
  transform: scale(1.08);
}

.training__card-body {
  padding: 20px 18px 24px;
}

.training__card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.training__card-desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery__item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery__item:hover img {
  transform: scale(1.1);
}

.gallery__item::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  background: rgba(15, 36, 64, 0);
  transition: all var(--transition-med);
  opacity: 0;
}

.gallery__item:hover::after {
  background: rgba(15, 36, 64, 0.4);
  opacity: 1;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 100px 0;
  background: var(--color-bg);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__info-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 14px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.contact__info-card:hover {
  border-color: var(--color-accent);
  transform: translateX(4px);
}

.contact__info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 1.2rem;
}

.contact__info-card h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.contact__info-card p,
.contact__info-card a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary-dark);
}

.contact__info-card a:hover {
  color: var(--color-accent);
}

.contact__image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 60px 0 30px;
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border-light);
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer__slogan {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 500;
}

.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 12px;
}

.footer__seqlogic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.2rem 90px 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 0.5rem;
}

.footer__seqlogic-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
}

.footer__seqlogic i {
  color: #ff6b6b;
  font-size: 0.7rem;
}

.footer__seqlogic-logo-link {
  display: inline-block;
}

.footer__seqlogic-logo {
  width: 110px;
  height: auto;
  opacity: 0.45;
  filter: grayscale(1) brightness(1.8) drop-shadow(0 0 0px rgba(0,144,224,0));
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}

.footer__seqlogic-logo:hover {
  opacity: 0.95;
  filter: grayscale(0) brightness(1.2) drop-shadow(0 0 10px rgba(0,144,224,0.6));
  transform: scale(1.04);
}

.footer__seqlogic-social {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.4rem;
}

.seq-social-icon {
  color: rgba(255, 255, 255, 0.4);
  padding: 0.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.seq-social-icon:hover {
  transform: translateY(-2px);
}

.seq-facebook:hover {
  color: #1877F2;
  box-shadow: 0 0 10px rgba(24, 119, 242, 0.35);
  background: rgba(24, 119, 242, 0.12);
}

.seq-youtube:hover {
  color: #FF0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.35);
  background: rgba(255, 0, 0, 0.12);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: white;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-fast);
  animation: whatsapp-bounce 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Tablet (769-1024px) --- */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .training__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact__image {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header__title {
    font-size: 2.2rem;
  }

  .section-header__desc {
    font-size: 0.95rem;
  }

  /* Navbar mobile */
  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: var(--color-bg);
    box-shadow: var(--shadow-lg);
    padding: 80px 24px 24px;
    gap: 4px;
    transition: right var(--transition-med);
    z-index: 1000;
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__link {
    color: var(--color-text);
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
  }

  .navbar__link:hover {
    background: var(--color-accent-light);
    color: var(--color-accent);
  }

  .navbar__toggle {
    display: flex;
  }

  /* Hero */
  .hero__title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* About */
  .about {
    padding: 60px 0;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about__card {
    padding: 28px 20px;
  }

  /* Products */
  .products {
    padding: 60px 0;
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Training */
  .training {
    padding: 60px 0;
  }

  .training__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Gallery */
  .gallery {
    padding: 60px 0;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Contact */
  .contact {
    padding: 60px 0;
  }

  .contact__info-card {
    padding: 16px 18px;
  }

  /* Footer */
  .footer {
    padding: 40px 0 20px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer__links {
    justify-content: center;
  }

  .footer__bottom {
    justify-content: center;
    text-align: center;
  }

  /* WhatsApp float */
  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    bottom: 16px;
    right: 16px;
  }
}

/* --- Small mobile (≤480px) --- */
@media (max-width: 480px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

/* ============================================================
   PAINT SPLASH PARTICLES
   ============================================================ */
.paint-particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  will-change: transform, opacity;
}
