/* ----------------------
   Reset & Design System
------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700&display=swap');

:root {
  /* Colors */
  --color-bg: #F9FAFB;
  --color-surface: #FFFFFF;
  --color-text-main: #000000;
  --color-text-muted: #000000;
  --color-primary: #111827;
  /* Stax uses dark/black often for contrast */
  --color-accent: #2563EB;
  /* Vibrant Blue for links/actions */
  --color-border: #E5E7EB;

  /* Spacing */
  --spacing-sm: 0.75rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* UI */
  --radius-card: 16px;
  --radius-btn: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --container-width: 1200px;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-blur: 10px;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: transparent;
  /* Allow seeing valid background if needed, though replaced by page-content */
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Enlaces */
a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Imágenes */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----------------------
   Contenedor general
------------------------ */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: auto;
  padding: 0 1rem;
}

/* ----------------------
   Header
------------------------ */
header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  margin-left: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

nav a:hover {
  color: var(--color-accent);
}

.lang-switch a {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

/* Logo Group */
.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.tagline {
  display: block;
  /* Force new line */
  font-size: 0.8rem;
  color: #555;
  font-weight: 400;
  line-height: 1.2;
}

/* Logo */
.logo {
  height: 50px;
  margin-right: 0.8rem;
  vertical-align: middle;
  border-radius: 50%;
  /* Make it oval/circle */
}

/* Hamburger Menu Icon */
.hamburger {
  display: none;
  /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 20;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: #1f2933;
  border-radius: 2px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* ----------------------
   Hero / Secciones principales
------------------------ */
/* ----------------------
   Hero Slider (Fixed Background)
------------------------ */
.hero-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: left;
  z-index: -1;
  /* Behind everything */
}

/* ----------------------
   Page Content Wrapper (Transparent Container)
------------------------ */
.page-content {
  position: relative;
  margin-top: 60vh;
  /* Initial push */
  z-index: 10;
  min-height: 50vh;
  /* Removed background, border-radius, box-shadow to allow distinct sections */
}


.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  z-index: 1;
  will-change: opacity;
  transform: translateZ(0);
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

/* Dark overlay to make text pop */
.slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.35rem;
  max-width: 700px;
  margin: 0 auto;
  color: #f3f4f6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-intro {
  font-size: 1.3rem !important;
  /* Slightly smaller than the main tagline was */
  line-height: 1.6;
  margin-bottom: 2rem !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  /* Added text shadow for readability since background is gone */
}

.hero-content .button {
  margin-top: 2rem;
  background: var(--color-accent);
  border: none;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.hero-content .button:hover {
  background: #ffffff;
  color: var(--color-accent);
}





.section {
  padding: 4rem 2rem;
  margin-bottom: 30vh;
  /* Large gap to reveal background image */
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  /* Float effect */
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  /* Ensure it looks like a distinct block */
}

/* Remove margin from last section to avoid huge gap before footer */
.section:last-of-type {
  margin-bottom: 5rem;
}

.bg-warm-light {
  background-color: rgba(255, 255, 255, 0.85) !important;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.section p {
  max-width: 800px;
  margin: 0 0 1.5rem 0;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  text-align: left;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.cards-2x2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--color-text-muted);
  text-shadow: none;
  text-align: left;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #000000;
  /* Big titles black */
  text-shadow: none;
  font-size: 1.5rem;
}

.card .button {
  margin-top: auto;
}

/* ----------------------
   Botones / CTA
------------------------ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.button:hover {
  color: white;
  /* Fix hover text color */
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Payment Buttons Container */
.payment-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ----------------------
   Footer
------------------------ */
footer {
  background: var(--color-primary);
  color: #9CA3AF;
  padding: 4rem 0;
  margin-top: 5rem;
  /* Re-add margin to separate from last card */
  text-align: left;
  position: relative;
  z-index: 10;
}

footer p {
  font-size: 0.95rem;
}

/* ----------------------
   Formulario
------------------------ */
form {
  max-width: 600px;
  margin-top: 2rem;
}

label {
  display: block;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  padding: 0.875rem;
  margin-top: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

form button {
  margin-top: 1rem;
}

/* ----------------------
   WhatsApp flotante
------------------------ */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 100;
  text-decoration: none;
}

.whatsapp:hover {
  background: #1ebe57;
}

/* ----------------------
   Target Audience List (Checklist style)
------------------------ */
.target-audience-list ul {
  list-style: none;
  padding: 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
}

.target-audience-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: #000000;
  /* Small text black */
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  gap: 0.5rem;
  transition: transform 0.2s, border-color 0.2s;
  text-shadow: none;
  text-align: left;
  /* Ensure visibility on light bg */
}

.target-audience-link strong {
  color: #000000;
  /* Big letters/Titles black */
  text-shadow: none;
}

.target-audience-link:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.target-audience-list li strong {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

/* ----------------------
   About Section
------------------------ */
.about-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-text {
  flex: 1;
  min-width: min(100%, 300px);
  text-align: left;
}

.about-image {
  flex: 1;
  min-width: min(100%, 250px);
  text-align: left;
}

.profile-placeholder {
  max-width: 250px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ----------------------
   Responsive
------------------------ */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }

  .nav-links.active {
    display: flex;
  }

  /* Reset links margin for mobile */
  .nav-links a {
    margin: 0;
    text-align: center;
    width: 100%;
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links a:last-of-type {
    border-bottom: none;
  }

  /* Language switcher inside mobile menu */
  .nav-links .lang-switch {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--color-border);
    width: 100%;
    gap: 0.5rem;
    font-size: 1rem;
  }

  .nav-links .lang-switch a {
    margin: 0 0.25rem;
    border-bottom: none;
    padding: 0;
    width: auto;
    display: inline;
    font-size: 1rem;
  }

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

  .cards,
  .cards-2x2 {
    grid-template-columns: 1fr;
  }

  /* Ensure header stack context */
  .header-inner {
    position: relative;
  }

  /* Payment Buttons Mobile */
  .payment-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .payment-buttons .button {
    width: 100%;
    margin: 0;
    margin-bottom: 1rem;
    /* Space between stacked buttons */
  }

  /* ----------------------
   Contact / Betalen: single column on mobile
  ------------------------ */
  .contact-hero-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Also catch inline-style grids (contact.html) */
  .container[style*="grid-template-columns"],
  .container[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .contact-text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .contact-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main);
    text-align: left;
  }

  .payment-buttons .button:last-child {
    margin-bottom: 0;
  }
}

/* ----------------------
   Cookie Banner
------------------------ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 9999;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-body);
  border-top: 1px solid var(--color-border);
}

#cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-main);
  text-align: left;
  max-width: 800px;
}

#cookie-banner-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

#cookie-banner button {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--color-primary);
  background: white;
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#cookie-banner button:hover {
  background: var(--color-primary);
  color: white;
}

#cookie-banner button.primary-btn {
  background: var(--color-primary);
  color: white;
}

#cookie-banner button.primary-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}