/* styles.css - Diseño con paleta elegante y moderna para Vero’s Óptica */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #212121; /* gris oscuro neutro */
    background-color: #f7f7f5; /* claro cálido */
}

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

/* Header */
header {
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-img {
    height: 60px;
}

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

.nav-links a {
    text-decoration: none;
    color: #212121;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #c59a53;
}

/* Sección de bienvenida */
.welcome-section {
    background: #f4f1ec;
    padding: 60px 20px;
    text-align: center;
}

.logo-img {
  border-radius: 50%;
  overflow: hidden;
  width: 120px; /* o el tamaño deseado */
  height: 120px;
  object-fit: cover;
  background-color: #000; /* para camuflar el fondo */
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.welcome-text h2 {
    color: #c59a53;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Sección de servicios */
.services-section {
    background: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

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

.service-item {
    background: #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-item img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Sección especialista */
.specialist-section {
    background: #e6f2ff;
    padding: 60px 20px;
}

.specialist-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.specialist-photo {
    flex: 1;
    max-width: 300px;
    border-radius: 10px;
}

.specialist-info {
    flex: 2;
}

/* Contacto */
.contact-section {
    background: #ffffff;
    padding: 60px 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

button {
    background: #0077b6;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

button:hover {
    background: #005f8a;
}

/* Footer */
footer {
    background: #212121;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.footer-container a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.footer-container a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .specialist-container {
        flex-direction: column;
        text-align: center;
    }

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


/* Catálogo interactivo */
.catalog-section {
    background: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

.catalog-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.catalog-buttons button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #c59a53;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.catalog-buttons button img {
    width: 32px;
    height: 32px;
}

.catalog-buttons button:hover {
    background-color: #c59a53;
    color: white;
}

.catalogo-contenido {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.catalogo-contenido h3 {
    color: #0077b6;
    margin-bottom: 15px;
}

.grid-catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.grid-catalogo img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Agrega esto al final de tu styles.css */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.galeria img {
    width: 100%;
    height: 150px; /* Altura fija para uniformidad */
    object-fit: cover; /* Para que las imágenes mantengan sus proporciones */
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.galeria img:hover {
    transform: scale(1.03); /* Efecto de hover sutil */
}

/* Contenedor principal */
.servicios-contenedor {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    margin: 20px 0;
}

/* Contenedor principal */
.servicios-contenedor {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    margin: 20px 0;
}

/* Lista de servicios */
.servicios-lista {
    flex: 2;
    min-width: 300px;
    display: flex;
    gap: 20px;
}

/* Columna individual */
.servicios-columna {
    flex: 1;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Contenedor de imagen */
.servicios-imagen {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servicios-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .servicios-lista {
        flex-direction: column;
    }
    .servicios-imagen {
        margin-top: 20px;
    }
}

/* Contenedor principal mejorado */
.servicios-contenedor {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px 0;
}

/* Galería de imágenes médicas */
.servicios-galeria {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.imagen-medica {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.imagen-medica img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #eee;
}

.pie-foto {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .servicios-contenedor {
        flex-direction: column;
    }
    .servicios-galeria {
        grid-template-columns: 1fr;
    }
}

/* Contenedor de listas */
.servicios-listas {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

/* Columnas de servicios */
.servicios-columna {
    flex: 1;
    min-width: 250px;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Contenedor de imágenes */
.servicios-imagenes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.servicios-imagenes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.imagen-descripcion {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.imagen-descripcion img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 5px;
}

.imagen-descripcion p {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

.imagen-equipo {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.imagen-equipo img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 5px;
}

.pie-imagen {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
    .servicios-columna {
        min-width: 100%;
    }
    
    .servicios-imagenes {
        grid-template-columns: 1fr;
    }
}

/* TIPOGRAFÍA ACTUALIZADA */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Poppins:wght@500;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #212121;
    background-color: #f7f7f5;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
}

/* BOTONES ACTUALIZADOS */
button {
    background: #c59a53;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

button:hover {
    background: #a37e3a;
}


/* LOGO RESPONSIVE SUGERIDO */
.logo-img {
    height: auto;
    max-height: 60px;
    width: auto;
}

/* RESTO DEL CSS: mantener existente y agregar esto como override */

.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  margin: 0 6px;
  border: 1px solid #c59a53;
  border-radius: 6px;
  background-color: transparent;
  color: #212121;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background-color: #c59a53;
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #212121;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    background: #ffffff;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .nav.active {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
  }
}

.welcome-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  flex: 2;
}

.hero-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.hero-gallery img:hover {
  transform: scale(1.03);
}

.welcome-text {
  flex: 1;
  min-width: 280px;
}

.welcome-text h2 {
  color: #c59a53;
  font-size: 2rem;
  margin-bottom: 10px;
}

.welcome-section {
  background: #f4f1ec;
  padding: 80px 20px;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

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

.hero-images img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.hero-images img:hover {
  transform: scale(1.03);
}

.hero-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.hero-text h2 {
  color: #c59a53;
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
}
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }

  .logo-img {
    width: 70px;
    height: 70px;
  }

  .nav-links {
    display: none; /* Oculta menú en desktop para móviles */
  }

  .menu-toggle {
    display: block;
  }

  .nav.active .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 10px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    border-radius: 8px;
  }

  .nav-links a {
    margin: 10px 0;
    width: 120px;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
  }

  .logo-img {
    width: 70px;
    height: 70px;
  }

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
  }

  .nav {
    width: 100%;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    background-color: white;
    width: 100%;
    padding: 10px 0;
    display: none;
  }

  .nav.active .nav-links {
    display: flex;
  }

  .nav-links a {
    margin: 10px 20px;
    padding: 10px;
    border: 1px solid #c59a53;
    border-radius: 6px;
    width: calc(100% - 40px);
    text-align: center;
  }
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: left;
}

.contact-form h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

.contact-form textarea {
  height: 160px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 15px;
  background-color: #c59a53;
  color: white;
  font-size: 1.1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #a9803b;
}
 img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

* {
  box-sizing: border-box;
}

.hero-images {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

body {
  overflow-x: hidden;
}
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
  }

  .hero-images {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-images img {
    height: auto;
  }

  .hero-text {
    text-align: left;
    padding: 20px 10px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
  }

  .logo-img {
    width: 50px;
    height: 50px;
  }

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
  }

  .nav {
    width: 100%;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    background-color: white;
    width: 100%;
    padding: 10px 0;
    display: none;
  }

  .nav.active .nav-links {
    display: flex;
  }

  .nav-links a {
    margin: 10px 20px;
    padding: 10px;
    width: calc(100% - 40px);
    text-align: center;
  }

  .hero-container {
    flex-direction: column;
  }

  .hero-images {
    grid-template-columns: 1fr;
  }

  .hero-images img {
    height: auto;
    max-width: 100%;
  }
}
a,
button {
  transition: all 0.3s ease;
}

button:hover,
.nav-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-images img {
  transition: transform 0.3s ease;
}

.hero-images img:hover {
  transform: scale(1.03);
}

.service-item,
.card,
.footer-container p {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

