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

:root {
  --primary: #0088cc;
  --primary-dark: #006699;
  --secondary: #2ea6dd;
  --success: #4caf50;
  --gradient: linear-gradient(135deg, #0088cc 0%, #2ea6dd 100%);
  --font-title: "Poppins", sans-serif;
  --font-text: "Inter", sans-serif;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 30px rgba(0, 136, 204, 0.15);
  --color-bg-light: #f5f7fa;
  --color-bg-white: #ffffff;
  --color-text-dark: #333;
  --color-text-light: #666;
  --color-border-light: #e9eef2;
  --color-dark-original: #1a1a2e;
  --color-phone-bg: #f0f2f5;
  --color-badge-bg: white;
  --color-icon-bg: linear-gradient(135deg, #f0f2f5 0%, #dde4eb 100%);
  --color-modal-bg: rgba(0, 0, 0, 0.6);
  --color-bg-dark: #1a202c;
  --color-bg-card: #2d3748;
  --color-text-white: #f5f7fa;
  --color-text-grey: #a0aec0;
  --color-border-dark: #4a5568;
  --color-dark-footer: #171923;
  --bg: var(--color-bg-light);
  --bg-card: var(--color-bg-white);
  --text-mapped: var(--color-text-dark);
  --text-soft-mapped: var(--color-text-light);
  --border-mapped: var(--color-border-light);
  --shadow-mapped: var(--shadow-soft);
  --dark-mapped: var(--color-dark-original);
  --bg-phone: var(--color-phone-bg);
  --bg-badge: var(--color-badge-bg);
  --icon-bg: var(--color-icon-bg);
  --modal-bg: var(--color-modal-bg);
}

[data-theme="dark"] {
  --bg: var(--color-bg-dark);
  --bg-card: var(--color-bg-card);
  --text-mapped: var(--color-text-white);
  --text-soft-mapped: var(--color-text-grey);
  --border-mapped: var(--color-border-dark);
  --shadow-mapped: 0 4px 12px rgba(0, 0, 0, 0.2);
  --dark-mapped: var(--color-dark-footer);
  --bg-phone: var(--color-text-dark);
  --bg-badge: var(--color-bg-card);
  --icon-bg: linear-gradient(135deg, #333 0%, #222 100%);
  --modal-bg: rgba(30, 30, 30, 0.8);
}

body {
  font-family: var(--font-text);
  line-height: 1.6;
  color: var(--text-mapped);
  background: var(--bg);
  transition: background 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
  font-family: var(--font-title);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: var(--bg-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-mapped);
  transition: background 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-mapped);
  text-decoration: none;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-mapped);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1.05rem;
}

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

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>')
    no-repeat bottom;
  background-size: cover;
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero {
  background: var(--gradient);
  color: white;
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.hero-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 4rem;
  align-items: center;
}

.hero-text-side h1 {
  font-size: 3.3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-text-side h2 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 90%;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-visual-side {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  height: 500px;
  background: var(--bg-card);
  border-radius: 40px;
  border: 8px solid var(--dark-mapped);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transform: rotate(-5deg);
  transition: transform 0.3s ease, background 0.3s ease, border 0.3s ease;
}

.phone-mockup:hover {
  transform: rotate(0deg) translateY(-10px);
}

.phone-screen {
  background: var(--bg-phone);
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
}

.app-header {
  background: var(--primary);
  padding: 20px;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}
.app-title {
  font-weight: bold;
  font-size: 0.9rem;
}
.app-subs {
  font-size: 0.7rem;
  opacity: 0.8;
}

.growth-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 30px 20px 100px;
}
.chart-bar {
  width: 30px;
  background: var(--secondary);
  border-radius: 5px 5px 0 0;
  animation: growBar 1.5s ease-out forwards;
  box-shadow: 0 5px 15px rgba(46, 166, 221, 0.4);
}
.bar-1 {
  height: 0%;
  animation-delay: 0.1s;
  --h: 30%;
}
.bar-2 {
  height: 0%;
  animation-delay: 0.2s;
  --h: 45%;
}
.bar-3 {
  height: 0%;
  animation-delay: 0.3s;
  --h: 40%;
}
.bar-4 {
  height: 0%;
  animation-delay: 0.4s;
  --h: 65%;
}
.bar-5 {
  height: 0%;
  background: var(--success);
  animation-delay: 0.5s;
  --h: 85%;
}

@keyframes growBar {
  to {
    height: var(--h);
  }
}

.new-subs-badge {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-badge);
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: var(--success);
  font-weight: bold;
  animation: floatBadge 3s infinite ease-in-out;
  transition: background 0.3s ease;
}
@keyframes floatBadge {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-text-side {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-visual-side {
    order: 1;
  }
  .hero-text-side h1 {
    font-size: 2.5rem;
  }
  .hero-text-side h2 {
    margin: 0 auto 2rem;
  }
  .phone-mockup {
    transform: rotate(0deg);
  }
  .calculator-wrapper {
    padding: 2rem 1rem;
    grid-template-columns: 1fr;
  }
  .calculator-results {
    margin-top: 1rem;
  }
}

.hero-text {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease-out;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .cta-button {
  background: var(--color-bg-light);
  color: var(--primary);
}
[data-theme="light"] .hero .cta-button {
  background: white;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  color: var(--primary-dark);
}

.features {
  padding: 5rem 0;
  background: var(--bg-card);
  transition: background 0.3s ease;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-mapped);
}
.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: -2rem auto 3rem;
  color: var(--text-soft-mapped);
  font-size: 1.1rem;
}

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

.feature-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s,
    background 0.3s ease;
  border: 1px solid var(--border-mapped);
  box-shadow: var(--shadow-mapped);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.feature-icon {
  background: var(--icon-bg);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: background 0.3s ease;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
.feature-card p {
  color: var(--text-soft-mapped);
}

.feature-card.centered-content {
  text-align: center;
}
.feature-card.centered-content ul {
  text-align: left;
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--text-soft-mapped);
}
.feature-card.centered-content .cta-button {
  margin: 2rem auto 0;
  display: inline-flex;
}

.process {
  padding: 5rem 0;
  background: var(--bg);
  transition: background 0.3s ease;
}

.process-steps {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-mapped);
  border: 1px solid var(--border-mapped);
  transition: background 0.3s ease;
}

.step-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.step-content p {
  color: var(--text-soft-mapped);
  line-height: 1.8;
}

.testimonials {
  padding: 5rem 0;
  background: var(--bg);
  transition: background 0.3s ease;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-mapped);
  border-top: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-soft-mapped);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-stars {
  font-size: 1.25rem;
  color: #ffc107;
  margin-bottom: 1rem;
}

.testimonial-author {
  background: none;
  padding: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: var(--font-title);
  flex-shrink: 0;
}

.testimonial-author-info strong {
  color: var(--text-mapped);
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
}

.testimonial-author-info span {
  color: var(--primary);
  font-size: 0.9rem;
  display: block;
}

.contact {
  padding: 5rem 0;
  background: var(--bg-card);
  text-align: center;
  transition: background 0.3s ease;
}

.contact-box {
  background: var(--gradient);
  color: white;
  padding: 3rem;
  border-radius: 20px;
  max-width: 600px;
  margin: 2rem auto;
}
.contact-box h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.contact-box p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

footer {
  background: var(--dark-mapped);
  color: var(--text-soft-mapped);
  padding: 3rem 0 1rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-section h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}
.footer-section p {
  color: #aaa;
}
.footer-section a {
  color: #aaa;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
}
[data-theme="dark"] .footer-bottom {
  border-top: 1px solid var(--border-mapped);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.legal-content {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  transition: background 0.3s ease;
}
.legal-content h1 {
  color: var(--primary);
}
.legal-content h2 {
  color: var(--primary);
  border-bottom: 2px solid var(--bg);
}
.legal-content h3 {
  color: var(--text-mapped);
}
.legal-content p {
  margin-bottom: 1rem;
  color: var(--text-soft-mapped);
}
.legal-content ul {
  margin: 1rem 0 1.5rem 2rem;
  color: var(--text-soft-mapped);
}
.legal-content li {
  margin-bottom: 0.8rem;
}
.legal-content code {
  background: var(--bg);
  padding: 2px 6px;
  font-family: "Courier New", monospace;
  color: var(--primary);
}
.highlight-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
}
.highlight-box strong {
  color: #856404;
}
.security-box {
  background: #d4edda;
  border-left: 4px solid #28a745;
}
.security-box strong {
  color: #155724;
}
.important-section {
  background: var(--bg);
  border: 2px solid var(--primary);
}
[data-theme="dark"] .highlight-box {
  background: #332700;
  color: #fff3cd;
}
[data-theme="dark"] .highlight-box strong {
  color: #ffc107;
}
[data-theme="dark"] .security-box {
  background: #0c2a12;
  color: #d4edda;
}
[data-theme="dark"] .security-box strong {
  color: #28a745;
}
[data-theme="dark"] .important-section {
  background: var(--color-bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
}
.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--bg);
}
.data-table th {
  background: var(--bg);
  color: var(--primary);
  font-weight: 600;
}
.data-table tr:hover {
  background: var(--bg);
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  background: var(--bg);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}
[data-theme="dark"] .calculator-wrapper {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group,
.form-group-fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: opacity 0.3s ease;
  border: none;
  padding: 0;
  margin: 0;
}
.form-group-fieldset:disabled {
  opacity: 0.4;
  pointer-events: none;
}
.form-group-fieldset legend {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-mapped);
  padding: 0;
  margin-bottom: 0.75rem;
}
.form-group label {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-mapped);
}

.form-group input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
}
[data-theme="dark"] .form-group input[type="range"] {
  background: #444;
}
.form-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--primary);
  cursor: pointer;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.form-group input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--primary);
  cursor: pointer;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.form-group select {
  padding: 0.8rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-mapped);
  background: var(--bg-card);
  color: var(--text-mapped);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.radio-group input[type="radio"] {
  display: none;
}
.radio-label {
  padding: 0.8rem 1.2rem;
  border: 2px solid var(--border-mapped);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-soft-mapped);
}
.radio-group input[type="radio"]:checked + .radio-label {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.checkbox-group {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-mapped);
}
.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
}
.checkbox-group label {
  font-size: 1.1rem;
  color: var(--primary-dark);
}
.checkbox-group small {
  display: block;
  margin-left: 28px;
  color: var(--text-soft-mapped);
}

.calculator-results {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-mapped);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border-mapped);
  transition: background 0.3s ease;
}
.calculator-results h3 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.calculator-results p {
  color: var(--text-soft-mapped);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.price-display {
  background: var(--gradient);
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.price-display span {
  font-size: 2.8rem;
  font-weight: 700;
  display: block;
}
.price-details small {
  font-size: 1rem;
  color: var(--text-mapped);
}
.price-details b {
  color: var(--primary);
}

.hamburger-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1010;
}
.hamburger-button svg {
  width: 32px;
  height: 32px;
  color: var(--text-mapped);
}

.cta-button svg {
  width: 1.2rem;
  height: 1.2rem;
}

@media (min-width: 769px) {
  .process-steps {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
    position: relative;
  }
  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    position: relative;
  }
  .step-content {
    width: 100%;
  }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 40px;
    left: calc(50% + 55px);
    width: calc(100% - 110px);
    height: 3px;
    background-color: var(--primary);
    opacity: 0.3;
    z-index: -1;
  }
}

.faq-section {
  padding: 5rem 0;
  background: var(--bg-card);
  transition: background 0.3s ease;
}
.faq-accordion {
  max-width: 800px;
  margin: 2rem auto 0;
  border-top: 1px solid var(--border-mapped);
}
.faq-item {
  border-bottom: 1px solid var(--border-mapped);
}
.faq-question {
  background: none;
  border: none;
  width: 100%;
  padding: 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--text-mapped);
  text-align: left;
}
.faq-question:hover {
  color: var(--primary);
}
.faq-question span {
  padding-right: 1rem;
}
.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer p {
  padding: 0 1rem 1.5rem 1rem;
  color: var(--text-soft-mapped);
  line-height: 1.8;
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding-top: 0;
}
.faq-item.active .faq-question {
  color: var(--primary);
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.form-control-text {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-mapped);
  background: var(--bg);
  width: 100%;
  font-family: var(--font-text);
  transition: all 0.2s ease;
  color: var(--text-mapped);
}
.form-control-text:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.2);
}

#submit-message.success {
  color: var(--success);
  font-weight: 500;
}
#submit-message.error {
  color: #e74c3c;
  font-weight: 500;
}
#submit-button:disabled {
  background: var(--text-light);
  cursor: not-allowed;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-bg);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 2000;
  padding: 3rem 1rem;
  overflow-y: auto;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: modal-fade-in 0.3s ease;
  transition: background 0.3s ease;
}
@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--text-soft-mapped);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover {
  color: var(--text-mapped);
}
.modal-content h3 {
  font-family: var(--font-title);
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 1.8rem;
}
.modal-content p {
  color: var(--text-soft-mapped);
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}
input:checked + .slider {
  background-color: var(--primary);
}
input:checked + .slider:before {
  transform: translateX(24px);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

.horas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero h2 {
    font-size: 1.4rem;
  }
  .step {
    grid-template-columns: 1fr;
  }
  .step-number {
    margin: 0 auto;
  }
  .radio-group {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  .radio-label {
    text-align: center;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }
  .nav-links a {
    font-size: 2rem;
    font-family: var(--font-title);
    color: var(--text-mapped);
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .calculator-wrapper {
    padding: 2rem 1rem;
    grid-template-columns: 1fr;
  }
  .calculator-results {
    padding: 1.5rem;
  }
  .price-display span {
    font-size: 2.2rem;
  }
  .horas-grid {
    grid-template-columns: 1fr;
  }
  .nav-right-group {
    gap: 1rem;
  }
  .theme-switch-wrapper {
    margin-left: 0;
  }
  [data-theme="dark"] .nav-links {
    background: var(--bg-card);
  }
}

.step-content p a,
.feature-card li a,
.legal-content p a,
.legal-content li a,
.calculator-results p a,
.modal-content p a,
.modal-rules a,
.modal-terms-check label a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.step-content p a:hover,
.feature-card li a:hover,
.legal-content p a:hover,
.legal-content li a:hover,
.calculator-results p a:hover,
.modal-content p a:hover,
.modal-rules a:hover,
.modal-terms-check label a:hover {
  color: var(--primary-dark);
}

.modal-rules {
  background: var(--bg);
  border: 1px solid var(--border-mapped);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.modal-rules strong {
  color: var(--text-mapped);
}
.modal-rules p {
  font-size: 0.9rem;
  color: var(--text-soft-mapped);
  margin-bottom: 0.5rem;
}
.modal-rules ul {
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-soft-mapped);
}
.modal-rules li {
  margin-bottom: 5px;
}
.modal-rules a {
  color: var(--primary);
  text-decoration: underline;
}

.modal-terms-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.modal-terms-check input[type="checkbox"] {
  transform: scale(1.2);
}
.modal-terms-check label {
  font-size: 0.9rem;
  color: var(--text-soft-mapped);
  cursor: pointer;
}

#modal-submit-button:disabled,
#gratis-submit-button:disabled {
  background: var(--color-text-grey);
  color: #fff;
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
[data-theme="light"] #modal-submit-button:disabled,
[data-theme="light"] #gratis-submit-button:disabled {
  background: #ccc;
  color: #888;
}
.legal-content {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--shadow-mapped);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  transition: background 0.3s ease;
}
.legal-content h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-mapped);
}
.important-section {
  background: var(--bg);
  border: 2px solid var(--primary);
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem 0;
}
.legal-content .last-updated {
  font-size: 0.9rem;
  color: var(--text-soft-mapped);
  margin: -1.5rem 0 2.5rem 0;
  text-align: center;
  font-style: italic;
}

.calculator-wrapper > * {
  min-width: 0;
}

.calculator-wrapper,
.calculator-form,
.calculator-results,
.form-group label,
.radio-label,
.checkbox-group,
.form-group select,
.price-display {
  overflow-wrap: break-word;
  word-break: break-word;
}

.radio-label,
.form-group label {
  white-space: normal;
  max-width: 100%;
  display: inline-block;
}

.radio-group .radio-label {
  max-width: 100%;
}

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