:root {
  --rojo: #c62828;
  --rojo-claro: #ef5350;
  --gris-claro: #f9f9f9;
  --gris-medio: #e0e0e0;
  --negro: #1c1c1c;
  --fuente: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--fuente);
  background-color: #fff;
  color: var(--negro);
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gris-medio);
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--rojo);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links li a {
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--rojo);
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: var(--rojo);
}

.nav-links li a:hover::after {
  width: 100%;
}

.cta {
  background-color: var(--rojo);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.25);
}

.cta:hover {
  background-color: var(--rojo-claro);
}


/* Hero */

.hero {
  padding: 4rem 0 2rem;
  background: linear-gradient(135deg, #fff 60%, #fdeaea 100%);
}

.hero-flex {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
}

@media (min-width: 768px) {
  .hero-flex {
    flex-direction: row;
    align-items: center;
  }
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--rojo);
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-img img {
  width: 100%;
  max-width: 350px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.badge {
  display: inline-block;
  background-color: var(--rojo);
  color: #fff;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

/* Secciones */

.section {
  padding: 4rem 0 3rem;
}

.section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--rojo);
}

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 1rem;
}

.card {
  background-color: var(--gris-claro);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* Servicios */

.servicios-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 1024px) {
  .servicios-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .servicios-cards {
    grid-template-columns: 1fr;
  }
}

.servicio-card {
  background-color: var(--gris-claro);
  padding: 2rem 1.2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.servicio-card .emoji {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 1rem;
}

.servicio-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--negro);
}

/* Horarios */

.horarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.horario-card {
  background-color: var(--gris-claro);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.horario-card:hover {
  transform: translateY(-5px);
}

.horario-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--rojo);
  margin-bottom: 1rem;
}

.horario-card ul {
  padding-left: 1rem;
}

.horario-card li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

/* Contacto y mapa */

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.mapa-container iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 12px;
}

.wpp {
  margin-top: 1rem;
}

/* Footer */

.footer {
  background-color: var(--gris-claro);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}
.btn-wpp {
  background-color: var(--rojo);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.25);
}

.btn-wpp:hover {
  background-color: var(--rojo-claro);
  transform: translateY(-2px);
}



@media (max-width: 768px) {
  .btn-wpp {
    justify-content: center;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 20px;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background: var(--rojo);
  border-radius: 2px;
  transition: 0.3s;
}

/* Responsive nav */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    max-height: 300px;
    padding: 1rem 2rem;
  }

  .cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Z-indexes bien organizados */
.header {
  z-index: 10;
}

.nav-links {
  z-index: 11;
}
