/* Reset y base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: #ffffff;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 10;
  overflow: visible;
}

.logo-img {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  image-rendering: auto;

  height: auto;
  max-height: 100px; /* Ajusta según tu diseño */
}

nav {
  display: flex;
  gap: 20px;
  margin-right: 1rem;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #903f7d;
}

/* Botón menú hamburguesa (siempre visible) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 1000;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 4px 0;
}

/* Menú responsive oculto por defecto */
nav.responsive {
  display: none;
  flex-direction: column;
  background-color: #fff;
  position: absolute;
  top: 70px;
  right: 0;
  width: 200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

nav.responsive a {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

/* Secciones */
.inicio,
.slider,
.contacto,
.carrito {
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}

.inicio {
  padding-top: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 3rem 1rem;
}

/* Intro */
.intro-content {
  max-width: 1200px;
  width: 100%;
  background: white;
  padding: 2rem 3rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.new-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  z-index: 1;
  position: relative;
  padding: 2rem 0;
}

.intro-text {
  flex: 1 1 50%;
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left;
}

.intro-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.intro-text p {
  margin-bottom: 1rem;
}

.intro-image {
  flex: 1 1 40%;
  text-align: center;
}

.intro-image img {
  max-width: 400px;
  height: auto;
}

/* Videos TikTok */
.video-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.video-row blockquote.tiktok-embed {
  flex: 0 1 320px;
  max-width: 325px;
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(144, 63, 125, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-row blockquote.tiktok-embed:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(144, 63, 125, 0.25);
}

/* Slider */
.slider {
  padding-top: 70px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  background: linear-gradient(to right, #a8edea, #fed6e3);
  padding: 3rem 1rem;
}

.info {
  max-width: 400px;
}

#product-title {
  font-size: 2.5rem;
  font-weight: bold;
}

#product-desc {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  color: #333;
}
.logo {
  cursor: pointer;
}

.product-img {
  width: 100%;
  max-width: 400px;
  height: auto;
}
#product-btn {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  background: white;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

#product-btn:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.proyectos-imgs img {
  max-height: 400px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  max-width: 100%;
}

.proyectos-imgs img:hover {
  transform: scale(1.05);
}

/* Flechas nav */
.nav-buttons {
  position: absolute;
  width: 100%;
  top: 50%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 5;
}

.nav-buttons button {
  background: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  padding: 0.5rem 1rem;
  pointer-events: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Carrito */
.carrito {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  background: linear-gradient(to right, #b2fefa, #e1bee7);
}

.carrito-container {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
}

.carrito-container h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: #000;
  font-weight: bold;
  text-align: center;
}

.lista-carrito {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.lista-carrito li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  color: #444;
}

.resumen {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #222;
}

.resumen div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.resumen .total {
  font-weight: bold;
  font-size: 1.2rem;
}

.resumen .free {
  color: #1ebe59;
  font-weight: bold;
}

.checkout-btn {
  display: block;
  margin-top: 2rem;
  background-color: #903f7d;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.checkout-btn:hover {
  background-color: #732f63;
}

/* Cart icon */
#cart-icon {
  margin-left: 0.5rem;
  font-size: 1.2rem;
  position: relative;
  display: flex;
  align-items: center;
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: #903f7d;
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.75rem;
}

/* Footer */
.footer {
  background: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1rem;
  color: #333;
  border-top: 1px solid #eee;
  width: 100%;
}

.footer .social-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.footer .social-icons a {
  font-size: 1.7rem;
  transition: transform 0.3s ease;
}

.footer .social-icons a[aria-label="Facebook"] {
  color: #1877f2;
}
.footer .social-icons a[aria-label="Instagram"] {
  color: #e4405f;
}
.footer .social-icons a[aria-label="WhatsApp"] {
  color: #25d366;
}
.footer .social-icons a[aria-label="TikTok"] {
  color: #000;
}

.footer .social-icons a:hover {
  transform: scale(1.2);
}

/* Animación perro */

.perrito,
.perrito img {
  object-fit: contain;
  width: auto;
  height: 100%;
  max-height: 100px;
  padding: 0;
  margin: 0;
}
.dog-animation {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  margin-top: 2rem;
}

.perrito {
  position: absolute;
  height: 100px; /* o el tamaño que desees */
  object-fit: contain;
  background-color: transparent !important;
  box-shadow: none !important;
  animation: runDog 15s linear infinite;
}

.dog-animation img {
  position: absolute;
  height: 140px;
  animation: runDog 15s linear infinite;
}

@keyframes runDog {
  0% {
    left: -150px;
  }
  100% {
    left: 100%;
  }
}

/* Partículas */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Contacto */
.contacto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 4rem 2rem;
  background: #f9f5ef;
  position: relative;
  z-index: 2;
}

.contacto-img img {
  max-width: 280px;
  border-radius: 10px;
  object-fit: cover;
}

.contacto-form input,
.contacto-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: none;
  border-bottom: 2px solid #444;
  background: transparent;
  font-family: "Poppins", sans-serif;
}

.contacto-form button {
  padding: 0.8rem 2rem;
  border: none;
  background: #000;
  color: #fff;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
}

.contacto-info .social-icons {
  margin-top: 1rem;
  display: flex;
  gap: 20px;
}

.contacto-info .social-icons a:hover {
  transform: scale(1.2);
}
.proyectos {
  padding: 4rem 2rem;
  background: #f5f5f5;
  text-align: center;
}

.proyectos-container {
  max-width: 1000px;
  margin: 0 auto;
}

.proyectos h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #903f7d;
}

.proyectos p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #444;
}

.proyectos-imgs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.proyectos-imgs img {
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.cart-mobile-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cart-mobile-wrapper .cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: #903f7d;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}
.btn-eliminar {
  margin-left: 10px;
  background-color: transparent;
  border: none;
  color: red;
  font-weight: bold;
  cursor: pointer;
}

.btn-eliminar:hover {
  color: darkred;
}
.mensaje-agregado {
  position: fixed;
  top: 80px;
  right: 20px;
  background-color: #903f7d;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  animation: fadeOut 3s ease-in-out forwards;
}
.mensaje-agregado:hover {
  background-color: #7c3569;
  text-decoration: underline;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
img {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  border: none;
  outline: none;
  background-color: transparent;
}

img.fade-in {
  opacity: 1;
  transform: translateY(0);
}
img.fade-in:hover {
  transform: scale(1.05);
}
/* Responsive */
@media (max-width: 768px) {
  .slider,
  .inicio,
  .contacto {
    padding: 2rem 1rem;
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  .intro-content,
  .info,
  .contacto-form,
  .contacto-info {
    width: 100%;
    max-width: 90%;
    padding: 0;
    margin: 0 auto;
    text-align: center;
  }

  .contacto-img img {
    max-width: 220px;
    margin-top: 4rem;
  }

  .social-icons {
    justify-content: center;
    gap: 16px;
  }

  .footer {
    padding: 2rem 1rem;
  }

  header {
    padding: 0 0.5rem;
  }

  .logo-img {
    margin-left: 0.2rem;
    height: 150px;
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: 0.9rem;
  }

  #cart-icon {
    margin-left: 0;
    margin-right: 0;
  }

  .new-layout {
    flex-direction: column;
    text-align: center;
  }

  .intro-image img {
    max-width: 300px;
  }

  .video-row {
    flex-direction: column;
    align-items: center;
  }

  nav.desktop {
    display: none;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, opacity 0.6s ease;
  opacity: 0;
  transform: translateY(20px);
  will-change: transform;
}
.bio-doctor {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem;
  background-color: #fef8fc;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  align-items: center;
  animation: fadeIn 1s ease-in-out;
}
.bio-imgs {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 1rem;
}
.bio-img {
  max-width: 300px;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.bio-text {
  flex: 2;
  font-family: "Poppins", sans-serif;
}
.bio-text h3 {
  color: #903f7d;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.bio-text p {
  margin: 0.5rem 0;
  line-height: 1.6;
}
.btn-biografia {
  display: inline-block;
  padding: 12px 24px;
  background-color: #903f7d;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.btn-biografia:hover {
  background-color: #722d63;
}
.bio-section {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .bio-section {
    flex-direction: column-reverse; /* Invierte el orden en móviles */
    margin-top: 4rem;
    transition: transform 0.3s ease;
  }
}
