 /* =========================
   RESET GENERAL
========================= */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

html {
  scroll-behavior: smooth;
}

hr {
  border: none;
  height: 2px;
  background-color: #EEEEEE;
}

p {
  font-size: 1rem;
}

.card p,
.info-text span {
  font-size: 0.95rem;
}

.hero-text p,
.cta p {
  font-size: 1.1rem;
}

.btn,
.cta-btn,
.btn-sec,
.btn-principal {
  transition: all 0.3s ease;
}

.card {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
  background: white;
  transition: transform 0.3s ease;
}

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

/* IMAGEN ARRIBA */
.card-img {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* TEXTO ABAJO */
.card-content {
  padding: 20px;
  text-align: center;
}

.card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.card-content p {
  font-size: 0.9rem;
  color: #777;
}

.tratamientos-grid {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  justify-content: center;
  gap: 30px;
}

.tratamientos-grid .card:nth-child(4),
.tratamientos-grid .card:nth-child(5) {
  grid-column: span 1;
}

/* CARD EN FORMATO RECTANGULAR */
.card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

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

/* IMAGEN MÁS ALTA PARA FORMATO RECTÁNGULO */
.card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

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

/* TEXTO */
.card-content {
  padding: 18px;
  text-align: center;
}

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.card-content p {
  font-size: 0.95rem;
  color: #777;
}
/* =========================
   HEADER
========================= */

.header {
  width: 100%;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 80px;
  text-decoration: none;
  color: #1a1a1a;
  cursor: pointer;
  
}

.logo img {
  border-radius: 50%;
  width: 80px;
}

.logo span {
  font-weight: bold;
  font-size: 20px;
}



/* NAVEGACION */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}
.nav-links {
  display: flex;
  gap: 50px;
  flex: 1;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
}

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

/* CONTENEDOR BOTONES NAV */
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* BOTON SECUNDARIO (cancelar) */
.btn-outline {
  background: rgb(234, 234, 234);
  color: rgb(26, 26, 26);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px; 
  border: none; 
  transition: 0.2s;
}

.btn-outline:hover {
  background: #ddd;
  color: rgb(26, 26, 26);
}
/* BOTON CTA */
.btn {
  background: #2b6cb0;
  color: white !important;
  padding: 10px 25px;
  border-radius: 8px;
  font-size: 16px;
  
}

.btn:hover{
  background-color: #245a94;
}
/* MENU HAMBURGUESA */
.menu-toggle {
  margin-right: 30px;
  display: none;
  font-size: 26px;
  cursor: pointer;
}
.btn,
.btn-outline {
  white-space: nowrap;
}

/* =========================
   HERO
========================= */

.hero {
  background: #ffffff;
  padding: 80px 40px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

/* TEXTO HERO */
.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 50px;
}

.hero-text p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  max-width: 500px;
}

/* CARRUSEL HERO */
.hero-carousel {
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  animation: slide 14s infinite linear;
  will-change: transform;
  
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ANIMACION CARRUSEL */
@keyframes slide {
  0%, 12% {
    transform: translateX(0%);
  }

  14%, 26% {
    transform: translateX(-100%);
  }

  28%, 40% {
    transform: translateX(-200%);
  }

  42%, 54% {
    transform: translateX(-300%);
  }

  56%, 68% {
    transform: translateX(-400%);
  }

  70%, 82% {
    transform: translateX(-500%);
  }

  84%, 96% {
    transform: translateX(-600%);
  }

  100% {
    transform: translateX(0%);
  }
}

/* =========================
   TRATAMIENTOS
========================= */

.tratamientos {
  background: #fff;
  padding: 80px 20px;
  text-align: center;
}

.tratamientos .container {
  display: block;
}

.tratamientos h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.subtitle {
  color: #777;
  max-width: 600px;
  margin: 0 auto 50px auto;
  font-size: 1rem;
}



/* TARJETAS */
.card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.137);
  transition: 0.3s;
  cursor: pointer;
}

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

/* ICONO */
.icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EEEEEE;
  border-radius: 8px;
  font-size: 22px;
}

/* TEXTO TARJETA */
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.card p {
  font-size: 0.9rem;
  color: #777;
}

/* =========================
   LIBRO
========================= */
/* LIBRO */

.libro{
  padding:80px 20px;
  background:#fff;
}

.libro-container{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:60px;
  align-items:center;
  margin-top: 50px;
}

.libro-img img{
  width:100%;
  max-width:350px;
  display:block;
  margin:auto;
  box-shadow:0 10px 25px rgba(0,0,0,.12);
}

.libro-texto h2{
  font-size: 2.2rem;
  color: #1a1a1a; /* negro */
  margin-bottom: 15px;
  text-align: center;
}

.libro-texto p{
  color:#555;
  line-height:1.7;
  margin-bottom:25px;
}

.btn-libro{
  background:#2b6cb0;
  color:white;
  border:none;
  padding:14px 28px;
  border-radius:8px;
  cursor:pointer;
  font-size:16px;
}

.tiendas{
  margin-top:20px;
  display:none;
  flex-direction: column;
  gap: 10px;
}

.tiendas a{
  display:block;
  color:#2b6cb0;
  margin-bottom:10px;
  text-decoration:none;
   padding-left: 10px;
  position: relative;
}

.tiendas a:hover{
  text-decoration:underline;
}


   
/*========CTA================= */

.cta {
  background: #d2e8fe;
  padding: 90px 50px;
  text-align: center;
  color: #1a1a1a;
}

.cta-container {
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.cta h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #333;
}

.cta p {
  font-size: 1.1rem;
  max-width: 600px;
  line-height: 1.6;
}

/* BOTÓN CTA */
.cta-btn {
  text-decoration: none;
  background: #2b6cb0;
  color: white !important;
  padding: 10px 25px;
  border-radius: 8px;
  font-size: 15px;
}

.cta-btn:hover {
  background: #245a94;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cta h2 {
    font-size: 1.8rem;
  }

  .cta p {
    font-size: 1rem;
  }
}

/* =========================
   VISITANOS
========================= */

.visitanos {
  background: #ffffff;
  padding: 80px 20px;
}

.visitanos-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: flex-start;
}

/* TITULO */
.visitanos-info h2 {
  font-size: 2.2rem; 
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 25px;
  text-align: left;
}

/* CABECERA */
.info-header {
  margin-bottom: 25px;
}

.info-header strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
}

.info-header p {
  font-size: 0.95rem;
  color: #777;
  line-height: 1.4;
}

/* ITEM */
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

/* ICONO CUADRADO */
.info-icon {
  width: 40px;
  height: 40px;
  background: #eaeaea;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* TEXTO */
.info-text {
  display: flex;
  flex-direction: column;
}

.info-text .titulo {
  font-weight: 600;
  margin-bottom: 3px;
  color: #1a1a1a;
}

/* DATOS */
.info-text span {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.4;
}

/* MAPA */
.mapa-placeholder {
  width: 100%;
  height: 400px;
  background: #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  margin-bottom: 20px;
}

.mapa-placeholder iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 8px;
  display: block;
}
/* BOTONES */
.mapa-botones {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-sec {
  background: #2b6cb0;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

.btn-principal {
  background: #2b6cb0;
  color: white;
  padding: 10px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  flex: 1;
  text-align: center;
}

/* BOTONES CON ICONO */
.mapa-botones a {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ICONOS */
.mapa-botones img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* BOTONES SECUNDARIOS */
.btn-sec {
  background: #eaeaea;
  color: #1a1a1a;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}

.btn-sec:hover {
  background: #ddd;
}

/* BOTON PRINCIPAL */
.btn-principal {
  background: #2b6cb0;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  flex: 1;
  text-align: center;
  justify-content: center;
}

.btn-principal:hover {
  background: #245a94;
}

.mapa-botones img {
  filter: grayscale(100%);
  opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .visitanos-container {
    grid-template-columns: 1fr;
  }

  .visitanos-info h2 {
    text-align: center;
  }

  .mapa-botones {
    flex-direction: column;
  }

  .btn-principal {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .mapa-botones {
    flex-direction: column;
    gap: 10px;
  }

  .mapa-botones a {
    width: 100%;
    justify-content: center;
  }

  .btn-sec,
  .btn-principal {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 15px;
  }
}
@media (max-width: 768px) {

  .nav-buttons {
    flex-direction: column;
    width: 90%;
  }

  .btn,
  .btn-outline {
    width: 100%;
    text-align: center;
  }
}
/* =========================
   FOOTER
========================= */

.footer {
  background-color: #D2E8FE;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  color: #2B6CB0;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-column {
  max-width: 250px;
}

.footer-logo {
  border-radius: 100%;
  width: 200px;
  margin-bottom: 15px;
}

.footer-column h3 {
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-column ul {
  list-style-type: disc;
  padding-left: 20px;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  color: #2B6CB0;
  text-decoration: none;
  transition: 0.3s;
}

.footer-column a:hover {
  text-decoration: none;
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  border-top: 1px solid rgba(43, 108, 176, 0.3);
  padding-top: 15px;
}


/* =========================
   RESPONSIVE
========================= */



@media (max-width: 600px) {
  .tratamientos-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .card {
    width: 90%;
    max-width: 320px;
  }
}
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto;
  }

  .hero-carousel {
    height: 250px;
  }
}


@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 90%;
    text-align: center;
    margin-left: 0;
  }


  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    margin-bottom: 20px;
  }

  .footer-column ul {
    padding-left: 0;
    list-style-position: inside;
  }
}

 @media(max-width:900px){

  .libro-container{
    grid-template-columns:1fr;
    text-align:center;
  }

  }

  @media (max-width: 1200px) {
  .hero-container {
    gap: 30px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 1100px) {
  .nav {
    gap: 20px;
  }

  .nav-links {
    gap: 25px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 14px;
  }
}