/* ======================= General Styles & Fonts ======================= */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap");

:root {
  --primary-blue: #3498db;
  --dark-blue: #2980b9;
  --light-gray: #f4f4f4;
  --text-color: #555;
  --heading-color: #333;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  line-height: 1.6;
  color: var(--text-color);
}

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

/* ======================= Header ======================= */
header {
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.contacto {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
  max-width: 600px;
  margin: 0 auto;
  margin-bottom: 20px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--heading-color);
  font-size: 24px;
}

.logo-icon {
  margin-right: 10px;
}

.header-info {
  display: flex;
  gap: 30px;
}

.header-contact,
.header-address {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

/* Estilos para los nuevos enlaces en el header */
.header-contact a,
.header-address a {
  color: inherit;
  text-decoration: none;
}
.header-contact a:hover,
.header-address a:hover {
  text-decoration: underline;
}
address {
  font-style: normal;
}

.header-info i {
  color: var(--primary-blue);
  font-size: 24px;
}

/* ======================= Hero Section ======================= */
.hero {
  background: url("https://clinicaromana.com/images/portada_img.jpg") no-repeat center center/cover;
  color: var(--heading-color);
  text-align: left;
  padding: 120px 0;
}

.hero h1 {
  color: #ffffff;
  font-size: 56px;
  margin-bottom: 20px;
  max-width: 500px;
  text-shadow: 2px 2px 5px rgb(0, 0, 0);
}

.hero p {
  color: #ffffff;
  font-size: 20px;
  max-width: 500px;
  margin-bottom: 30px;
  text-shadow: 2px 2px 5px rgb(0, 0, 0);
}

.btn {
  background-color: white;
  color: var(--primary-blue);
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  border: 2px solid var(--primary-blue);
  transition: all 0.3s;
}

.btn:hover {
  background-color: var(--primary-blue);
  color: white;
}

/* ======================= Info Bar ======================= */
.info-bar {
  background-color: var(--primary-blue);
  color: white;
}

.info-bar .container {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  padding-bottom: 30px;
}

.info-box {
  flex-basis: 32%;
  display: flex;
  flex-direction: column;
}

.info-box i {
  font-size: 32px;
  margin-bottom: 15px;
}

/* Corregido de h4 a h3 */
.info-box h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.info-box p {
  margin: 2px 0;
  font-size: 14px;
}

.info-box .phone-number {
  font-size: 24px;
  font-weight: bold;
  margin-top: 10px;
}

.info-box .phone-number a {
  color: inherit;
  text-decoration: none;
}

/* ======================= Differentiators Section ======================= */
.differentiators {
  padding: 80px 0;
  text-align: center;
  background-color: var(--light-gray);
}

.differentiators h2 {
  font-size: 36px;
  margin-bottom: 60px;
}

.features {
  display: flex;
  justify-content: space-around;
  gap: 30px;
}

.feature-item {
  flex-basis: 30%;
}

.icon-circle {
  width: 80px;
  height: 80px;
  border: 2px solid var(--primary-blue);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.icon-circle i {
  font-size: 36px;
  color: var(--primary-blue);
}

.feature-item:hover .icon-circle {
  background-color: var(--primary-blue);
}
.feature-item:hover .icon-circle i {
  color: white;
}

.feature-item h3 {
  font-size: 22px;
  color: var(--heading-color);
}

/* ======================= Services Section (MODIFICADO) ======================= */
.services {
  padding: 80px 0;
  text-align: center;
}

.services h2 {
  font-size: 36px;
}

.services .subtitle {
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Contenedor principal de la tarjeta (ahora es la etiqueta <article>) */
.service-card {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-card a {
  text-decoration: none;
  display: block;
  height: 100%;
}

/* Asegura que la imagen cubra todo el espacio de la tarjeta */
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover img {
  transform: scale(1.1);
}

/* Div que contiene el nombre del servicio */
.service-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(52, 152, 219, 0.9);
  color: white;
  padding: 15px;
  text-align: center;
  transition: background-color 0.3s;
  box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
}

.service-name h3 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

/* ======================= Footer ======================= */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
}

/* ======================= Navbar Responsivo ======================= */
nav.navbar {
  background-color: var(--primary-blue);
  position: relative;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 60px; /* Aumentado para mejor tacto */
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 5px;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  padding: 0 20px;
  line-height: 60px; /* Igual a la altura del nav-container */
  display: block;
  font-weight: 700;
  font-size: 14px;
  transition: background-color 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background-color: var(--dark-blue);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ======================= Google Maps Responsivo ======================= */
.map-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 50%; /* Proporción 4:3 (alto/ancho) */
    max-width: 600px; 
    margin: 0 auto;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ======================= MEDIA QUERIES (Versión Móvil) ======================= */
@media screen and (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .header-info {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .contacto {
    flex-direction: column;
    gap: 10px;
    
  }

  .header-contact,
  .header-address {
    font-size: 13px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-container {
    height: 60px; /* Igual que en desktop */
  }

  .nav-menu {
    position: absolute;
    top: 60px; /* Justo debajo de la barra */
    left: -100%;
    flex-direction: column;
    background-color: var(--primary-blue);
    width: 100%;
    text-align: center;
    transition: 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    padding: 15px 0;
    line-height: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero h1 {
    font-size: 36px;
  }
  .features {
    flex-direction: column;
    align-items: center;
  }
  .info-bar .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  
  
}
