/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #6ab04c;
  --green-dark: #4a8a2c;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --purple-bg: #8b5cf6;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-light: #f8f9fa;
  --bg-warm: #faf8f5;
  --border: #e5e7eb;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-dark);
}

h1, h2, h3, h4 {
  line-height: 1.3;
  color: var(--text);
}

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--green);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--green);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-logo {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.site-logo span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.9;
}

.site-logo:hover {
  color: #fff;
  opacity: 0.95;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.nav-cta {
  background: #fff !important;
  color: var(--green) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.2rem !important;
}

.nav-cta:hover {
  background: #f0f0f0 !important;
  color: var(--green-dark) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--green);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    gap: 0.5rem;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    align-items: stretch;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav a {
    font-size: 1.05rem;
    padding: 0.75rem 1rem;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/fondomandala-2023.jpg') center/cover;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
  width: 100%;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  opacity: 0.95;
  margin-bottom: 0.75rem;
  font-weight: 300;
}

.hero .description {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(106,176,76,0.4);
}

.btn-white {
  background: #fff;
  color: var(--green);
}

.btn-white:hover {
  background: #f0f0f0;
  color: var(--green-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--green);
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
  color: var(--text);
}

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

/* ===== HELP CARDS (En que te ayudo) ===== */
.help-section {
  background: var(--bg-light);
}

.help-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.help-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.help-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.help-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.help-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--green);
}

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

/* ===== ABOUT PREVIEW ===== */
.about-preview {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background: var(--bg-light);
}

.services-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-card-image {
  height: 200px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
  transition: transform var(--transition);
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.service-card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.service-card-body .btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  background: linear-gradient(135deg, var(--purple-bg) 0%, var(--purple) 100%);
  color: #fff;
}

.testimonials-section .section-title {
  color: #fff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
  opacity: 0.95;
}

.testimonial-card .author {
  font-weight: 700;
  font-style: normal;
  font-size: 1rem;
  opacity: 1;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-detail .icon {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.contact-detail a,
.contact-detail span {
  color: var(--text);
  font-size: 0.95rem;
}

.contact-detail a:hover {
  color: var(--green);
}

.contact-map {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-map img {
  width: 100%;
}

/* Contact Form */
.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(106,176,76,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--green);
}

.form-checkbox label {
  font-size: 0.85rem;
  color: var(--text-light);
}

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

/* ===== FOOTER ===== */
.site-footer {
  background: #f5f5f5;
  border-top: 1px solid var(--border);
  padding: 2rem 0 1rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
}

.footer-copyright {
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.footer-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-badges img {
  height: 40px;
  width: auto;
}

.footer-kit-digital {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 1rem;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0;
}

/* ===== PAGE CONTENT ===== */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--green-dark);
}

.page-content h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.page-content ul,
.page-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.page-content table td,
.page-content table th {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-light);
}

.page-content table th,
.page-content table td:first-child {
  font-weight: 600;
  color: var(--text);
  background: var(--bg-light);
}

/* ===== SERVICE PAGE ===== */
.service-page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.service-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.service-page-text h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--green-dark);
}

.service-page-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.service-page-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-page-image img {
  width: 100%;
}

@media (max-width: 768px) {
  .service-page-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Pricing Box */
.pricing-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--green);
}

.pricing-box h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.pricing-box p,
.pricing-box li {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.pricing-box ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.pricing-box .price {
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
}

/* NCA Section */
.nca-section {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin: 2rem 0;
}

.nca-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--green-dark);
}

.nca-section p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.nca-section ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.nca-section li {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* ===== ABOUT PAGE ===== */
.about-page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.about-page-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-page-text p {
  color: var(--text-light);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.about-page-text p:first-of-type::first-letter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
  float: left;
  margin-right: 0.5rem;
  line-height: 1;
}

.about-page-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 5rem;
}

.about-cta {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.about-cta p {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.about-cta .subtitle-cta {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .about-page-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-page-image {
    position: static;
    max-width: 300px;
    margin: 0 auto;
  }

  .about-page-text p:first-of-type::first-letter {
    font-size: 2rem;
  }
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--purple-bg) 0%, var(--purple) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  section {
    padding: 3rem 0;
  }

  .hero {
    min-height: 400px;
  }

  .hero-content {
    padding: 3rem 1rem;
  }

  .help-cards {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-badges {
    flex-direction: column;
    gap: 1rem;
  }
}
