/* style.css */

/* Importación de fuentes desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800&display=swap');

/* Estilos generales */
html, body {
  margin: 0;
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  padding-top: 40px; /* altura de la navbar fija */
}

html {
  scroll-behavior: smooth;
}


/* Corrección global de desbordamientos en móvil */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}


@media (max-width: 768px) {
  body {
    padding-top: 70px; /* navbar más alta en móvil */
  }
}

/* Contenedor central reutilizable para layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .navbar .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}


/* Navbar fija en la parte superior */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #DBB1B3;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
}

/* Contenedor general */
.navbar .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 0 1rem;
}

/* Fila superior con logo y botón */
.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  transform: scale(1.3);
  transform-origin: left center;
}

.logo img {
  height: auto;
  max-height: 100%;
  width: 120px;
}

/* Botón hamburguesa */
#menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  #menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    margin-right: 1rem;
  }
}

/* Enlaces de navegación */
.nav-links {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  position: relative;
  transition: color 0.3s ease;
  font-weight: 400;
  font-size: 1.2rem;
}

/* Hover con línea inferior */
.nav-links a:hover::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #f2e1eb;
}

/* Móvil: menú en columna debajo del top-row */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.5rem 1rem;
    display: block;
  }

  .nav-links li {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .navbar .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .top-row {
    display: contents; /* elimina la fila extra en escritorio */
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    width: auto;
  }

  .nav-links a {
    padding: 0;
    display: inline-block;
  }

  #menu-toggle {
    display: none;
  }
}




/* Sección principal con imagen destacada */
.hero-image {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Sección de servicios */
.servicios {
  text-align: center;
  padding: 3rem 0.3rem;
  background-color: #ffffff; /* tono claro de fondo */
}

.servicios h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #333; /* tono vinculado al navbar */
}

/* Grid para organizar los botones de servicio */
.servicio-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0  100px;
}

/* Cada botón de servicio */
.servicio-item {
  text-decoration: none;
  color: #333;
  width: calc(22% - 1rem); /* cuatro columnas con espacio */
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.servicio-item:hover {
  transform: scale(1.05); /* zoom sutil al pasar el cursor */
}

/* Imagen de cada servicio */
.servicio-item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Texto debajo de la imagen */
.servicio-item p {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* Adaptación responsiva en móvil */
@media (max-width: 768px) {
  .servicio-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .servicio-item {
    width: 100%;
  }
}

/* Estados iniciales de animación */
.servicio-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

/* Estado cuando se activa la animación */
.servicio-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Escalonado de animaciones */
.servicio-item:nth-child(1) {
  transition-delay: 0s;
}
.servicio-item:nth-child(2) {
  transition-delay: 0.5s;
}
.servicio-item:nth-child(3) {
  transition-delay: 1s;
}
.servicio-item:nth-child(4) {
  transition-delay: 1.5s;
}


/* Sección Meet the Founder */
.founder {
  background-color: #f1e1ea;
  padding: 3rem 1rem;
}

/* Contenedor con dos columnas */
.founder-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  flex-wrap: wrap; /* permite que se adapte en pantallas más pequeñas */
}

/* Columna izquierda: texto */

.founder-content {
  flex: 1 1 60%;
  max-width: 500px;
  margin-left: 130px;         /* lo empuja hacia la derecha dentro del grid */
  padding-top: 1.7rem;         /* lo baja ligeramente respecto a la imagen */
}


.founder-content h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #000;
}

.founder-content .intro,
.founder-content .extra {
  font-size: 0.9rem;
  font-weight: 480;
  text-align: justify;
  line-height: 1.4;
  color: #333;
  transition: max-height 0.3s ease;
}

/* Botón para mostrar más/menos texto */
#toggle-btn {
  margin-top: 1.5rem;
  background-color: #8d1333;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

#toggle-btn:hover {
  background-color: #b52062;
}

/* Columna derecha: imagen */
.founder-image {
  flex: 1 1 35%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.founder-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

/* Imagen se amplía suavemente cuando se muestra el párrafo extra (usado con JS) */
.founder.expanded .founder-image img {
  transform: scale(1.03);
}

/* Responsivo para móvil */
@media (max-width: 768px) {
  .founder-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .founder-content,
  .founder-image {
    flex: 1 1 100%;
  }

  .founder-image img {
    max-width: 80%;
    margin-top: 2rem;
  }

  #toggle-btn {
    margin-bottom: 2rem;
  }

  .founder-content {
    margin-left: 0;          /* elimina el empuje hacia la derecha */
    padding: 0 1rem;         /* agrega espacio lateral cómodo */
    text-align: center;      /* centra el texto visualmente */
  }

  .founder-content .intro,
  .founder-content .extra {
    text-align: justify;      /* texto justificado para mejorar legibilidad */
  }
}  
  
/* Sección ¿QUIÉNES SOMOS? */
.quienes-somos {
  background-color: #f3c2d7;
  padding: 0rem 0rem 0rem 0rem;

}

/* Contenedor de imagen + contenido */
.quienes-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  margin-left: 0%;
  align-items: stretch; /* iguala altura entre columnas */
  gap: 2rem;
  flex-wrap: wrap;
}

/* Columna izquierda: imagen */
.quienes-img {
  flex: 1 1 40%;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}

.quienes-img img {
  width: 100%;
  height: 100%;             /* ocupa toda la altura del contenedor */
  object-fit: cover;
  border-radius: 0;         /* si quieres bordes limpios y pegado al borde */
}


/* Imagen se ajusta al expandirse la sección */


/* Columna derecha: contenido */
.quienes-content {
  flex: 1 1 55%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 1rem;
}

.quienes-content h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #000;
  padding: 0 3%;
}

.quienes-content .intro,
.quienes-content .extra {
  font-size: 1.2rem;
  font-weight: 480;
  text-align: justify;
  line-height: 1.4;
  color: #333;
  transition: max-height 0.3s ease;
  padding: 0 3%;
}

/* Botón leer más/menos */
#quienes-toggle {
  margin-top: 1.5rem;
  background-color: #8d1333;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.3s ease;
  max-width: 120px;
  margin-left: 15px;
}


#quienes-toggle:hover {
  background-color: #b52062;
}

/* Responsive móvil */
@media (max-width: 768px) {
  .quienes-container {
    flex-direction: column;
    align-items: center;
  }

  .quienes-img,
  .quienes-content {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .quienes-img {
    margin-bottom: 2rem;
  }

  .quienes-img img {
    height: auto;
    max-height: 400px;
    width: 100%;
  }

  .quienes-content {
    padding: 0 1rem;
    text-align: center;
  }

  .quienes-content .intro,
  .quienes-content .extra {
    text-align: justify;
  }

  #quienes-toggle {
    margin-bottom: 2rem;
  }
}

/* Estado inicial del contenido (oculto y desplazado) */
.quienes-content {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s ease, transform 1s ease;
}

/* Estado activado: aparece suavemente desde la derecha */
.quienes-content.visible {
  opacity: 1;
  transform: translateX(0);
}



/* ========== CONTACTO ========== */
.contacto {
  background-color: #f1e1ea;
  padding: 45px 15px;
}

.contact-title {
  text-align: center;
  font-size: 2.4rem; /* tamaño ligeramente mayor */
  margin-bottom: 35px;
  color: #8d1333;
  font-weight: bold;
}


.info-box p{
    font-size: large;
    line-height: 180%;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 150px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1100px;
  margin: auto;
}



.info-box h3 {
  font-size: 18px;
  color: #8d1333;
  margin-bottom: 8px;
}

.form-box {
  flex: 1;
  min-width: 225px;
  max-width: 420px;
  background-color: #f3c2d7;
  padding: 20px 25px;
  border-radius: 2px;
}

form#contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.name-row {
  display: flex;
  gap: 20px;
  flex-direction: row;
}

.form-box form {
  display: flex;
  flex-direction: column;
  gap: 30px; /* más espacio entre campos */
}

.form-box label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b1f2a;
  margin-bottom: 4px;
  display: block;
}

.form-box input,
.form-box textarea {
  padding: 9px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.8rem;
  width: 100%;
  box-sizing: border-box;
}

.name-row {
  display: flex;
  gap: 16px;
  flex-direction: row;
}

.name-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-box button {
  background-color: #9c2f5a; /* rosa oscuro */
  color: white;
  padding: 8px 16px;
  font-size: 0.8rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: fit-content;
  align-self: flex-start; /* alineado a la izquierda */
  transition: background-color 0.3s ease;
}

.form-box button:hover {
  background-color: #7c2448;
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    gap: 2rem;
  }

  .form-box {
    width: 100%;
    max-width: 100%;
  }

  .info-box {
    text-align: center;
  }

  .form-box button {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .container,
  .founder-container,
  .quienes-container,
  .contact-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Animaciones para elementos deslizables */
.contacto-slide {
  opacity: 0;
  transform: translateX(0);
  transition: transform 0.8s ease, opacity 0.8s ease;
  will-change: transform, opacity;
}

/* Deslizamiento desde la izquierda */
.contacto-slide.izquierda {
  transform: translateX(-50px);
}

/* Deslizamiento desde la derecha */
.contacto-slide.derecha {
  transform: translateX(50px);
}

/* Cuando entra en viewport */
.contacto-slide.visible {
  opacity: 1;
  transform: translateX(0);
}


/* ========== FOOTER ========== */
.footer {
  background-color: #8d1333;
  color: #ffffff;
  padding: 2rem 1rem;
  font-family: 'Montserrat', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  padding: 0px 40px;
}

/* Columna de navegación */
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-nav li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.footer-nav li a:hover {
  opacity: 0.7;
}

/* Columna de contacto */
.footer-contact h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

/* Línea decorativa */
.footer-line {
  border: none;
  border-top: 1px solid #ffffff;
  margin: 2rem auto;
  width: 90%;
}

/* Zona inferior: ícono + copyright */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0rem;
}

.footer-icons {
  display: flex;
  gap: 0.75rem; /* espacio entre íconos */
  margin-bottom: 0.5rem;
  flex-direction: row;
}

.footer-icons img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.footer-icons img:hover {
  transform: scale(1.1);
}

.footer-bottom img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1); /* asegura que el ícono se vea blanco */
  transition: transform 0.3s ease;
}

.footer-bottom img:hover {
  transform: scale(1.1);
}

.footer-copy {
  font-size: 0.75rem;
  text-align: center;
  color: #ffffff;

}

/* Responsive móvil */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-contact {
    margin-top: 1rem;
  }

  .footer-nav li a {
    font-size: 1rem;
  }
}

/* ======= Botón flotante de WhatsApp ======= */
.float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
}

.float:hover {
  text-decoration: none;
  color: #FFF;
  background-color: #1ab152;
  animation: shake 1s infinite;
}

.my-float {
  margin-top: 16px;
}

/* Animación opcional */
@keyframes shake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(2px, -2px); }
  50% { transform: translate(-2px, 2px); }
  75% { transform: translate(2px, -2px); }
  100% { transform: translate(0, 0); }
}

