/* SimpleShop base stylesheet */
:root {
  --bg: #f7f7fb;
  --card: #ffffff;
  --text: #0f1720;
  --muted: #a9b1c0;
  --primary: #121212;
  --secondary: #009ebf;
  --tertiary: #bae6c1;

  --christmas-red: #8b181d;
  --christmas-green: #325632;
  --radius: 8px;
  --max-width: 1100px;
  --font-size-base: 2rem;
  --font-size-lg: 5rem;
  --font-size-small: 1.125rem;
  --font-size-medium: 3rem;

  --background-primary: #121212;
}
/* Modo oscuro tecnológico */
body.dark-tech {
  --bg: var(--primary);
  --card: #181a20;
  --text: #e2e8f0;
  background: var(--bg);
  color: var(--text);
}

body.dark-tech .site-header,
body.dark-tech .container,
body.dark-tech .card,
body.dark-tech .services-container,
body.dark-tech .hero,
body.dark-tech .cta-section,
body.dark-tech .contact,
body.dark-tech .hours,
body.dark-tech .modal-content {
  color: var(--text);
  border-radius: var(--radius);
}

body.dark-tech .title,
body.dark-tech .subtitle h2,
body.dark-tech .cta-title {
  color: var(--secondary);
  text-shadow: 0 0 8px rgba(3, 159, 192, 0.3);
}

body.dark-tech .btn.primary,
body.dark-tech .carousel-btn,
body.dark-tech .theme-toggle {
  color: var(--primary);
  border: none;
  box-shadow: 0 0 8px rgba(3, 159, 192, 0.2);
}

body.dark-tech .carousel-image,
body.dark-tech .image,
body.dark-tech .modal-qr,
body.dark-tech .logo,
body.dark-tech .logo-small {
  filter: drop-shadow(0 0 8px var(--secondary));
}

.shadow {
  box-shadow: 0 10px 15px rgba(3, 159, 192, 0.08);
}

.theme-toggle {
  background: transparent;
  color: var(--secondary);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 1rem;
  transition: color 0.2s;
}
.theme-toggle:hover {
  color: #fff;
}

/* Language toggle button in header */
.lang-toggle {
  background: transparent;
  color: var(--secondary);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  /* position at right side of header */
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  margin-left: 0.5rem; /* kept for fallback when absolute positioning is overridden */
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}
.lang-toggle:hover {
  box-shadow: 0 8px 20px rgba(0, 158, 191, 0.12);
}
.lang-toggle:focus {
  outline: 3px solid rgba(0, 158, 191, 0.12);
}

@media (max-width: 480px) {
  /* keep toggle visible but nudged inward on small screens */
  .lang-toggle {
    right: 0.75rem;
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
  }
}
* {
  box-sizing: border-box;
}
.carousel {
  background: transparent;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.carousel-track {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 250px;
  /* remove flex layout so slides can be positioned absolutely and moved by transform only */
  display: block;
  overflow: hidden;
  border-radius: 10px;
}
.carousel-slide {
  /* absolutely position slides on top of each other and use transforms to move them */
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.carousel-slide[aria-hidden="true"] {
  /* keep visible during transform transitions so slides push naturally */
  pointer-events: none;
}

.viamericas {
  /* force logo to render as white silhouette */
  -webkit-filter: brightness(0) saturate(100%) invert(1) !important;
  filter: brightness(0) saturate(100%) invert(1) !important;
  /* preserve sizing from carousel-image */
  display: inline-block;
}
.slide-text {
  font-size: var(--font-size-base);
  font-weight: 700;
  width: 100%;
  color: var(--primary);
  margin: 0;
}
.carousel-image {
  width: 200px;
}

.slide-secondary,
.slide-text-secondary {
  font-size: var(--font-size-small);
  font-weight: 700;
  width: 100%;
  color: var(--primary) !important;
  margin: 0;
}

.contact-list {
  color: white;
  text-align: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin: 1rem 0;
  font-size: var(--font-size-base);
}
.contact-link {
  /* inline-flex so icon + text align nicely; padded so glow has breathing room */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  transition: color 180ms ease, box-shadow 180ms ease, transform 120ms ease;
}

/* Glowing hover/focus effect using secondary color */
.contact-link:hover,
.contact-link:focus,
.contact-link:focus-visible {
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 158, 191, 0.22),
    0 0 14px rgba(0, 158, 191, 0.12) inset;
  outline: none;
}

.contact-link:focus-visible {
  /* visible focus ring for keyboard users */
  box-shadow: 0 0 0 4px rgba(0, 158, 191, 0.12),
    0 8px 28px rgba(0, 158, 191, 0.22);
}

.contact-icon {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 0.5rem;
  transition: transform 180ms ease, filter 180ms ease;
}

.contact-link:hover .contact-icon,
.contact-link:focus .contact-icon {
  filter: drop-shadow(0 6px 12px rgba(0, 158, 191, 0.35));
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.carousel-btn {
  background: transparent;
  border: 1px solid rgba(15, 23, 32, 0.06);
  color: var(--primary);
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}
.carousel-btn:focus {
  outline: 3px solid rgba(11, 116, 255, 0.15);
}
.carousel-indicators {
  display: flex;
  gap: 0.5rem;
}
.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(15, 23, 32, 0.12);
  border: 0;
  cursor: pointer;
}
.indicator[aria-selected="true"] {
  background: var(--primary);
}

html,
body {
  font-family: "Roboto", Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}
.container {
  max-width: 100%;
  margin: 0 8rem;
  padding: 1.25rem;
}

.text-muted {
  color: var(--muted);
}

.lead-flex {
  margin: 1rem 8rem;
  display: flex;
  gap: 2rem;
}

.image {
  max-width: 40%;
  border-radius: 20px;
}

.flex-2 {
  flex: 2;
}

.flex-1 {
  flex: 1;
}

.flex-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.title {
  color: var(--primary);
  font-size: var(--font-size-lg);
  font-weight: 700;
  padding-bottom: 2rem;
  margin: 0;
  font-family: "Science Gothic", "Roboto", Inter, system-ui, -apple-system,
    "Segoe UI", Arial, sans-serif;
}

.subtitle {
  font-family: "Science Gothic", "Roboto", Inter, system-ui, -apple-system,
    "Segoe UI", Arial, sans-serif;
  font-size: var(--font-size-base);
  width: 100%;
  color: white;
  display: flex; /* Enables flexbox for alignment */
  align-items: center; /* Vertically centers the content */
  text-align: center; /* Horizontally centers the text within its own space */
}

.subtitle h2 {
  padding: 0 1em; /* Adds spacing around the title text */
  white-space: nowrap; /* Prevents the title from wrapping to multiple lines */
  background-color: var(--primary);
  border-radius: var(--radius);
}

.subtitle::before,
.subtitle::after {
  content: ""; /* Required for pseudo-elements to render */
  flex: 1; /* Allows the lines to expand and take up available space */
  border-bottom: 5px solid var(--secondary); /* Defines the line style */
  margin: auto; /* Vertically centers the line within the flex container */
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end; /* keep right-side items (QR, actions) aligned right; brand will be absolutely centered */
  position: relative; /* containing block for absolutely positioned .brand */
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: var(--font-size-medium);
  height: 36px;
  width: auto;
  /* center the brand visually in the header regardless of other header items */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.logo {
  height: 56px;
  width: auto;
  display: block;
}

/* QR in header */
.header-qr {
  height: 72px;
  width: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* make the QR visually clickable */
.qr-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-block;
  cursor: pointer;
}

.logo-small {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

/* modal-specific image sizing */
.modal-qr {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ensure modal-content is centered and sized for the QR */
/* (merged into the main .modal-content rule below to avoid duplicates) */

/* Responsive tweaks: reduce QR size on smaller screens (don't hide) */
@media (max-width: 900px) {
  .header-qr {
    height: 54px;
  }
}

@media (max-width: 768px) {
  .header-qr {
    height: 48px;
  }
  .container {
    margin: 0 2.5rem;
  }
}

@media (max-width: 480px) {
  .header-qr {
    height: 40px; /* smaller but still visible on mobile */
  }
  .container {
    margin: 0 1.25rem;
    padding: 1rem;
  }
}

@media (max-width: 360px) {
  .header-qr {
    height: 32px; /* extra small phones */
  }
}

/* Reduce brand text and logo size on smaller screens so header fits */
@media (max-width: 900px) {
  .brand .brand-text {
    font-size: 2.2rem; /* smaller on larger tablets */
    text-wrap: nowrap;
  }
  .logo {
    height: 48px;
  }
}

@media (max-width: 768px) {
  .brand .brand-text {
    font-size: 1.75rem;
  }
  .logo {
    height: 44px;
  }
}

@media (max-width: 480px) {
  .brand .brand-text {
    font-size: 1.25rem;
  }
  .logo {
    height: 36px;
  }
  /* on very narrow devices, slightly reduce the gap so it doesn't overflow */
  .brand {
    gap: 0.25rem;
  }
}

@media (max-width: 360px) {
  .brand .brand-text {
    font-size: 1.05rem;
  }
  .logo {
    height: 28px;
  }
}
.brand .brand-text {
  font-weight: 700;
}
.site-header {
  position: sticky;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  height: 80px;
  top: 0;
  background: var(--background-primary);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(15, 23, 32, 0.06);
}
.nav {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}

.image-squared {
  width: 140px;
  height: 140px;
}

.whatsapp-container {
  position: fixed;
  bottom: 40px;
  right: 40px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 9997;
  background-color: #24d366;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.whatsapp-logo {
  width: 50px;
  height: 50px;
  margin: 10px;
  cursor: pointer;
}

/* Make WhatsApp floating button smaller and less intrusive on mobile */
@media (max-width: 480px) {
  .whatsapp-container {
    bottom: 18px;
    right: 16px;
    padding: 6px;
  }
  .whatsapp-logo {
    width: 36px;
    height: 36px;
    margin: 6px;
  }
}

@media (max-width: 360px) {
  .whatsapp-container {
    bottom: 12px;
    right: 12px;
    padding: 4px;
  }
  .whatsapp-logo {
    width: 30px;
    height: 30px;
    margin: 4px;
  }
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}
.nav a:hover {
  background: rgba(11, 116, 255, 0.06);
  color: var(--text);
}
.actions {
  margin-left: 0.5rem;
}
.btn {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.btn.primary {
  background: var(--primary);
  color: #fff;
}
.btn:focus {
  outline: 3px solid rgba(11, 116, 255, 0.15);
}
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
}

.hero {
  padding: 4rem 0;
  background-color: white;
  background-image: url("../assets/blue-tech.avif");
  text-align: justify;
}
.hero h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}
.lead {
  font-size: var(--font-size-base);
  color: white;
  margin: 0;
}
.hero-ctas {
  display: flex;
  gap: 0.75rem;
}

.services-container {
  text-align: center;
  padding: 1rem 8rem;
  background-color: var(--secondary);
  background-image: url("../assets/teal-white-tech.avif");
  /* seasonal background (fondo-navidad) applied unconditionally with semi-transparent overlay for opacity */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
}

.services-container .title {
  color: var(--primary) !important;
}

.text-white {
  color: #ffffff;
}

.info {
  padding: 2rem 0;
}
.features {
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.features li {
  background: var(--card);
  padding: 0.75rem;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(12, 18, 25, 0.04);
}

.contact {
  text-align: center;
  padding: 2rem 0;
}
.newsletter .row {
  display: flex;
  gap: 0.5rem;
}
.newsletter input[type="email"] {
  flex: 1;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #e6e9ee;
}
.form-msg {
  color: green;
  margin-top: 0.5rem;
}

.site-footer {
  padding: 1.25rem 0;
  color: var(--muted);
  text-align: center;
  background-color: var(--primary);
}

/* Center footer content vertically and keep it horizontally centered */
.site-footer .container {
  display: flex;
  align-items: center; /* vertical centering */
  justify-content: center; /* horizontal centering */
  gap: 0.5rem;
}

/* small variant of logo used in footer */
.site-footer .logo-small {
  height: 18px;
  width: auto;
  display: inline-block;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 12, 0.45);
  padding: 1rem;
}
.modal[aria-hidden="false"] {
  display: flex;
}
.modal-content {
  background: var(--card);
  /* layout tweaks for QR modal: center contents */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.2);
  position: relative; /* allow absolute close button positioning */
}
.modal-close {
  cursor: pointer;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.qr-code {
  border-radius: 8px;
}

/* Call-to-action section styles */
.cta-section {
  width: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, #1f5f94 100%);
  color: white;
  padding: 2.5rem 1.25rem;
  text-align: center;
  border-radius: 12px;
}
.cta-title {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  font-weight: 700;
}
.cta-text {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
}
.cta-section .btn {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .cta-section {
    margin: 1.5rem 4rem;
    padding: 2rem 1rem;
  }
  .cta-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .cta-section {
    margin: 1rem;
    padding: 1.25rem;
    border-radius: 8px;
  }
  .cta-title {
    font-size: 1.25rem;
  }
  .cta-text {
    font-size: 1rem;
  }
}
.price {
  font-weight: 700;
  margin: 0.5rem 0;
}
.checkout input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #e6e9ee;
  margin-bottom: 0.5rem;
}
.modal-msg {
  margin-top: 0.5rem;
  color: green;
}

/* Map: Leaflet container */
.map,
#map {
  width: 100%;
  height: 320px;
  border-radius: 8px;
  margin: 0.5rem 0 0;
}

/* Opening hours layout: center the list and its items */
.hours {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hours-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.color-primary {
  color: var(--primary);
}

.hours-list-item {
  font-size: var(--font-size-base);
}

/* Responsive */
@media (max-width: 800px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 0;
    background: var(--card);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.08);
    flex-direction: column;
  }
  .nav-toggle {
    display: block;
    margin-left: auto;
  }
  .features {
    flex-direction: column;
  }
  .hero h1 {
    font-size: 1.35rem;
  }
  .carousel-track {
    height: 200px;
  }
  .slide-text {
    font-size: 1.125rem;
  }
  /* make lead-flex wrap and stack on small screens */
  .lead-flex {
    flex-wrap: wrap;
    margin: 1rem;
    gap: 1rem;
  }
  .lead-flex .image {
    max-width: 100%;
    width: 100%;
    border-radius: 12px;
  }
  .lead-flex .flex-2,
  .lead-flex .flex-1 {
    flex: 1 1 100%;
  }

  /* smaller map on narrow screens */
  #map {
    height: 220px;
  }

  .hours {
    padding: 0 !important;
    text-align: center;
  }

  .hours-list {
    text-align: center;
  }

  .hours-list li {
    font-size: var(--font-size-base);
  }

  @media screen and (max-width: 100px) {
    .lead-flex {
      flex-wrap: wrap;
    }

    .lead-flex .image {
      max-width: 100%;
      width: 100%;
    }
  }
}

/* Mobile-specific variable overrides */
@media (max-width: 600px) {
  .hero {
    text-align: center;
  }

  :root {
    /* scale down base sizes for small screens */
    --font-size-base: 1rem; /* previously 2rem */
    --font-size-lg: 1.6rem; /* previously 5rem */
    --font-size-small: 0.95rem; /* slight reduction */
    --font-size-medium: 1.4rem; /* previously 3rem */
    --max-width: 100%;
  }

  /* adjust container margins for narrow screens */
  .container {
    margin: 0 1rem;
    padding: 1rem;
  }

  .services-container {
    padding: 1rem 1rem;
  }

  .qr-code {
    width: 300px;
  }
}

/* Make carousel images smaller on small screens so they don't dominate layout */
@media (max-width: 600px) {
  .carousel-image {
    width: 140px; /* reduce from 200px to 140px */
  }
}

@media (max-width: 360px) {
  .carousel-image {
    width: 110px; /* even smaller on very small devices */
  }
}

.no-padding-horizontal {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
