*{box-sizing: border-box;
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
scroll-behavior: smooth;
list-style-type: none;
}

body{
    background-color:linear-gradient( #1e3a5f, #0f1c2d );
    min-width: 400px;
}
/*--------------------------Nav-------------------------------------------*/
header{
    background-color: rgb(128, 149, 169);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 85px;
    padding: 5px 10%;

}

.header .logo {
    cursor: pointer;
    margin-right: auto;
}

.header .logo img{
    height: 100px;
    width: auto;
   transition: all 0.3s;
}

.header .logo img:hover{
    transform: scale(1,1);
}

.header .nav-links li{
    display: inline-block;
    padding: 0 20px;
}

.header .nav-links li:hover,
.overlay a:hover{
    transform: scale(1.1);
}
.header .nav-links a{
    font-size: 700;
    color: whitesmoke;
 
}

.header .nav-links a:hover{
    color:rgb(47, 56, 127)
}
.menu{display: none;}
.header .btn button,
.header .menu button{
    margin-left: 20px;
    font-weight: 700;
    color: rgb(0, 0, 0);
    padding: 9px 25px;
    background: rgba(24, 76, 187, 0.754);
    border:none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
}

.header .btn button:hover,
.header .menu button:hover{
    background-color: rgb(96, 0, 0);
    color: rgb(255, 255, 255);
    transform: scale(1.1);
}

@media screen and (max-width: 800px){
    .nav-links, .btn{
        display: none;
    }
    .menu{
        display: inherit;
    }
}
/*--------------------------Nav mobile-------------------------------------------*/

.header a{
    text-decoration: none;
}

.header .overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    background-color: rgb(128, 149, 169);
    opacity: 70%;
    overflow: hidden;
    transition: all 0.3s ease 0s;
}

.header .overlay .overlay-content{
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header .overlay a{
    padding: 15px;
    font-size: 36px;
    display: block;
    transition: all 0.3s ease 0s;
    font-weight: 700;
    color:azure
}

.header .overlay a:hover,
.header .overlay a:focus{
color:rgb(192, 226, 119);
}

.header .overlay .close {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 65px;
}
/*------media query------*/
@media screen and (max-height:450px){
    .header .overlay a{
        font-size: 20px;

    }
    .header .overlay .close{
        font-size: 40px;
        top: 15px;
        right: 35px;
        transition: all 0.3s ease 0s;
    }

     .quienes-somos {
    height: auto;
    padding: 60px 0;
  }
  .tecnologia {
    padding: 40px 15px;
  }
  .tarjeta-texto p,
  .tarjeta-texto li {
    font-size: 0.9rem;
  }
   .ubicacion {
    padding: 40px 15px;
  }

  .tarjeta-ubicacion {
    padding: 15px;
  }

  .mapa {
    height: 250px;
  }
}
/*-----------------Banner---------*/
.banner img{
   width: 100%;
}

/*----------Section 1-----*/
.quienes-somos {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 80px 20px; /* espacio para separar del banner */
  background-color: #f4f9ff; /* opcional: da contraste */
  height: auto; /* evita superposición con el banner */
}

.quienes-somos h1 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #003366;
}

.contenido {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  max-width: 1100px;
  gap: 40px;
  flex-wrap: wrap; /* permite que los elementos bajen si no entran */
}

.texto {
  flex: 1;
  text-align: left;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

.imagen {
  flex: 1;
  display: flex;
  justify-content: center;
}

.imagen img {
  width: 280px;
  max-width: 100%;
  border-radius: 15px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.imagen img:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
/*----------Section 2-----*/
.servicios {
  background: #97a8b9;
  padding: 60px 5%;
  text-align: center;
}

.servicios h2 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.servicios-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Tarjeta del servicio --- */
.servicio {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.servicio:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

/* --- Botón del acordeón --- */
.accordion-btn {
  width: 100%;
  background: #004d99;
  color: #fff;
  text-align: left;
  padding: 15px 18px;
  font-size: 1.1rem;
  font-weight: 500;
  border: none;
  outline: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* --- Hover y activo --- */
.accordion-btn:hover {
  background: #0066cc;
}

.accordion-btn.active {
  background: #003366;
}

/* --- Contenido del acordeón (por defecto: ABIERTO en escritorio) --- */
.accordion-content {
  max-height: none; /* visible */
  overflow: visible;
  padding: 15px 18px;
  text-align: left;
  transition: all 0.3s ease;
}

/* --- Texto interno --- */
.accordion-content p {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 10px;
}

.accordion-content h4 {
  margin-top: 10px;
  color: #003366;
  font-size: 1rem;
}

.accordion-content ul {
  margin: 8px 0 15px 20px;
}

.accordion-content li {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* --- Layout general --- */
.servicios-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.servicios {
  background: #f4f9ff;
  padding: 80px 20px;
  text-align: center;
}

.servicios h2 {
  color: #003366;
  font-size: 2rem;
  margin-bottom: 30px;
}

/*--------section 3---------*/

.tecnologia {
  background: linear-gradient(135deg, #1e3a5f, #0f1c2d );
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tecnologia-titulo h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Contenedor principal */
.tecnologia-contenedor {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
}

/* Tarjetas */
.tarjeta-tecno {
  flex: 1 1 45%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.3s ease;
  min-width: 400px;
}

.tarjeta-tecno:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Ícono decorativo */
.tarjeta-icono img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 102, 255, 0.4));
}

/* Texto */
.tarjeta-texto {
  flex: 1;
}

.tarjeta-texto p {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.6;
}

.tarjeta-texto h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 15px;
}

.tarjeta-texto h3 span {
  color: #ffffff;
  font-weight: bold;
}

.tarjeta-texto ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tarjeta-texto li {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* ===== Galería Ordenada KINETIC ===== */

.dental-gallery-clean {
  padding: 100px 40px;
  background: #020617;
  text-align: center;
}

.dental-gallery-clean h2 {
  font-size: 2.1rem;
  color: #93c5fd;
  margin-bottom: 12px;
}

.gallery-subtitle {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 60px;
}

/* Grid limpio */
.gallery-grid-clean {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Imágenes */
.gallery-grid-clean figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}

.gallery-grid-clean img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: saturate(0.95);
  transition: opacity 0.3s ease;
}

.gallery-grid-clean figure:hover img {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid-clean {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .dental-gallery-clean {
    padding: 80px 20px;
  }

  .gallery-grid-clean {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid-clean {
    grid-template-columns: 1fr;
  }
}

/* ===== Galería KINETIC DENTAL ===== */

.dental-gallery {
  padding: 100px 40px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.95));
  text-align: center;
}

.dental-gallery h2 {
  font-size: 2.2rem;
  color: #93c5fd;
  margin-bottom: 15px;
}

.dental-gallery-intro {
  font-size: 1.1rem;
  color: #e5e7eb;
  margin-bottom: 60px;
}

/* Grid */
.dental-gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Imágenes */
.dental-gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.dental-gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
/* Responsive */
@media screen and (max-width: 1024px) {
  .dental-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .dental-gallery {
    padding: 80px 20px;
  }

  .dental-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .dental-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Lightbox KINETIC ===== */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: zoomIn 0.4s ease;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2.5rem;
  color: #93c5fd;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/*------- section 3--------------------*/
.ubicacion {
  background: linear-gradient( #1e3a5f, #0f1c2d );
  padding: 80px 40px;
  text-align: center;
  color: #e5e7eb;
}

.ubicacion h2 {
  color: #93c5fd;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 50px;
}
/* Contenedor de tarjetas */
.ubicacion-contenedor {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Tarjeta */
.tarjeta-ubicacion {
  flex: 1 1 30%;
  background: rgb(0, 0, 0);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.tarjeta-ubicacion:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Ícono */
.icono img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.835));
}

/* Texto */
.info h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 5px;
}

.info p {
  color: #c6c4c4;
  font-size: 1rem;
}

/* Mapa */
.mapa {
  margin-top: 60px;
  width: 100%;
  max-width: 1000px;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-left: auto;
  margin-right: auto;
}

.mapa iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/*--------footer----------------*/
.footer {
  background: rgb(103, 129, 152);
  color: #fff;
  padding: 50px 20px 25px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contenido {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color:whitesmoke;
}

.footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #66b3ff;
}

.footer-info p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 8px 0;
}

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  font-size: 0.9rem;
  color: #ddd;
}
/* ================= KINETIC DENTAL ================= */

.dental {
  background: linear-gradient(135deg, #0f1c2d, #1e3a5f);
  padding: 80px 20px;
  color: #ffffff;
  text-align: center;
}

.dental h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.dental-sub {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 60px;
}

.dental-sub span {
  font-size: 0.9rem;
  color: #93c5fd;
}

.dental-bloque {
  max-width: 1000px;
  margin: 0 auto 70px;
  text-align: left;
}

.dental-bloque h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #93c5fd;
}

.dental-muted {
  color: #cbd5e1;
  margin: 15px 0;
}

.dental-highlight {
  margin: 25px auto 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  font-size: 1.1rem;
  text-align: center;
  max-width: 700px;
}

.dental-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.dental-card {
  background: rgba(0, 0, 0, 0.35);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.dental-card:hover {
  transform: translateY(-5px);
}

.dental-pregunta {
  margin-top: 30px;
  font-size: 1.1rem;
}

.dental-nace {
  margin-top: 15px;
  font-size: 1.3rem;
  color: #93c5fd;
   text-align: center;
}

.dental-lista {
  margin-top: 25px;
  padding-left: 20px;
}

.dental-lista li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.dental-diferencial {
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 40px 30px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.dental-diferencial h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #93c5fd;
}

.dental-diferencial-intro {
  font-size: 1.1rem;
  color: #e5e7eb;
  margin-bottom: 30px;
}

.dental-diferencial-lista {
  list-style: none;
  padding: 0;
  margin: 0 auto 35px;
  max-width: 850px;
  text-align: left;
}

.dental-diferencial-lista li {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.5;
}

.dental-diferencial-cierre {
  margin-top: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  font-size: 1.2rem;
  color: #93c5fd;
}

.dental-valores {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.dental-box {
  flex: 1 1 45%;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 20px;
  padding: 30px;
}

.dental-box h4 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #93c5fd;
}

.dental-box li {
  margin-bottom: 10px;
}

/* ===== Contenedor de imágenes KINETIC DENTAL ===== */

.dental-images {
  max-width: 900px; /* antes 1100px */
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.dental-image {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.dental-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.dental-image:hover img {
  transform: scale(1.05);
}


/* Responsive */
@media screen and (max-width: 768px) {
  .dental-bloque {
    text-align: center;
  }

  .dental-valores {
    flex-direction: column;
  } 
   .dental-diferencial {
    padding: 30px 20px;
  }

  .dental-diferencial-lista {
    text-align: center;
  }
  .dental-images {
    grid-template-columns: 1fr;
  }
}


/* --- 🔹 En móviles y tablets: se vuelven acordeones reales --- */
@media screen and (max-width: 992px) {
  .tarjeta-ubicacion {
    flex: 1 1 45%;
  }
}
@media screen and (max-width: 768px) {
  .servicios-container {
    grid-template-columns: 1fr;
  }

  .accordion-content {
    max-height: 0; /* cerrado */
    overflow: hidden;
    padding: 0 18px;
  }

  .accordion-content.open {
    max-height: 600px; /* al abrir */
    padding: 15px 18px;
  }

  .accordion-btn {
    font-size: 1rem;
    padding: 12px 16px;
  }

  .servicios h2 {
    font-size: 1.6rem;
  }
  .contenido {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .texto {
    text-align: center;
    font-size: 0.95rem;
  }

  .imagen img {
    width: 220px;
  }

  .quienes-somos h1 {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }

.tarjeta-tecno {
    flex: 1 1 100%;
    min-width: unset;
  }

  .tarjeta-tecno {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .tarjeta-icono img {
    width: 50px;
    height: 50px;
  }

  .tarjeta-texto h3 {
    font-size: 1.2rem;
  }

  .tecnologia {
    padding: 60px 20px;
  }

  .tecnologia-titulo h2 {
    font-size: 1.6rem;
  }

   .tarjeta-ubicacion {
    flex: 1 1 100%;
  }

  .ubicacion {
    padding: 60px 20px;
  }

  .ubicacion h2 {
    font-size: 1.6rem;
  }

  .info h3 {
    font-size: 1.1rem;
  }


  .footer-contenido {
    flex-direction: column;
    text-align: center;
  }

  .footer h3 {
    font-size: 1.1rem;
  }

  .footer-info p {
    font-size: 0.9rem;
  }
}
