/* Variables de color */
:root {
  --navy: #1A254C;
  --blue: #4FA2CE;
  --light: #f5f7fa;
  --gray: #f0f0f0;
}

/* Reseteo básico */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  background-color: #ffffff;
  line-height: 1.6;
}

/* Encabezado y navegación */
header {
  background-color: var(--navy);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1200px;
  margin: auto;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

nav ul li a:hover {
  color: var(--blue);
}

/* Hero */
#hero {
  position: relative;
  height: 70vh;
  background-image: url('assets/imagen_dental_hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #ffffff;
}

.hero-overlay h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 20px;
}

.hero-overlay p {
  font-size: 20px;
  margin: 0 0 30px;
}

.btn-cta {
  background-color: var(--blue);
  color: var(--navy);
  padding: 15px 30px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.3s ease;
}

.btn-cta:hover {
  background-color: #2e6d8d;
}

/* Contenedor global */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}

/* Cards de servicios */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  margin-top: 0;
  color: var(--navy);
  font-size: 24px;
}

.card-content p {
  font-size: 16px;
  margin: 10px 0;
}

.price {
  color: var(--blue);
  font-weight: 700;
  font-size: 20px;
}

/* Beneficios */
.benefits-section {
  background-color: var(--navy);
  color: #ffffff;
  padding: 60px 20px;
}

.benefits-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.benefit h3 {
  margin: 0 0 10px;
  color: var(--blue);
}

/* Proceso */
.process-section {
  background-color: var(--light);
}

.process-section .steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 20px;
}

.step-number {
  display: inline-block;
  background-color: var(--blue);
  color: var(--navy);
  font-size: 24px;
  width: 48px;
  height: 48px;
  line-height: 48px;
  border-radius: 50%;
  margin-bottom: 10px;
}

/* Contacto */
.contact-section {
  background-color: #ffffff;
}

.contact-section h2 {
  margin-bottom: 20px;
  color: var(--navy);
}

.contact-section a {
  color: var(--blue);
  text-decoration: none;
}

.contact-section a:hover {
  text-decoration: underline;
}

.map iframe {
  border: 0;
}

/* Pie de página */
footer {
  background-color: var(--navy);
  color: #ffffff;
  text-align: center;
  padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 32px;
  }
  .hero-overlay p {
    font-size: 16px;
  }
  .btn-cta {
    padding: 12px 24px;
  }
}