/* Fundación Home - Renovax-inspired theme */
:root {
  --forest: #2d4739;
  --forest-dark: #1e3128;
  --sage: #d1d5c9;
  --sage-light: #e8ebe3;
  --cream: #f7f5f0;
  --charcoal: #2c2c2c;
  --gold: #c4a962;
  --white: #ffffff;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(45, 71, 57, 0.12);
  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--forest);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--forest-dark);
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.container-narrow {
  width: min(900px, 92vw);
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

.btn-primary:hover {
  background: var(--forest-dark);
  border-color: var(--forest-dark);
  color: var(--white);
}

.btn-sage {
  background: var(--sage);
  color: var(--forest-dark);
  border-color: var(--sage);
}

.btn-sage:hover {
  background: #bdc4b3;
  color: var(--forest-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--forest);
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
}

.site-header.scrolled,
.site-header.inner-header {
  position: sticky;
  background: rgba(247, 245, 240, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.site-header .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img,
.logo svg.logo-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.site-header.scrolled .logo-text,
.site-header.inner-header .logo-text {
  color: var(--forest-dark);
}

.logo-tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--forest);
  transition: var(--transition);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.site-header.scrolled .main-nav a,
.site-header.inner-header .main-nav a {
  color: var(--charcoal);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
}

.nav-cta {
  margin-left: 0.5rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7.5rem 0 12rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(30, 49, 40, 0.88), rgba(45, 71, 57, 0.72)),
    url("../images/photos/pexels-1571460.jpeg") center center / cover no-repeat;
}

.hero > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: 360px;
}

.hero-content {
  max-width: 680px;
  color: var(--white);
}

.hero-content h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 2rem;
}

.hero-glass-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.5rem;
  z-index: 2;
  pointer-events: none;
}

.hero-glass-wrap .hero-glass {
  pointer-events: auto;
}

.hero-glass {
  width: 100%;
  padding: 1.5rem 2rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem 1.25rem;
  align-items: end;
}

.hero-glass .form-group {
  margin-bottom: 0;
}

.hero-glass .form-group label {
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.hero-glass .field-error {
  color: #ffd5d5;
  font-size: 12px;
}

.hero-glass .btn {
  align-self: end;
  white-space: nowrap;
  min-height: 46px;
}

.hero-glass label {
  display: block;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.hero-glass input,
.hero-glass select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 15px;
}

/* Ticker */
.ticker {
  background: var(--sage);
  padding: 14px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}

.ticker-track span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--forest-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section utilities */
.section {
  padding: 5rem 0;
}

.section-sage {
  background: var(--sage-light);
}

.section-forest {
  background: var(--forest);
  color: var(--white);
}

.section-forest h2,
.section-forest h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-header p {
  margin-top: 1rem;
  color: #555;
}

.section-forest .section-header p {
  color: rgba(255, 255, 255, 0.85);
}

/* About split */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-images {
  position: relative;
  min-height: 420px;
}

.about-images .img-main {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 85%;
}

.about-images .img-overlap {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  border-radius: var(--radius-lg);
  border: 6px solid var(--cream);
  box-shadow: var(--shadow);
}

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  text-align: center;
}

.why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--forest);
}

/* Cards */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card .card-body {
  padding: 1.5rem;
}

.process-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  text-align: center;
}

.process-icons .step {
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
}

.process-icons .step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  background: var(--forest);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* Testimonials */
.testimonial-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.testimonial-card .quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.testimonial-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

/* Before after */
.ba-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ba-wrap img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.ba-label {
  text-align: center;
  padding: 0.75rem;
  font-weight: 600;
  background: var(--white);
}

/* Projects */
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.project-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem;
  background: linear-gradient(transparent, rgba(30, 49, 40, 0.95));
  color: var(--white);
}

.project-card .overlay h3 {
  color: var(--white);
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 0.5rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 0;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--forest-dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: #555;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 1rem;
}

/* Page hero inner */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--forest-dark), var(--forest));
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.breadcrumb {
  margin-top: 1rem;
  font-size: 14px;
  opacity: 0.9;
}

.breadcrumb a {
  color: var(--sage);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card .info {
  padding: 1.25rem;
}

.team-card .role {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}

.price-card.featured {
  border-color: var(--forest);
  transform: scale(1.03);
}

.price-card h3 {
  margin-bottom: 0.5rem;
}

.price-card .amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--forest);
  font-family: var(--font-heading);
}

.price-card ul {
  list-style: none;
  margin: 1.5rem 0;
}

.price-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.price-card li::before {
  content: "✓";
  color: var(--forest);
  margin-right: 0.5rem;
  font-weight: 700;
}

/* Forms */
.form-section {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 0.4rem;
  color: var(--forest-dark);
}

.form-group label .required {
  color: #c0392b;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(45, 71, 57, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #c0392b;
}

.field-error {
  color: #c0392b;
  font-size: 13px;
  margin-top: 0.35rem;
  display: none;
}

.form-group.error .field-error,
.checkbox-group.error .field-error {
  display: block;
}

/* Checkbox alignment */
.checkbox-group {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  column-gap: 0.75rem;
  row-gap: 0.35rem;
  align-items: start;
  margin-bottom: 1.25rem;
  max-width: 100%;
}

.checkbox-group input[type="checkbox"] {
  grid-column: 1;
  grid-row: 1;
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  margin: 0.2rem 0 0;
  accent-color: var(--forest);
  cursor: pointer;
  flex-shrink: 0;
  align-self: start;
}

.checkbox-group label {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.checkbox-group .field-error {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  padding-left: calc(1.25rem + 0.75rem);
}

.form-success {
  display: none;
  padding: 1.5rem;
  background: var(--sage-light);
  border: 2px solid var(--forest);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  color: var(--forest-dark);
  margin-top: 1rem;
}

.form-success.visible {
  display: block;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
}

.contact-info-block {
  padding: 2rem;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-lg);
}

.contact-info-block h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.contact-info-block p {
  opacity: 0.9;
  margin-bottom: 1rem;
}

/* Legal content */
.legal-content {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  margin-bottom: 1rem;
  color: #444;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: var(--forest-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.site-footer .logo-text {
  color: var(--white);
}

.footer-about p {
  margin: 1rem 0 1.5rem;
  font-size: 14px;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.social-links a:hover {
  background: var(--gold);
  color: var(--forest-dark);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
  margin-left: 1rem;
}

.footer-legal-inline a:first-child {
  margin-left: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--forest);
}

/* Two col content */
.content-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.content-block img {
  border-radius: var(--radius-lg);
}

/* Responsive */
@media (max-width: 1024px) {
  .why-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid-3,
  .pricing-grid,
  .testimonial-slider {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-bottom: 3rem;
    min-height: auto;
  }

  .hero-inner {
    min-height: 0;
    padding-bottom: 1rem;
  }

  .hero-glass-wrap {
    position: relative;
    bottom: auto;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
  }

  .hero-glass {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hero-glass .btn {
    width: 100%;
    align-self: stretch;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--cream);
    padding: 5rem 1.5rem 2rem;
    transition: right var(--transition);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav a {
    color: var(--charcoal);
    padding: 0.75rem 0;
  }

  .about-grid,
  .faq-layout,
  .contact-layout,
  .content-two-col,
  .ba-wrap,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .why-grid,
  .process-icons,
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}