
/* Color palette */
:root {
  --primary: #e36ba5; /* fuchsia/pink accent */
  --secondary: #7fc7d9; /* turquoise accent */
  --highlight: #f9d56e; /* soft yellow highlight */
  --dark: #333333;
  --light: #ffffff;
  --muted: #f7f7f7;
  --border-radius: 8px;
}

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

body {
  /* Utilizamos fuentes de sistema para mayor compatibilidad y rendimiento */
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--light);
}

/* Justify all regular paragraphs for better readability */
p {
  text-align: justify;
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

/* Layout utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.flex {
  display: flex;
}

.space-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

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

.center-btn {
  display: inline-block;
  margin-top: 1rem;
  text-align: center;
}

/* Topbar */
.topbar {
  background-color: var(--light);
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Ajuste de la cabecera */
.logo {
  display: flex;
  align-items: center;
}

/* Ensure the logo image scales nicely and keeps its circular shape */
.logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

/* Layout for dynamic feed section */
.feed-preview .feed-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.feed-preview iframe,
.feed-preview blockquote {
  flex: 1 1 300px;
}

@media (max-width: 768px) {
  .feed-preview .feed-grid {
    flex-direction: column;
  }
  .feed-preview iframe,
  .feed-preview blockquote {
    max-width: 100%;
  }
}

/* Carousels */
.carousel-container {
  margin-top: 2rem;
}
.carousel-container h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}
.carousel {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}
  /* Cada elemento del carrusel ocupará el 100% del ancho del contenedor para garantizar coherencia entre los embeds de Instagram y TikTok */
  .carousel > * {
    scroll-snap-align: start;
    flex: 0 0 100%;
  }

  /* Ajustamos los iframes para que se adapten al ancho del carrusel sin establecer un ancho máximo fijo. 
     La altura se mantiene para que ambos reproductores conserven la misma proporción. */
  .carousel iframe {
    max-width: 100%;
    width: 100%;
    height: 480px;
  }

.navbar {
  display: flex;
  gap: 1rem;
}

.navbar a {
  font-weight: 600;
  color: var(--dark);
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
}

.navbar a:hover {
  background-color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--light);
}


/* Buttons hover states (manually darkened for better browser compatibility) */
.btn-primary:hover {
  background-color: #cc6094; /* 10% darker than primary (#e36ba5) */
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--dark);
}


.btn-secondary:hover {
  background-color: #72b3c3; /* 10% darker than secondary (#7fc7d9) */
}

/* Nav toggle for mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero section */
.hero {
  /* Use a vibrant gradient to give the hero section a modern and friendly look */
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  padding: 3rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-text .highlight {
  color: var(--secondary);
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

/* Small hero used on subpages */
.small-hero {
  background-color: var(--muted);
  padding: 2rem 0;
}

.small-hero h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.small-hero p {
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* Preview sections */
.preview {
  padding: 3rem 0;
}

.about-preview, .social-preview {
  background-color: var(--muted);
}

.preview h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  font-family: Arial, Helvetica, sans-serif;
}

.preview-text p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.preview-image {
  flex: 1;
  padding-left: 2rem;
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit-item {
  background-color: var(--light);
  border: 1px solid #eaeaea;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.benefit-item i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

/* Ajustamos las imágenes de iconos en los ítems de beneficios */
.benefit-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
  filter: invert(32%) sepia(11%) saturate(1344%) hue-rotate(150deg) brightness(91%) contrast(88%);
}

.benefit-item h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.benefit-item p {
  font-size: 0.95rem;
  color: #555;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-grid img {
  border-radius: var(--border-radius);
}

/* Carrusel de galería dinámico */
.gallery-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}

.gallery-track {
  display: flex;
  transition: transform 0.4s ease;
}

.gallery-track img {
  flex: 0 0 100%;
  margin-right: 1rem;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
}

.gallery-track img:hover {
  transform: scale(1.05);
}

/* Animaciones al hacer scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  border-radius: var(--border-radius);
  opacity: 0.8;
  z-index: 5;
}

.gallery-prev:hover,
.gallery-next:hover {
  opacity: 1;
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

/* Testimonials page */
.testimonial-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.testimonial {
  background-color: var(--light);
  border: 1px solid #eaeaea;
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.testimonial .rating {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* Espaciado entre estrellas en reseñas */
.testimonial .rating img {
  margin-right: 2px;
  /* Filtramos las estrellas para que adopten el color primario */
  filter: invert(33%) sepia(66%) saturate(562%) hue-rotate(-42deg) brightness(92%) contrast(85%);
}

.testimonial p {
  margin-bottom: 0.5rem;
  font-style: italic;
}

.testimonial footer {
  font-size: 0.9rem;
  color: #777;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 1.5rem auto;
}

.contact-form .form-row {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--secondary);
  outline: none;
}

.contact-form button {
  margin-top: 0.5rem;
}

/* References */
.references {
  background-color: var(--muted);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: #555;
}

.references h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: Arial, Helvetica, sans-serif;
}

.references ol {
  margin-left: 1.2rem;
}

.references li {
  margin-bottom: 0.4rem;
}

.references a {
  color: var(--primary);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

blockquote {
  background-color: var(--light);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  font-style: italic;
}

blockquote p {
  margin-bottom: 0.5rem;
}

blockquote footer {
  font-size: 0.9rem;
  color: #777;
}

/* Social icons */
.social-icons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-icons a {
  color: var(--primary);
  transition: color 0.2s;
}

/* Ajustamos los iconos de redes como imágenes y añadimos un ligero efecto hover */
.social-icons img {
  width: 36px;
  height: 36px;
  transition: transform 0.2s;
}

.social-icons a:hover img {
  transform: scale(1.15);
}

/* Estilizamos los enlaces de redes con un fondo redondeado */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--muted);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.social-icons a:hover {
  background-color: var(--secondary);
}

/* Footer */
.footer {
  background-color: var(--muted);
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.footer a {
  color: var(--primary);
  margin: 0 0.5rem;
}

.footer a:hover {
  color: var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .preview .flex {
    flex-direction: column;
  }
  .preview-image {
    padding-left: 0;
    margin-top: 1rem;
  }
  .navbar {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--light);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius);
    display: none;
  }
  .navbar a {
    padding: 0.5rem 0;
  }
  .nav-toggle {
    display: block;
  }
  .navbar.open {
    display: flex;
  }
}

/* === PF Gallery Fix (scoped, non-invasive) === */
.gallery-carousel{position:relative;overflow:hidden}
.gallery-track{display:flex;transition:transform .4s ease;will-change:transform}
.gallery-track>.slide{flex:0 0 100%;display:grid;place-items:center;aspect-ratio:16/9}
.gallery-track>.slide>img{width:100%;height:100%;object-fit:contain;display:block}

/* Mostrar la imagen completa en la galería */
.gallery-track > .slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;          /* fondo blanco alrededor */
  height: auto;              /* altura dinámica según la imagen */
}

.gallery-track > .slide > img {
  max-width: 100%;           /* que nunca se pase del ancho */
  max-height: 75vh;          /* que nunca ocupe más del 75% de la pantalla */
  width: auto;               /* mantener proporción */
  height: auto;              /* mantener proporción */
  object-fit: contain;       /* SIEMPRE mostrar la imagen completa */
}