/* Polerones Personalizados - Estilos compartidos */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

:root {
  --green-primary: #4CAF50;
  --green-dark: #2E7D32;
  --green-darker: #1B5E20;
  --green-light: #A5D6A7;
  --green-bg: #E8F5E9;
  --gray-text: #374151;
  --gray-muted: #6B7280;
  --gray-light: #F3F4F6;
  --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--gray-text); background: var(--white); line-height: 1.6; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid #E0E7FF; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.header-inner img { height: 44px; }
.nav { display: flex; gap: 0.25rem; align-items: center; }
.nav a { padding: 0.5rem 0.875rem; font-size: 0.875rem; font-weight: 500; color: var(--gray-text); text-decoration: none; border-radius: 0.375rem; transition: all 0.2s; }
.nav a:hover, .nav a.active { color: var(--green-dark); background: var(--green-bg); }
.btn-wa { background: var(--green-primary); color: white; padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 0.375rem; transition: opacity 0.2s; }
.btn-wa:hover { opacity: 0.9; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-nav { display: none; padding: 1rem; border-top: 1px solid var(--green-bg); }
.mobile-nav a { display: block; padding: 0.625rem 0.75rem; color: var(--gray-text); text-decoration: none; font-weight: 500; border-radius: 0.375rem; }
.mobile-nav a:hover { background: var(--green-bg); color: var(--green-dark); }

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-nav.open { display: block; }
}

/* Hero */
.hero { background: linear-gradient(135deg, #E8F5E9 0%, #F1F8F1 100%); padding: 3.5rem 1rem; text-align: center; }
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.375rem; background: rgba(255,255,255,0.8); border: 1px solid var(--green-light); color: var(--green-dark); padding: 0.375rem 0.875rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero h1 { font-size: 2rem; font-weight: 800; color: #1a1a1a; margin-bottom: 1rem; line-height: 1.15; }
.hero h1 span { color: var(--green-dark); }
.hero p { font-size: 1rem; color: var(--gray-muted); margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: linear-gradient(135deg, var(--green-primary), var(--green-dark)); color: white; padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; box-shadow: 0 4px 14px rgba(76,175,80,0.25); transition: opacity 0.2s; }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { border: 2px solid var(--green-light); color: var(--green-dark); padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: background 0.2s; }
.btn-outline:hover { background: var(--green-bg); }

/* Sections */
.section { padding: 3.5rem 1rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section h2 { font-size: 1.75rem; font-weight: 800; color: #1a1a1a; margin-bottom: 0.75rem; text-align: center; }
.section h2 span { color: var(--green-dark); }
.section > .section-inner > p { text-align: center; color: var(--gray-muted); max-width: 700px; margin: 0 auto 2rem; }
.section-alt { background: linear-gradient(to bottom, white, #E8F5E933); }
.section-white { background: white; }

/* Service cards */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card { background: white; border: 1px solid #E0E7FF; border-radius: 1rem; padding: 1.5rem; transition: all 0.3s; }
.service-card:hover { border-color: var(--green-light); box-shadow: 0 10px 30px rgba(76,175,80,0.15); }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: #1a1a1a; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.875rem; color: var(--gray-muted); line-height: 1.6; }
.service-icon { width: 48px; height: 48px; border-radius: 0.75rem; background: linear-gradient(135deg, var(--green-primary), var(--green-dark)); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.5rem; }

/* FAQ */
.faq-item { background: white; border: 1px solid #E0E7FF; border-radius: 0.75rem; margin-bottom: 0.75rem; overflow: hidden; }
.faq-item summary { padding: 1rem 1.25rem; font-weight: 700; color: #1a1a1a; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; }
.faq-item summary::after { content: '▼'; font-size: 0.75rem; color: var(--green-primary); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { padding: 0 1.25rem 1rem; color: var(--gray-muted); font-size: 0.9rem; line-height: 1.7; }

/* Comunas grid */
.comunas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.comuna-card { background: white; border: 1px solid #E0E7FF; border-radius: 0.5rem; padding: 1rem; text-decoration: none; color: var(--gray-text); transition: all 0.2s; text-align: center; }
.comuna-card:hover { border-color: var(--green-primary); background: var(--green-bg); transform: translateY(-2px); }
.comuna-card h3 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.25rem; }
.comuna-card p { font-size: 0.75rem; color: var(--gray-muted); }

/* CTA */
.cta { background: linear-gradient(135deg, var(--green-primary), var(--green-dark)); color: white; padding: 3rem 1rem; text-align: center; }
.cta h2 { color: white; font-size: 1.5rem; margin-bottom: 0.75rem; }
.cta p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.cta .btn-white { background: white; color: var(--green-dark); padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }

/* Footer */
.footer { background: #111827; color: #9CA3AF; padding: 3rem 1rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer h3 { color: white; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer a { color: #9CA3AF; text-decoration: none; font-size: 0.875rem; display: block; padding: 0.25rem 0; }
.footer a:hover { color: var(--green-light); }
.footer-bottom { max-width: 1200px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid #374151; text-align: center; font-size: 0.75rem; }
.footer-logo { background: white; border-radius: 0.5rem; padding: 0.5rem; display: inline-block; margin-bottom: 1rem; }
.footer-logo img { height: 40px; }

/* WhatsApp floating */
.wa-floating { position: fixed; bottom: 20px; right: 20px; z-index: 50; background: #25D366; color: white; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; text-decoration: none; box-shadow: 0 4px 14px rgba(37,211,102,0.4); transition: transform 0.2s; }
.wa-floating:hover { transform: scale(1.1); }

/* Definition cards */
.def-card { background: white; border: 1px solid #E0E7FF; border-radius: 1rem; padding: 1.5rem; margin-bottom: 1rem; transition: all 0.2s; }
.def-card:hover { box-shadow: 0 4px 14px rgba(76,175,80,0.1); }
.def-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--green-dark); margin-bottom: 0.5rem; }
.def-card p { font-size: 0.9rem; color: var(--gray-muted); line-height: 1.7; }

/* Breadcrumb */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 1rem; font-size: 0.875rem; color: var(--gray-muted); }
.breadcrumb a { color: var(--green-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.5rem; }
  .section h2 { font-size: 1.4rem; }
  .services-grid { grid-template-columns: 1fr; }
}
