:root {
  --primary: #0a0a0a;
  --secondary: #9b50ca;
  --accent: #9b50ca;
  --light: #f9f9f9;
  --dark: #1a1a1a;
  --gray: #9e9e9e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= HEADER ================= */
header {
  background: linear-gradient(135deg, var(--primary), #141414);
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  width: 100%;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-family: 'Kanit', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo img {
  height: 55px; 
  width: auto;
  display: block;
}

.logo span {
  color: white;
}

.logo strong {
  color: var(--accent);
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .logo img {
    height: 42px;
  }
  .logo a {
    font-size: 1.8rem;
  }
}


nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--accent);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--accent);
}

/* ================= RESPONSIVE HEADER ================= */
@media (max-width: 768px) {
  header {
    padding: 15px 0;
  }

  .logo {
    font-size: 2rem;
  }

  .mobile-menu {
    display: block;
    z-index: 1001;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #141414);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-align: center;
    padding: 0;
  }

  nav.active {
    transform: translateY(0);
    opacity: 1;
  }

  nav ul {
    flex-direction: column;
    padding: 20px 0;
  }

  nav ul li {
    margin: 15px 0;
  }

  nav ul li a {
    font-size: 1.3rem;
  }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
  height: 85vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover; /* ✅ llena bien el hero */
  object-position: center;
  z-index: 0;
  filter: brightness(0.6);
}

/* Mostrar solo el video de escritorio por defecto */
.desktop-video {
  display: block;
}

.mobile-video {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 3px 3px 0 var(--primary);
}

.hero p {
  font-size: 1.4rem;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #eaeaea;
}

.btn {
  display: inline-block;
  background-color: var(--secondary);
  color: white;
  padding: 14px 36px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
    min-height: 480px;
  }

  .desktop-video {
    display: none;
  }

  .mobile-video {
    display: block;
  }

  .hero-video {
    object-fit: cover;
    object-position: center;
    background: none;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 65vh;
    min-height: 420px;
  }

  .hero-video {
    object-fit: cover;
    object-position: center;
    background: none;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 12px;
  }
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-btn {
  padding: 8px 15px;
  border: none;
  background: #222;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s;
}

.page-btn:hover {
  background: #444;
}

.page-btn.active {
  background: var(--secondary);
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 3px 3px 0 var(--primary);
}

.hero p {
  font-size: 1.4rem;
  max-width: 800px;
  margin: 0 auto 30px;
  color:var(--light);
}

.btn {
  display: inline-block;
  background-color: var(--secondary);
  color: rgb(255, 255, 255);
  padding: 14px 36px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
}



.btn:hover {
  background-color: #ff4d4d;
}




.btn:hover {
  background-color: var(--accent);
  color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}


/* ================= CATÁLOGO ================= */
.catalog {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.8rem;
  display: inline-block;
  padding-bottom: 10px;
  position: relative;
  color: var(--primary);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  padding: 10px 24px;
  margin: 6px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--secondary);
  color: white;
}
.filter-btn {
  border: none;
  background: #f5f5f5;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


.caps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.cap-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cap-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.cap-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.cap-image {
  width: 100%;
  height: 260px; 
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5; 
  overflow: hidden;
}

.cap-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  transition: transform 0.5s ease;
}

.cap-card:hover .cap-image img {
  transform: scale(1.05); 
}


.cap-card:hover .cap-image img {
  transform: scale(1.1);
}

.cap-info {
  padding: 20px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cap-info h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.cap-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.cap-description {
  color: #2c2c2c;
  font-size: 0.97rem;
  font-weight: 500;
  line-height: 1.4; 
  margin: 12px 0 20px;
  text-align: left; 
  flex-grow: 1;
  min-height: 70px;
  background: rgba(250, 250, 250, 0.9); 
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  letter-spacing: 0.2px; 
}

.whatsapp-btn {
  margin-top: auto; 
  background: #25D366;
  color: white;
  padding: 10px 15px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s;
}

.whatsapp-btn i {
  margin-right: 8px;
  font-size: 1.3rem;
}

.whatsapp-btn:hover {
  background-color: #128C7E;
}

/* ================= FEATURES ================= */
.features {
  background: linear-gradient(135deg, var(--primary), #111);
  color: white;
  padding: 80px 0;
  margin-top: 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
}

.feature-card {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-8px);
}

.feature-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* ================= FOOTER ================= */
footer {
  background: var(--primary);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.social-icons {
  display: flex;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    font-size: 2rem;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #141414);
    transform: translateY(-120%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
  }

  nav ul {
    flex-direction: column;
    padding: 20px 0;
  }

  nav ul li {
    margin: 15px 0;
  }

  nav ul li a {
    font-size: 1.1rem;
  }

  nav.active {
    transform: translateY(0);
  }

  .mobile-menu {
    display: block;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    margin: 5px 0;
    width: 80%;
  }
}
