/* =============================================
   STYLES.CSS — CSS Unificado
   certificadoambiental.com
   Incluye: base, hero, formularios, artículo,
   FAQ, footer, responsive
   ============================================= */

:root {
  --primary: #00d084;
  --primary-dark: #00b874;
  --secondary: #0693e3;
  --dark: #0f172a;
  --accent: #f59e0b;
  --bg-soft: #f1f5f9;
  --white: #ffffff;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: #334155;
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- HEADER ---- */
header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: 0.3s ease;
}

.logo img { width: 220px; transition: 0.3s; }
.logo img:hover { transform: scale(1.02); }

nav ul { display: flex; list-style: none; gap: 20px; }
nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: 0.3s;
}
nav a:hover { color: var(--primary); }
nav a:hover::after { width: 100%; }

.menu-toggle { display: none; }

/* ---- HERO BASE ---- */
.hero {
  background:
    radial-gradient(circle at top right, rgba(0, 208, 132, 0.1), transparent 40%),
    radial-gradient(circle at bottom left, rgba(6, 147, 227, 0.08), transparent 40%),
    linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 80px 5%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  min-height: 85vh;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: var(--primary);
  filter: blur(150px);
  opacity: 0.05;
  z-index: 0;
}

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

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 25px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--dark) 20%, var(--primary) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 35px;
  color: #475569;
  max-width: 600px;
}

/* ---- FORMULARIO GLASSMORPHISM ---- */
.form-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.form-card h3 {
  margin-bottom: 25px;
  color: var(--dark);
  font-size: 1.6rem;
  text-align: center;
  letter-spacing: -0.5px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: #475569;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  font-size: 0.95rem;
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
  font-family: inherit;
}
.form-group textarea {
  min-height: 100px;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 208, 132, 0.1);
  background: white;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 18px;
  border: none;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.4s;
  box-shadow: 0 4px 15px rgba(0, 208, 132, 0.35);
  margin-top: 10px;
}
.btn-submit:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 25px rgba(0, 208, 132, 0.45);
}

/* ---- FAQ ACCORDION ---- */
.faq-section { padding: 100px 5%; background: linear-gradient(to bottom, #f8fafc, #ffffff); }
.faq-container { max-width: 900px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  margin-bottom: 18px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f1f5f9;
}
.faq-item.active { border-color: var(--primary); box-shadow: 0 20px 40px rgba(0,0,0,0.06); }

.faq-header {
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark);
}
.faq-icon {
  width: 32px; height: 32px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
}
.faq-item.active .faq-icon { transform: rotate(45deg); background: var(--primary); color: white; }

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0, 1, 0, 1);
  padding: 0 30px;
  color: #475569;
  font-size: 1.05rem;
}
.faq-item.active .faq-content {
  max-height: 600px;
  padding: 0 30px 30px;
  transition: all 0.5s cubic-bezier(1, 0, 1, 0);
}

/* ---- SERVICE GRID ---- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  margin-top: 60px;
}
.service-card {
  background: white;
  padding: 50px 40px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  transition: 0.4s;
  border: 1px solid #f1f5f9;
}
.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  border-color: var(--primary);
}
.service-card i { font-size: 3.5rem; color: var(--primary); margin-bottom: 30px; display: inline-block; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--dark); }
.service-card p { color: #64748b; }

/* ---- WHATSAPP BTN ---- */
.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 1.05rem;
}
.whatsapp-btn:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4); }

/* ---- FOOTER ---- */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 80px 5% 40px;
  text-align: center;
}
.footer-logo {
  width: 220px;
  margin-bottom: 30px;
  opacity: 0.9;
  transition: 0.3s;
}
.footer-logo:hover { opacity: 1; transform: scale(1.02); }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  list-style: none;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.3s;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  font-size: 0.85rem;
}

/* ============================================
   ESTILOS DE ARTÍCULO / POST
   (usado en hoteles y mae-suia)
   ============================================ */

/* Hero variante para páginas de post */
.hero-post {
  grid-template-columns: 1.4fr 0.6fr;
  gap: 50px;
  align-items: flex-start;
  padding-top: 60px;
  min-height: unset;
}

.post-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  align-items: center;
}

.post-tag {
  background: rgba(0, 208, 132, 0.1);
  color: var(--primary-dark);
  border: 1px solid rgba(0, 208, 132, 0.25);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-tag-secondary {
  background: rgba(6, 147, 227, 0.08);
  color: var(--secondary);
  border-color: rgba(6, 147, 227, 0.2);
}
.post-date {
  color: #94a3b8;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-content h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--dark) 20%, var(--primary) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-lead {
  font-size: 1.2rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 30px;
  border-left: 4px solid var(--primary);
  padding-left: 20px;
}

.post-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 36px 0;
}

.post-content h2 {
  font-size: 1.6rem;
  color: var(--dark);
  margin: 38px 0 14px;
  font-weight: 700;
}

.post-content h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin: 28px 0 10px;
  font-weight: 700;
}

.post-content p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* Highlight boxes */
.post-highlight {
  background: rgba(6, 147, 227, 0.06);
  border: 1px solid rgba(6, 147, 227, 0.2);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 28px 0;
  font-size: 1rem;
  color: #334155;
  line-height: 1.65;
}
.post-highlight i {
  color: var(--secondary);
  font-size: 1.4rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.post-highlight-green {
  background: rgba(0, 208, 132, 0.07);
  border-color: rgba(0, 208, 132, 0.25);
}
.post-highlight-green i { color: var(--primary-dark); }

.post-highlight-warning {
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(245, 158, 11, 0.25);
}
.post-highlight-warning i { color: var(--accent); }

/* Lista con íconos */
.post-list {
  list-style: none;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.6;
}
.post-list li i { font-size: 1.1rem; margin-top: 3px; flex-shrink: 0; }
.post-list li i.red  { color: #ef4444; }
.post-list li i.green { color: var(--primary-dark); }
.post-list li i.blue  { color: var(--secondary); }
.post-list li span { flex: 1; }

/* CTA inline en artículo */
.post-cta-inline {
  background: linear-gradient(135deg, #f0fdf9, #e8f4fd);
  border: 1px solid rgba(0, 208, 132, 0.2);
  border-radius: 20px;
  padding: 30px;
  margin-top: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.post-cta-inline p {
  font-size: 1.1rem;
  color: #334155;
  font-weight: 600;
  margin: 0;
}
.btn-post-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0, 208, 132, 0.3);
  transition: 0.3s;
}
.btn-post-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 208, 132, 0.4);
}

/* Formulario sticky en post */
.hero-form-narrow {
  position: sticky;
  top: 90px;
}

/* Paso a paso numerado */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 24px 0 32px;
}
.steps-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.65;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,208,132,0.3);
}
.step-body strong { display: block; margin-bottom: 4px; color: var(--dark); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .hero-post {
    grid-template-columns: 1fr;
  }
  .hero-form-narrow {
    position: static;
  }
  .post-content { max-width: 100%; }
}

@media (max-width: 968px) {
  header { padding: 15px 5%; }
  .logo img { width: 180px; }

  .menu-toggle {
    display: block;
    background: #f1f5f9;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--dark);
    padding: 10px;
    border-radius: 10px;
  }

  nav {
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background: white;
    box-shadow: var(--shadow-lg);
    display: none;
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
    animation: slideDown 0.3s ease-out;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  nav.nav-active { display: block; }
  nav ul { flex-direction: column; padding: 0 5%; gap: 0; }
  nav ul li a { display: block; padding: 15px 0; border-bottom: 1px solid #f8fafc; font-size: 1.1rem; }

  .hero { grid-template-columns: 1fr; padding: 60px 5%; text-align: center; gap: 40px; }
  .hero-text h1 { font-size: 3rem; }
  .hero-text p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
  .post-content h1 { font-size: 1.9rem; }
  .post-lead { font-size: 1.05rem; }
  .post-cta-inline { padding: 20px; }
  .faq-header { font-size: 1rem; padding: 20px; }
}

/* Custom Checkbox Chips */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}
.checkbox-chip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.checkbox-chip input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkbox-chip .chip-label {
  display: inline-block;
  padding: 8px 14px;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s ease;
  user-select: none;
}
.checkbox-chip input:checked ~ .chip-label {
  background-color: var(--primary-dark);
  color: white;
  border-color: var(--primary-dark);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.checkbox-chip:hover .chip-label {
  border-color: var(--primary-dark);
}
.checkbox-chip input:checked:hover ~ .chip-label {
  background-color: #0f375e;
}
