:root {
  --primary-color: #E53935;
  --primary-hover: #D32F2F;
  --text-color: #1F2937;
  --text-light: #6B7280;
  --bg-color: #FFFFFF;
  --bg-alt: #F9FAFB;
  --border-color: #E5E7EB;
  --white: #FFFFFF;
  --black: #000000;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 0.375rem;
  --container-width: 1200px;
  --header-height: 80px;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-stack);
  color: var(--text-color);
  line-height: 1.5;
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-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);
  white-space: nowrap;
  border-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover, .btn-outline:focus-visible {
  background-color: var(--bg-alt);
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
  letter-spacing: -0.025em;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--white); /* White background */
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-desktop {
  display: none;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--primary-color);
}

.nav-cta {
  background-color: var(--primary-color);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background-color: var(--primary-hover);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-color);
}

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transform: translateY(-150%);
  transition: transform 0.3s ease-in-out;
  z-index: 49;
  box-shadow: var(--shadow-md);
}

.mobile-nav.is-open {
  transform: translateY(0);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  border-left: 4px solid transparent;
}

.mobile-nav-link:hover {
  background-color: var(--bg-alt);
  border-left-color: var(--primary-color);
}

/* Hero */
.hero {
  padding: 8rem 0 6rem;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.95) 30%, rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0) 100%), url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 800px;
}

.hero-h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-bullets {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.bullet-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* About / Nosotros */
.about {
  background-color: var(--bg-alt);
}

.about-text {
  font-size: 1.25rem;
  max-width: 800px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.mini-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.mini-block {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.mini-block h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

/* Model (3 Cards) */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #fca5a5;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

.card-list {
  list-style: none;
}

.card-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
}

.card-list li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Infrastructure */
.infra-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.infra-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  background: white;
  padding: 1rem;
}

.infra-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.check-item {
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.check-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Brands */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.brand-item {
  background-color: var(--bg-alt);
  padding: 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Clients / Experience */
.experience-section {
  background-color: var(--bg-alt);
}

.services-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.tag {
  background-color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-color);
}

.clients-list {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* Recycling */
.recycling {
  border-top: 4px solid var(--primary-color);
  background: linear-gradient(to bottom, #fff5f5, #ffffff);
}

.recycling-process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.process-step {
  position: relative;
  padding-left: 2rem;
}

.process-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.recycling-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit {
  background: rgba(255,255,255,0.6);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(229, 57, 53, 0.1);
}

/* Final CTA */
.cta-final {
  text-align: center;
  background-color: #111827;
  color: var(--white);
}

.cta-final h2 {
  color: var(--white);
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem; /* Reduced gap for tighter look */
  align-items: stretch; /* Stretch to make equal height */
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-left {
  padding-right: 0; /* Removed padding since it's now a card */
}

/* Shared Card Style for both columns */
.contact-card {
  width: 100%;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg); /* Slightly reduced shadow for cleaner look */
  border: 1px solid var(--border-color);
  overflow: hidden; /* For image containing */
  display: flex;
  flex-direction: column;
}

/* Specifics for the form card */
#contact-form.contact-card {
  padding: 2.5rem;
  justify-content: center;
}

/* Specifics for the left info card */
.contact-left.contact-card {
  padding: 0;
}

.contact-hero-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin-bottom: 0;
  border-radius: 0; /* Reset radius since it's flush */
}

.contact-card-content {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.contact-hero-title {
  font-size: 1.75rem; /* Adjusted size */
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-color);
}

.contact-hero-text {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-details-minimal {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: auto; /* Push to bottom if space available */
}

.contact-detail-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon-circle {
  width: 42px; /* Slightly smaller */
  height: 42px;
  border-radius: 50%;
  background-color: rgba(229, 57, 53, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-content h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-detail-content p, .contact-detail-content a {
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: none;
}

.contact-detail-content a:hover {
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-feedback.success {
  display: block;
  background-color: #DEF7EC;
  color: #03543F;
  border: 1px solid #84E1BC;
}

.form-feedback.error {
  display: block;
  background-color: #FDE8E8;
  color: #9B1C1C;
  border: 1px solid #F8B4B4;
}

/* Footer */
.footer {
  background-color: #000000; /* Black footer */
  padding: 4rem 0 2rem;
  margin-top: 0;
  border-top: 1px solid #333;
  color: #9CA3AF;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.branding-col {
  max-width: 300px;
}

.footer-logo {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.footer-desc {
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-heading {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-links, .footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-contact-list a {
  color: #9CA3AF;
  text-decoration: none;
}

.footer-contact-list a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #6B7280;
}

/* Responsive Footer */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
  
  .footer-bottom {
    text-align: left;
    display: flex;
    justify-content: space-between;
  }
}

/* FAQ Widget */
.faq-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
}

.faq-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 99px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s;
}

.faq-btn:hover {
  transform: translateY(-2px);
  background-color: var(--primary-hover);
}

.faq-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 101;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.faq-modal[aria-hidden="false"] {
  display: flex;
}

.faq-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

.faq-details {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.faq-details summary {
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-details summary::-webkit-details-marker {
  display: none;
}

.faq-details summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--primary-color);
}

.faq-details[open] summary::after {
  content: "-";
}

.faq-details p {
  padding-bottom: 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-desktop {
    display: block;
  }
  .mobile-menu-btn {
    display: none;
  }
  .mini-blocks {
    grid-template-columns: 1fr 1fr;
  }
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .infra-content {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .recycling-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
  .recycling-process {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Ocultar fila de dirección en contacto */
.contact-detail-row:last-child {
  display: none;
}

/* Ocultar dirección en footer */
.footer-contact-list li:last-child {
  display: none;
}
