@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Inter:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap");

:root {
  --primary-color: #00bfff; /* Electric Cyan */
  --primary-hover: #138808; /* Deep Cyan */
  --accent-color: #3b82f6; /* Royal Blue */
  --text-color: #1f2937;
  --bg-color: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.4);
  --nav-border: rgba(255, 255, 255, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --font-heading: "Bricolage Grotesque", sans-serif;
  --font-body: "Google Sans Flex", sans-serif;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  font-size: 1em;
  color: white;
  background-color: #020617; /* Deepest Indigo Base */
  line-height: 1.4;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-body);
  letter-spacing: -0.03em;
  line-height: 2em;
  font-weight: 700;
}

h2 {
  font-size: 1.5em;
}

/* Fixed Background Overlay: Deep Ocean Blue Mesh Gradient (2026 Trend) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #020617;
  background-image:
    radial-gradient(at 0% 0%, hsla(243, 75%, 35%, 0.4) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(199, 89%, 48%, 0.4) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(243, 75%, 25%, 0.4) 0, transparent 50%),
    radial-gradient(at 50% 100%, hsla(199, 89%, 48%, 0.3) 0, transparent 50%),
    radial-gradient(at 10% 80%, hsla(243, 75%, 59%, 0.2) 0, transparent 50%);
  background-attachment: fixed;
  z-index: -1;
}

/* Subtle noise texture for a high-res, tactile feel on dark background */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}

/* Update main content sections for readability over background */
main {
  position: relative;
  z-index: 1;
}

/* Header & Container Queries */
.main-header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(90%, 1100px);
  container-type: inline-size;
  container-name: header;
  transition: var(--transition);
}

#top-logo {
  width: 3rem;
}

#footer-logo {
  width: 3rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: rgba(15, 23, 42, 0.4); /* Darker glass for dark mode */
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99rem; /* True pill shape */
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.2),
    0 10px 30px -5px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

/* Header state when scrolled down */
.main-header.is-sticky {
  top: 1rem;
  width: min(85%, 1000px);
}

.main-header.is-sticky .nav-container {
  background: rgba(15, 23, 42, 0.6);
  padding: 0.5rem 0.75rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

/* Logo Refinement */
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: white;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  padding-left: 0.5rem;
}

.logo-icon {
  color: var(--primary-color);
  font-size: 1.25rem;
  transition: var(--transition);
}

.logo:hover .logo-icon {
  transform: rotate(15deg) scale(1.1);
}

/* Nav Menu */
.nav-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem;
  border-radius: 99rem;
}

.nav-link {
  text-decoration: none;
  color: #94a3b8; /* Cool gray slate */
  font-weight: 500;
  font-size: 0.85rem;
  transition: var(--transition);
  padding: 0.5rem 1.25rem;
  border-radius: 99rem;
  display: block;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  background: white;
  color: #36454f; /* Darker Cyan for better contrast on white background */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-weight: 600;
}

/* Hide the old underline effect */
.nav-link::after {
  display: none;
}

/* Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 5rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: var(--transition);
}

/* Responsive with Container Queries */
@container header (width < 768px) {
  .nav-menu {
    position: fixed;
    top: 4.5rem;
    left: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1.5rem;
    border-radius: 2rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition:
      opacity 0.3s ease,
      transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
      visibility 0.3s;
    z-index: 999;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-list {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    background: none;
    padding: 0;
  }

  .nav-link {
    text-align: center;
    padding: 0.75rem;
    font-size: 1.2em;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-link.active {
    background: var(--primary-color);
    color: white;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-actions .btn-primary {
    display: none; /* Hide CTA on mobile to keep it focused */
  }

  .nav-menu.is-open ~ .nav-actions .mobile-toggle .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-menu.is-open ~ .nav-actions .mobile-toggle .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .nav-menu.is-open ~ .nav-actions .mobile-toggle .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* General Section Spacing */
main section {
  margin: 2rem 1.5rem;
  max-width: var(--max-width);
}

@media (min-width: 1248px) {
  /* var(--max-width) + 2 * 1.5rem */
  main section {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Hero Section Demo Styling */
.hero {
  padding: 10rem 2rem 0rem;
  text-align: center;
  color: #fefefa;
  margin-top: 0; /* Keep hero at the top */
}

.hero h1 {
  font-size: clamp(3rem, 10cqi, 5.5rem);
  font-size: 3em;
  margin-bottom: 4rem;
  line-height: 1.1;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.35rem;
  color: #cbd5e1;
  max-width: 750px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Other sections on Home page */
main section:not(.hero) {
  /* background: rgba(15, 23, 42, 0.6); Darker glass for dark background */
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 1rem;
  padding: 2rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

main section:not(.hero) h2 {
  color: black;
}

main section:not(.hero) p {
  color: #a1a2a3; /* Slate gray text */
}
/* Footer Styles */
.site-footer {
  background-color: #111827;
  color: #f3f4f6;
  padding: 5rem 0 2rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .footer-logo {
  color: white;
  margin-bottom: 1.5rem;
}

.brand-desc {
  color: #9ca3af;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-nav h3,
.footer-newsletter h3 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.75rem;
}

.footer-nav a {
  color: #9ca3af;
  text-decoration: none;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: white;
}

.footer-newsletter p {
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #374151;
  background: #1f2937;
  color: white;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--primary-color);
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #374151;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.legal-links {
  display: flex;
  gap: 1rem;
}

.legal-links a {
  color: #6b7280;
  text-decoration: none;
  transition: var(--transition);
}

.legal-links a:hover {
  color: white;
}

.section-items {
  /* padding: 5rem 2rem; */
  text-align: center;
  background-color: white;
  overflow: hidden;
  display: block;
}

.section-items-content {
  display: flex;
  margin-bottom: 2rem;
}

.left-text {
  display: block;
  text-align: left;
  flex-grow: 1;
  margin-left: 2rem;
}

.right-text {
  display: block;
  flex-grow: 1;
  text-align: right;
  margin-right: 2rem;
}

#marcas {
  display: block;
  margin: 0rem 0rem;
  text-align: center;
}

#marcas picture,
img {
  width: 100%;
}

.section-items-content picture {
  width: 100%;
  border-radius: 1rem;
}

.section-items-content img {
  width: 100%;
  border-radius: 1rem;
}

hr {
  border: none;
  height: 2px;
  background-image: radial-gradient(circle, #636e72 1px, transparent 1px);
  background-size: 5px 2px;
  background-repeat: repeat-x;
  width: 100%;
  opacity: 0.6;
  margin-bottom: 2rem;
  /* border: 0.1rem dotted #d0d0d0;
  margin-bottom: 2rem;
  border-style: none none dotted;
  color: #fff;
  background-color: #fff; */
  /*Rest of stuff here*/
}

/* height: 1px;
  /* color: #000000;
  background: #000000; */
/* margin-bottom: 2rem;
  border-top-style: dotted 4px;
  border-style: dotted 4px;
  border-top-color: red;
  font-size: 0;
  border: 0;  */

/* Mobile Responsiveness for Footer */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 0px;
  }

  .section-items-content {
    display: block;
  }

  .section-items-content picture {
    width: 100%;
    border-radius: 1rem;

    display: block;
    margin: auto;
  }

  #marcas picture,
  img {
    width: 100%;
  }

  /* .section-items-content img {
    width: 100%;
    border-radius: 1rem;
    display: block;
    margin: auto;
  } */

  .left-text {
    margin-left: 0rem;
  }

  .right-text {
    margin-right: 0rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .legal-links {
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

.classic-flex-container {
  display: flex;
  gap: 1rem;
  height: 16rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.classic-flex-item {
  flex: 1; /* Each item takes equal width */
  aspect-ratio: 16 / 9;
  background-color: #e5e7eb;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.classic-flex-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#contacto_div {
  display: inline-block;
  justify-content: center;
  align-items: center;
  height: 2vh;
  padding: 0;
  margin: 0;
}

#contacto_div img {
  display: block;
  margin: 0 auto;
  width: 6rem;
}

@media (max-width: 640px) {
  .classic-flex-container {
    flex-direction: column;
    height: 24rem;
  }

  #contacto_div img {
    display: block;
    margin: 0 auto;
    width: 4rem;
  }
}
