/* =====================================================
   PatientFlow Corporate Website Styles
   ===================================================== */

/* CSS Custom Properties */
:root {
  --color-primary-blue: #0030ff;
  --color-primary-orange: #ff6b00;
  --color-gradient-start: #0030ff;
  --color-gradient-mid: #a65658;
  --color-gradient-end: #ff6b00;
  --color-text: #1a1a2e;
  --color-text-light: #4a4a6a;
  --color-text-muted: #6b6b8a;
  --color-background: #ffffff;
  --color-background-alt: #f8f9ff;
  --color-border: #e5e7f0;
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max-width: 1200px;
  --header-height: 80px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 48, 255, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 48, 255, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 48, 255, 0.15);
  --transition: 0.3s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary-blue), var(--color-primary-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-blue), #4040ff);
  color: white;
  border-color: var(--color-primary-blue);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0020dd, #3030ee);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary-blue);
  border-color: var(--color-primary-blue);
}

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

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

.btn-orange:hover {
  background: #ff8533;
  border-color: #ff8533;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary-blue);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary-blue);
  background: rgba(0, 48, 255, 0.05);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.125rem;
}

.btn-nav {
  padding: 8px 16px;
  font-size: 0.875rem;
  background: linear-gradient(135deg, var(--color-primary-orange), #ff8533);
  color: white !important;
  border-color: transparent;
  border-radius: 50px;
}

.btn-nav:hover {
  background: linear-gradient(135deg, #ff8533, var(--color-primary-orange));
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =====================================================
   Header & Navigation
   ===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--color-primary-blue);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
  padding: calc(var(--header-height) + 80px) 0 100px;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff 50%, #fff9f5 100%);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero & Dashboard Images */
.hero-img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 0;
  box-shadow:
    0 25px 50px -12px rgba(0, 48, 255, 0.25),
    0 0 0 1px rgba(0, 48, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  /* Prefijos para compatibilidad */
  -webkit-transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  -moz-transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  -ms-transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  -webkit-transition: transform 0.4s ease, box-shadow 0.4s ease;
  -moz-transition: transform 0.4s ease, box-shadow 0.4s ease;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-img:hover {
  -webkit-transform: perspective(1000px) rotateY(-4deg) rotateX(1deg) translateY(-8px) scale(1.02);
  -moz-transform: perspective(1000px) rotateY(-4deg) rotateX(1deg) translateY(-8px) scale(1.02);
  -ms-transform: perspective(1000px) rotateY(-4deg) rotateX(1deg) translateY(-8px) scale(1.02);
  transform: perspective(1000px) rotateY(-4deg) rotateX(1deg) translateY(-8px) scale(1.02);
  box-shadow:
    0 35px 60px -15px rgba(0, 48, 255, 0.3),
    0 0 0 1px rgba(0, 48, 255, 0.15);
}

.dashboard-stack {
  position: relative;
  max-width: 900px;
  margin: 140px auto 0;
  height: 500px;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
}

.dashboard-img {
  position: absolute;
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 0;
  box-shadow:
    0 30px 60px -15px rgba(0, 48, 255, 0.3),
    0 0 0 1px rgba(0, 48, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  -webkit-transition: transform 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease;
  -moz-transition: transform 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease;
  transition: transform 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease;
  cursor: pointer;
}

.dashboard-img-back {
  -webkit-transform: rotate(-8deg) translateX(-280px) translateY(20px);
  -moz-transform: rotate(-8deg) translateX(-280px) translateY(20px);
  -ms-transform: rotate(-8deg) translateX(-280px) translateY(20px);
  transform: rotate(-8deg) translateX(-280px) translateY(20px);
  z-index: 1;
}

.dashboard-img-middle {
  -webkit-transform: translateY(-20px);
  -moz-transform: translateY(-20px);
  -ms-transform: translateY(-20px);
  transform: translateY(-20px);
  z-index: 2;
}

.dashboard-img-front {
  -webkit-transform: rotate(8deg) translateX(280px) translateY(20px);
  -moz-transform: rotate(8deg) translateX(280px) translateY(20px);
  -ms-transform: rotate(8deg) translateX(280px) translateY(20px);
  transform: rotate(8deg) translateX(280px) translateY(20px);
  z-index: 3;
}

.dashboard-img:hover {
  z-index: 10;
  box-shadow:
    0 40px 80px -20px rgba(0, 48, 255, 0.4),
    0 0 0 2px rgba(0, 48, 255, 0.2);
}

/* Fallback para navegadores que no soportan transforms */
@supports not (transform: rotate(8deg)) {
  .dashboard-img-back,
  .dashboard-img-middle {
    display: none;
  }
  .dashboard-img-front {
    position: relative;
    max-width: 900px;
  }
}

/* =====================================================
   Problem Section
   ===================================================== */
.problem {
  padding: 100px 0;
  background: var(--color-background);
}

.problem .section-subtitle {
  max-width: 800px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.problem-card {
  padding: 32px;
  background: var(--color-background-alt);
  border-radius: var(--border-radius);
  text-align: center;
  transition: all var(--transition);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problem-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 48, 255, 0.1), rgba(255, 107, 0, 0.1));
  border-radius: 50%;
}

.problem-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary-blue);
}

.problem-card h3 {
  margin-bottom: 12px;
  color: var(--color-text);
}

.problem-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

/* =====================================================
   Solution Section
   ===================================================== */
.solution {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-primary-blue) 0%, #4040dd 100%);
  color: white;
}

.solution .section-title,
.solution .section-subtitle {
  color: white;
}

.solution .section-title .gradient-text {
  background: linear-gradient(135deg, #ffffff, var(--color-primary-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.solution .section-subtitle {
  opacity: 0.9;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.solution-card {
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.solution-number {
  font-size: 3rem;
  font-weight: 700;
  opacity: 0.3;
  margin-bottom: 16px;
}

.solution-card h3 {
  color: white;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.solution-card p {
  opacity: 0.9;
  line-height: 1.7;
}

/* =====================================================
   Features Section
   ===================================================== */
.features {
  padding: 100px 0;
  background: var(--color-background-alt);
}

.features .section-subtitle {
  max-width: 100%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 32px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-blue), #4040ff);
  border-radius: var(--border-radius-sm);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}


/* =====================================================
   Pricing Section
   ===================================================== */
.pricing {
  padding: 100px 0;
  background: var(--color-background-alt);
}

.pricing-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px;
  background: white;
  border-radius: var(--border-radius);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.pricing-single-left {
  text-align: center;
  padding-right: 40px;
  border-right: 1px solid var(--color-border);
}

.pricing-label {
  font-size: 1rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.pricing-price {
  margin-bottom: 16px;
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.price-period {
  font-size: 1.25rem;
  color: var(--color-text-muted);
}

.pricing-note {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.pricing-single-left .btn {
  width: 100%;
}

.pricing-no-cc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

.pricing-single-right h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--color-text);
}

.pricing-features {
  list-style: none;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--color-text-light);
}

.pricing-features svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

/* =====================================================
   How It Works Section
   ===================================================== */
.how-it-works {
  padding: 100px 0;
  background: var(--color-background);
}

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
}

.step-card {
  flex: 0 0 280px;
  padding: 40px 32px;
  text-align: center;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-blue), var(--color-primary-orange));
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
}

.step-card h3 {
  margin-bottom: 12px;
}

.step-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary-blue), var(--color-primary-orange));
}

.dashboard-preview {
  max-width: 900px;
  margin: 0 auto;
}

/* =====================================================
   Trust Section
   ===================================================== */
.trust {
  padding: 60px 0;
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-badge svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-primary-blue);
}

.trust-badge div {
  display: flex;
  flex-direction: column;
}

.trust-badge strong {
  font-size: 0.9375rem;
  color: var(--color-text);
}

.trust-badge span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* =====================================================
   CTA Section
   ===================================================== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--color-primary-blue) 0%, #4040dd 100%);
  color: white;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-content > p {
  opacity: 0.9;
  margin-bottom: 40px;
  font-size: 1.125rem;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.contact-form-single-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

.contact-form input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-family);
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  transition: border-color var(--transition);
  color: var(--color-text);
}

.contact-form input:focus {
  outline: none;
  border-color: var(--color-primary-blue);
}

.contact-form input::placeholder {
  color: var(--color-text-muted);
}

.contact-form input:invalid:not(:placeholder-shown) {
  border-color: #e53e3e;
}

.contact-form input:valid:not(:placeholder-shown) {
  border-color: #38a169;
}

.contact-form .btn {
  width: 100%;
  margin-top: 8px;
}

.form-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.form-privacy {
  margin-top: 16px;
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: center;
}

.form-privacy a {
  color: var(--color-primary-blue);
  text-decoration: underline;
  transition: color var(--transition);
}

.form-privacy a:hover {
  color: var(--color-primary-orange);
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9375rem;
  text-align: center;
}

.form-message-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-success {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.form-success-icon {
  margin-bottom: 20px;
}

.form-success-icon svg {
  width: 64px;
  height: 64px;
  color: #38a169;
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--color-text-light);
  font-size: 1rem;
}

/* =====================================================
   Legal Pages (Terms, Privacy, etc.)
   ===================================================== */
.legal-page {
  padding: 140px 0 80px;
  background: var(--color-background);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.legal-date {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content p {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
  background: var(--color-text);
  color: white;
  padding-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 120px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 60px;
  justify-content: flex-start;
}

.footer-column h4 {
  color: white;
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding: 24px 0;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  text-align: center;
}

/* =====================================================
   Responsive Styles
   ===================================================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid .feature-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links .btn-nav {
    width: 100%;
    text-align: center;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: calc(var(--header-height) + 40px) 0 60px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-img {
    -webkit-transform: none;
    -moz-transform: none;
    -ms-transform: none;
    transform: none;
  }

  .hero-img:hover {
    -webkit-transform: translateY(-8px) scale(1.02);
    -moz-transform: translateY(-8px) scale(1.02);
    -ms-transform: translateY(-8px) scale(1.02);
    transform: translateY(-8px) scale(1.02);
  }

  .problem-grid,
  .solution-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-single {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px;
  }

  .pricing-single-left {
    padding-right: 0;
    padding-bottom: 32px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .price-amount {
    font-size: 2.75rem;
  }

  .steps-grid {
    flex-direction: column;
    gap: 24px;
  }

  .step-connector {
    width: 2px;
    height: 40px;
  }

  .step-card {
    flex: none;
    width: 100%;
    max-width: 320px;
  }

  /* Dashboard stack mobile - mostrar solo una imagen */
  .dashboard-stack {
    height: auto;
    margin: 60px auto 0;
  }

  .dashboard-img {
    position: relative;
    max-width: 100%;
    -webkit-transform: none;
    -moz-transform: none;
    -ms-transform: none;
    transform: none;
  }

  .dashboard-img-back,
  .dashboard-img-middle {
    display: none;
  }

  .dashboard-img-front {
    -webkit-transform: none;
    -moz-transform: none;
    -ms-transform: none;
    transform: none;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand {
    max-width: none;
    text-align: center;
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links {
    justify-content: center;
    text-align: center;
    gap: 40px;
  }

  section {
    padding: 40px 0;
  }

  .problem,
  .solution,
  .features,
  .pricing,
  .how-it-works,
  .cta-section {
    padding: 50px 0;
  }

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .btn {
    padding: 12px 24px;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .pricing-single {
    padding: 24px;
  }

  .price-amount {
    font-size: 2rem;
  }
}

/* =====================================================
   Animations
   ===================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text,
.hero-image {
  animation: fadeInUp 0.6s ease forwards;
}

.hero-image {
  animation-delay: 0.2s;
}

/* Intersection Observer animations */
.problem-card,
.solution-card,
.feature-card,
.pricing-single,
.step-card,
.trust-badge {
  opacity: 0;
  -webkit-transform: translateY(30px);
  -moz-transform: translateY(30px);
  -ms-transform: translateY(30px);
  transform: translateY(30px);
  -webkit-transition: opacity 0.6s ease, transform 0.6s ease;
  -moz-transition: opacity 0.6s ease, transform 0.6s ease;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.problem-card.animate-in,
.solution-card.animate-in,
.feature-card.animate-in,
.pricing-single.animate-in,
.step-card.animate-in,
.trust-badge.animate-in {
  opacity: 1;
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
}

/* Staggered animation delays */
.problem-card:nth-child(1), .feature-card:nth-child(1) { transition-delay: 0s; }
.problem-card:nth-child(2), .feature-card:nth-child(2) { transition-delay: 0.1s; }
.problem-card:nth-child(3), .feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }
.feature-card:nth-child(5) { transition-delay: 0.4s; }
.feature-card:nth-child(6) { transition-delay: 0.5s; }

/* Fallback for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .problem-card,
  .solution-card,
  .feature-card,
  .pricing-single,
  .step-card,
  .trust-badge {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }
}
