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

:root {
  --primary: #70A699;
  --primary-dark: #5A8C7F;
  --primary-light: #9EC8BC;
  --accent: #AC391C;
  --accent-hover: #932E15;
  --light: #F2F7F5;
  --dark: #2C2C2C;
  --gray: #727171;
  --light-gray: #D9D9D9;
  --white: #ffffff;
  --whatsapp: #25d366;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER / NAV */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 30px rgba(0,0,0,0.12);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
  0% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
  100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #4A7D72 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--primary-light);
}

.hero-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(172, 57, 28, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(172, 57, 28, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: rgba(255,255,255,0.15);
  border: 2px dashed rgba(255,255,255,0.15);
  padding: 20px;
  text-align: center;
}

.hero-image-placeholder span {
  font-size: 18px;
  color: rgba(255,255,255,0.3);
  margin-top: 10px;
}

/* Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: -50px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.stat-item {
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid var(--light-gray);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  color: var(--gray);
  font-size: 14px;
  font-weight: 500;
  margin-top: 6px;
}

/* Section shared */
.section {
  padding: 90px 20px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--gray);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

.section-title span {
  color: var(--primary);
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--light);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--primary);
  border: 2px dashed var(--light-gray);
}

.about-text h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--dark);
}

.about-text h2 span {
  color: var(--primary);
}

.about-text p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--dark);
}

.about-feature i {
  color: var(--primary);
  font-size: 18px;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.service-icon {
  width: 72px;
  height: 72px;
  background: var(--light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary);
  margin: 0 auto 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-card p {
  color: var(--gray);
  font-size: 15px;
}

/* Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  background: var(--primary);
  color: var(--white);
}

.why-card:hover p {
  color: rgba(255,255,255,0.8);
}

.why-card i {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 18px;
  transition: var(--transition);
}

.why-card:hover i {
  color: var(--white);
}

.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--gray);
  font-size: 14px;
  transition: var(--transition);
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
}

.contact-item h4 {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--gray);
  font-size: 15px;
}

.contact-form {
  background: var(--light);
  padding: 40px;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 110, 138, 0.1);
}

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

.btn-submit {
  background: var(--primary);
  color: var(--white);
  width: 100%;
  padding: 16px;
  font-size: 17px;
  font-weight: 700;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Map placeholder */
.map-container {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 350px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 18px;
  border: 2px dashed var(--light-gray);
}

/* FOOTER */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 20px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-text {
  color: var(--white);
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  font-size: 18px;
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* Page Hero (inner pages) */
.page-hero {
  padding: 140px 20px 70px;
  background: linear-gradient(135deg, #4A7D72, var(--primary));
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  opacity: 0.85;
  font-size: 18px;
  max-width: 500px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  opacity: 0.7;
}

.breadcrumb a {
  color: var(--white);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Page content layout with sidebar */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  padding: 80px 20px;
}

.page-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--dark);
}

.page-content h2 span {
  color: var(--primary);
}

.page-content p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 16px;
}

.page-content ul {
  margin: 16px 0;
  padding-left: 20px;
}

.page-content ul li {
  color: var(--gray);
  margin-bottom: 10px;
  font-size: 15px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.sidebar-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

.sidebar-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-card ul li a {
  color: var(--gray);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.sidebar-card ul li a:hover {
  background: var(--primary);
  color: var(--white);
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  text-align: center;
  padding: 32px 24px;
}

.sidebar-cta h3 {
  color: var(--white);
}

.sidebar-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin-bottom: 20px;
}

.sidebar-cta .btn {
  background: var(--white);
  color: var(--primary);
}

/* Values list */
.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.value-item {
  background: var(--light);
  padding: 20px;
  border-radius: var(--radius);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.value-item i {
  font-size: 24px;
  color: var(--primary);
  min-width: 28px;
}

.value-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.value-item p {
  font-size: 13px;
  margin-bottom: 0;
}

/* Testimonials strip */
.testimonials-strip {
  background: var(--primary);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.testimonials-strip .section-title {
  color: var(--white);
}

.testimonials-strip .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: left;
  backdrop-filter: blur(10px);
}

.testimonial-card .stars {
  color: #ffd700;
  margin-bottom: 12px;
  font-size: 14px;
}

.testimonial-card p {
  font-style: italic;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.9;
}

.testimonial-card .author {
  margin-top: 16px;
  font-weight: 700;
  font-size: 14px;
}

.testimonial-card .author span {
  opacity: 0.6;
  font-weight: 400;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p {
    margin: 0 auto 32px;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-image {
    display: none;
  }
  .hero-content h1 {
    font-size: 38px;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
    margin-bottom: 30px;
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .services-grid,
  .why-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-layout {
    grid-template-columns: 1fr;
  }
  .page-layout {
    padding: 50px 20px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px 16px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    padding: 100px 16px 60px;
  }
  .hero-content h1 {
    font-size: 30px;
  }
  .section {
    padding: 60px 16px;
  }
  .section-title {
    font-size: 28px;
  }
  .services-grid,
  .why-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }
  .stat-item {
    padding: 20px 12px;
  }
  .stat-number {
    font-size: 28px;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
  .values-list {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 24px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .page-hero {
    padding: 110px 16px 50px;
  }
  .page-hero h1 {
    font-size: 30px;
  }
}

/* Sucursales section */
.sucursales-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sucursal-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.sucursal-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.sucursal-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.sucursal-card p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 6px;
}

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