/* estilos.css */

/* Variables de color para fácil personalización */
:root {
  --color-principal: #ff6f3c;
  --color-secundario: #ffa270;
  --color-fondo: #fff8f3;
  --color-texto: #333;
  --color-blanco: #fff;
  --color-error: #e74c3c;
  --color-gris-claro: #eee;
  --color-gris-medio: #bbb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-fondo);
  color: var(--color-texto);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* NAVBAR */

.navbar {
  background-color: var(--color-principal);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-blanco);
  user-select: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-blanco);
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-secundario);
  outline: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-blanco);
  cursor: pointer;
}

/* HERO SECTION */

.hero-section {
  position: relative; /* Añadido para que ::after se posicione relativo */
  background-image: url('img/portada.jpeg'); /* Cambiá por tu imagen */
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  height: 100vh;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden; /* para evitar scroll por el efecto */
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 0;
}

.hero-content {
  position: relative;
  max-width: 700px;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 800;
  text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

.hero-content span {
  color: var(--color-secundario);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 35px;
  font-weight: 500;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

.btn-primary {
  background-color: var(--color-secundario);
  color: var(--color-blanco);
  padding: 15px 40px;
  font-size: 1.1rem;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 112, 64, 0.6);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-principal);
  outline: none;
  box-shadow: 0 6px 20px rgba(255, 111, 60, 0.9);
}

/* MINI GALLERY */

.mini-gallery {
  position: relative;
  height: 300vh; /* largo para poder scrollear */
  background-color: #fff;
  overflow: hidden;
}

.mini-photo {
  position: absolute;
  width: 180px;   /* antes 120px */
  height: 180px;  /* antes 120px */
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0s;
}

.mini-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mini-photo.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* SECCIONES GENERALES */

.section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
  text-align: center;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: 700;
  color: var(--color-principal);
  user-select: none;
}

/* SERVICIOS */

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 40px;
  padding: 0 20px;
}

.servicio-card {
  background: var(--color-blanco);
  padding: 30px 25px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.servicio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(255, 111, 60, 0.4);
}

.servicio-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--color-principal);
}

/* TESTIMONIOS */

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 40px;
  padding: 0 20px;
}

.testimonio-card {
  background: var(--color-blanco);
  padding: 25px 30px;
  border-radius: 15px;
  font-style: italic;
  font-size: 1.1rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.05);
  position: relative;
  user-select: none;
}

.testimonio-card footer {
  margin-top: 15px;
  font-weight: 700;
  font-style: normal;
  color: var(--color-principal);
}

/* GALERÍA */

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 20px;
  padding: 0 20px;
}

.galeria-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.galeria-grid img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* CONTACTO */

.contacto-section form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  user-select: none;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border-radius: 10px;
  border: 2px solid var(--color-gris-claro);
  transition: border-color 0.3s ease;
  font-family: inherit;
  resize: vertical;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--color-principal);
  outline: none;
}

.error-message {
  color: var(--color-error);
  font-size: 0.875rem;
  position: absolute;
  bottom: -18px;
  left: 0;
  user-select: none;
}

/* FOOTER */

.footer {
  background-color: var(--color-principal);
  color: var(--color-blanco);
  padding: 25px 0;
  text-align: center;
  user-select: none;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  color: var(--color-blanco);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover,
.social-icons a:focus {
  color: var(--color-secundario);
  outline: none;
}

/* BOTÓN WHATSAPP FLOTA - MEJORADO */

.btn-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  font-size: 1.8em;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
  transform: scale(1.05);
}












/* MENÚ RESPONSIVE */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 65px;
    right: -100%;
    background-color: var(--color-principal);
    height: calc(100vh - 65px);
    width: 250px;
    flex-direction: column;
    gap: 25px;
    padding-top: 25px;
    transition: right 0.3s ease;
  }

  .nav-menu.nav-menu_visible {
    right: 0;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 400px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .btn-primary {
    padding: 12px 30px;
    font-size: 1rem;
  }
}
