﻿@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Core Colors */
  --bg-dark: #f6f2ec;
  --bg-panel: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.86);

  --accent-red: #b3542e;
  --accent-red-hover: #8f3f21;
  --accent-red-glow: rgba(179, 84, 46, 0.18);

  --text-main: #3f3a33;
  --text-light: #6f685f;
  --text-white: #17140f;

  --border-subtle: rgba(23, 20, 15, 0.12);

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

  /* Radii & Shadows */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 26px rgba(16, 14, 12, 0.08);
  --shadow-lift: 0 20px 50px rgba(16, 14, 12, 0.14);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);

  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-white);
}

/* Layout Classes */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4%;
}

.section {
  padding: 5rem 0;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent-red);
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

/* Components: Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--text-white);
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--text-white);
}

.btn-primary:hover {
  background: var(--text-main);
  color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--text-white);
  color: var(--text-white);
  background: rgba(0, 0, 0, 0.02);
}

/* UI: Minimalist Cards */
.glass-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  color: var(--text-light);
}

/* Component: Header / Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 40px;
  /* Adjusting the SVG size */
  width: auto;
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-grow: 1;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-red);
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-actions .login-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.nav-actions .login-link:hover {
  background-color: rgba(0, 0, 0, 0.06);
  color: var(--accent-red);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section Specifics */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Removed Decorative Tech Neural Glowing elements */

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}

.hero-image {
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.hero-rooster-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  /* Premium subtle shadow */
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin: 1.5rem 0;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-text {
  font-size: 1.1rem;
  max-width: 650px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-microcopy {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-main);
  opacity: 0.8;
}

/* Footer component */
.footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem;
  margin-top: 5rem;
  position: relative;
}

/* Removed top border gradient */

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 300px;
  color: var(--text-main);
}

.footer-links h4 {
  color: var(--text-white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
  .nav-menu-wrapper {
    display: none;
    /* We'll use JS to toggle an active class */
  }


  .mobile-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-image {
    justify-content: center;
    margin-top: 1rem;
    padding-bottom: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    /* Center buttons now on mobile */
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  /* Enforce border radius */
  z-index: 1;
  /* Fix for overflow: hidden clipping issues with transforms */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  /* Webkit fix */
  mask-image: radial-gradient(white, black);
  /* Standard property */
}

.price-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.price-currency {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

/* Comparison Table */
.comparison-table-wrapper {
  max-width: 1000px;
  margin: 5rem auto 0;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table td {
  color: var(--text-light);
  font-size: 0.95rem;
}

.comparison-table td:not(:first-child),
.comparison-table th:not(:first-child) {
  text-align: center;
}

.price-currency span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.price-card ul {
  list-style: none;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.price-card li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.price-card li span:first-child {
  margin-right: 10px;
  font-size: 1.1rem;
}

.price-card.pro {
  border-color: var(--text-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}

.price-card.pro::before {
  content: "Recomendado";
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--text-white);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu Overlay */
.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 992px) {
  .nav-menu-wrapper {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-panel);
    /* Added solid background */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 3rem;
    gap: 3rem;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    z-index: 998;
  }

  .nav-menu-wrapper.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  /* Make sure links and buttons stack nicely */
  .nav-menu-wrapper .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    /* Strip bullets if they bleed through */
  }

  .nav-menu-wrapper .nav-links a {
    font-size: 1.2rem;
    /* Larger touch targets for mobile */
  }

  .nav-menu-wrapper .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    padding: 0 2rem;
  }

  .nav-menu-wrapper .nav-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* --- UI Enhancements (Layout, Bento, Responsive) --- */
body {
  background:
    radial-gradient(1200px 800px at 12% -10%, rgba(255, 235, 210, 0.75), transparent 60%),
    radial-gradient(900px 700px at 90% -20%, rgba(214, 230, 255, 0.75), transparent 55%),
    var(--bg-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1280px;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
}

.section {
  padding: clamp(3.5rem, 6vw, 6.5rem) 0;
  scroll-margin-top: 96px;
}

p {
  font-size: 1.02rem;
  line-height: 1.75;
}

.btn {
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--accent-red);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(179, 84, 46, 0.28);
}

.btn-primary:hover {
  background: var(--accent-red-hover);
  box-shadow: 0 18px 40px rgba(143, 63, 33, 0.3);
}

.btn-outline {
  color: var(--text-white);
  border-color: rgba(23, 20, 15, 0.2);
}

.btn-outline:hover {
  background: rgba(179, 84, 46, 0.08);
  border-color: rgba(179, 84, 46, 0.35);
  color: var(--text-white);
}

.glass-panel {
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(23, 20, 15, 0.08);
  box-shadow: var(--shadow-soft);
}

.glass-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.badge {
  background: rgba(179, 84, 46, 0.08);
  border-color: rgba(179, 84, 46, 0.25);
  color: var(--text-white);
}

.navbar {
  background: rgba(246, 242, 236, 0.88);
  border-bottom: 1px solid rgba(23, 20, 15, 0.08);
  box-shadow: 0 8px 24px rgba(15, 12, 10, 0.06);
}

.nav-links {
  gap: 1.5rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent-red);
  border-radius: 999px;
}

.hero {
  min-height: 92vh;
  padding-top: 110px;
  padding-bottom: 4rem;
}

.hero-grid {
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.hero-title {
  letter-spacing: -1.2px;
}

.hero-subtitle {
  max-width: 32ch;
}

.hero-rooster-img {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(23, 20, 15, 0.08);
  box-shadow: var(--shadow-lift);
}

.hero-actions .btn {
  min-width: 190px;
}

/* Legal page headers */
.legal-header .hero-subtitle {
  max-width: 46ch;
  margin: 0.75rem auto 0;
  text-align: center;
}

.contact-header .hero-subtitle {
  max-width: 46ch;
  margin: 0.75rem auto 0;
  text-align: center;
}

.form-header .hero-subtitle {
  max-width: 46ch;
  margin: 0.75rem auto 0;
  text-align: center;
}

/* Bento Grids */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.feature-card {
  min-height: 240px;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.2px;
}

.feature-card p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.7;
}


.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(179, 84, 46, 0.12);
  color: var(--text-white);
  border: 1px solid rgba(179, 84, 46, 0.2);
  margin-bottom: 0;
  font-size: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.feature-card--pro {
  border-color: rgba(179, 84, 46, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 236, 226, 0.9));
}

.feature-icon--pro {
  background: rgba(179, 84, 46, 0.18);
  border-color: rgba(179, 84, 46, 0.35);
  color: var(--accent-red);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.case-card ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.case-card li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
}

.case-card li::before {
  content: '*';
  position: absolute;
  left: 0;
  color: var(--accent-red);
}

.pricing-grid {
  gap: 1.5rem;
}

.price-card {
  border: 1px solid rgba(23, 20, 15, 0.1);
}

.price-card.pro {
  border-color: rgba(179, 84, 46, 0.4);
  transform: translateY(-10px);
}

.price-card.pro::before {
  background: var(--accent-red);
}

.comparison-table-wrapper {
  border-radius: var(--radius-md);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.faq-item h4 {
  margin-bottom: 0.5rem;
}

.footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 242, 236, 0.98));
}

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(179, 84, 46, 0.6);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    min-width: unset;
  }

  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card.pro {
    transform: none;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .cases-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}
