/* Variables y reset */
:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #e74c3c;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --text: #333;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-padding-top: 40px; /* Ajustá este valor a la altura real de tu header */
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light);
}

/* Encabezado */
header {
  background: linear-gradient(135deg, var(--primary), #1a2530);
  color: var(--white);
  padding: 1.5rem 0;
  position: fixed; /* <-- Cambiado de relative a fixed */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* <-- Asegura que esté por encima del contenido */
  box-shadow: var(--shadow);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  main {
    padding-top: 120px; /* Ajusta según la altura de tu header */
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
}

.logo i {
  color: var(--secondary);
  margin-right: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.9)),
    url("https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxfDB8MXxyYW5kb218MHx8Y2VtZXRlcnl8fHx8fHwxNzE0MDA1MTM5&ixlib=rb-4.0.3&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=1080")
      no-repeat center center/cover;
  height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  position: relative;
   margin-top: 3rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: 2px solid var(--accent);
  cursor: pointer;
  margin: 0 10px;
}

.btn:hover {
  background-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: #e74c3c;
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary);
}

/* Secciones */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

/* Sobre el producto */
.about {
  background-color: var(--white);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-image {
  flex: 1;
  min-width: 300px;
  min-height: 600px;
  text-align: center;
  position: relative;
}

.about-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 5px solid var(--light);
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 2rem;
  background: var(--light);
  border-radius: 10px;
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.feature i {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.feature h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Como funciona */
.how-it-works {
  background-color: var(--light);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.step {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  position: relative;
  box-shadow: var(--shadow);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.step i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.step h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Galería de placas */
.gallery {
  background-color: var(--white);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product {
  background: var(--light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product:hover .product-image img {
  transform: scale(1.1);
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.price {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: bold;
  margin: 1rem 0;
}

.author-role {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* CTA */
.cta {
  text-align: center;
  background: linear-gradient(rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9)),
    url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxfDB8MXxyYW5kb218MHx8bWVtb3JpYWx8fHx8fHwxNzE0MDA1MTQy&ixlib=rb-4.0.3&q=80&utm_campaign=api-credit&utm_medium=referral&utm_source=unsplash_source&w=1080")
      no-repeat center center/cover;
  color: var(--white);
  padding: 5rem 0;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info div {
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 10px;
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}
.section-title2 {
  text-align: center;
  margin-bottom: 3rem;
}
.highlighted-memory {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.memory-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.memory-description {
  flex: 1;
  padding-right: 30px;
  max-width: 600px;
}

.memory-description h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.memory-description p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #333;
}

.memory-image {
  flex: 1;
  max-width: 400px;
}

.memory-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .memory-layout {
    flex-direction: column;
  }

  .memory-description,
  .memory-image {
    max-width: 100%;
    padding: 0;
  }

  .memory-description {
    margin-bottom: 30px;
  }
}
/* MODAL general */
#modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Contenedor interno que agrupa imagen */
.modal-wrapper {
  position: relative;
  text-align: center;
}

/* Imagen normal */
#modal-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  cursor: zoom-in;
  transition: all 0.3s ease;
  display: block;
  margin: auto;
}

/* Imagen agrandada (zoom) */
#modal-img.zoomed {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  cursor: zoom-out;
  display: block;
  margin: auto;
}

/* Modal en estado de zoom: permitir scroll */
#modal.zoomed-scroll {
  overflow: auto;
  display: block;
  text-align: center;
  padding: 200px 20px 20px; /* Deja espacio arriba para el botón fijo */
}

/* Botón "Salir" fijo en la esquina superior derecha */
#closeBtn {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #e53935;
  color: white;
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1101;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: background-color 0.2s ease;
}

#closeBtn:hover {
  background-color: #c62828;
}

@media (max-width: 768px) {
  nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  /* Oculta la nav-links del nav original */
  .nav-links {
    position: absolute;
    top: 100%; /* justo debajo del header */
    left: 0;
    width: 100%;
    background-color: var(--primary);
    flex-direction: row;
    justify-content: center;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 999;
  }

  .nav-links li {
    margin: 0 10px;
  }

  .nav-links a {
    padding: 0.5rem;
    display: inline-block;
    color: var(--white);
    font-size: 0.9rem;
  }
}
.menu-toggle {
  display: none; /* Oculto por defecto (se mostrará solo en móviles) */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.25));
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  cursor: pointer;
  margin-left: auto;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  position: relative;
  z-index: 1001;
  box-shadow: 
    0 4px 8px rgba(0,0,0,0.2),
    0 0 0 2px rgba(255,255,255,0.1) inset;
  outline: none; /* elimina outline por defecto */
  -webkit-tap-highlight-color: transparent; /* para móviles */
    animation: pulse-glow 1.5s infinite;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.7);
  border-radius: 50%;

}

.menu-toggle:hover {
  background: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(255,255,255,0.35));
  transform: scale(1.1); /* Eliminado el rotate(8deg) */
  box-shadow: 
    0 6px 12px rgba(0,0,0,0.3),
    0 0 0 3px rgba(255,255,255,0.2) inset;
}

.menu-toggle:active {
  transform: scale(0.95); /* Eliminado el rotate aquí también */
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: linear-gradient(90deg, #fff, #e0e0e0);
  margin: 4px 0;
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transform-origin: center;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Efecto de transformación a "X" cuando el menú está activo */
.menu-toggle.active {
  background: linear-gradient(145deg, rgba(231,76,60,0.3), rgba(231,76,60,0.4));
  border-color: rgba(231,76,60,0.5);
}

.menu-toggle.active span {
  background: linear-gradient(90deg, #fff, #ffcccc);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg) scaleX(1.1);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg) scaleX(1.1);
}

/* Efecto de brillo al interactuar (opcional, puedes mantenerlo o quitarlo) */
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.menu-toggle:hover::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: pulse-glow 1.5s infinite;
}

/* Móviles */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary);
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    margin: 10px 0;
  }

  nav {
    align-items: center;
    position: relative;
  }

  .logo {
    display: flex;
    align-items: center;
  }
}
.menu-toggle:focus {
  outline: none; /* elimina outline por defecto */
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.7);
  border-radius: 50%; /* sombra circular */
  animation: pulse-glow 1.5s infinite;
}

/* Evita borde cuadrado en Firefox */
.menu-toggle::-moz-focus-inner {
  border: 0;
}

/* Animación pulso circular */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(231, 76, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.7);
  }
}
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
.about-image {
    min-height: auto !important;
    max-width: 100%;
    padding-bottom: 0; /* elimina padding si hay */
    margin-bottom: 0; /* elimina margen si hay */
    margin-top: 1rem;
    margin-bottom: -3rem;
  }

  .about-image img {
    max-height: 400px; /* limita la altura máxima */
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  .about-text {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .hero {
    background-color: #0a0f1a; /* azul oscuro casi negro */
    background-image: none;
    padding-top: 80px; /* espacio para que no quede detrás del header */
    padding-bottom: 20px;
    margin: 0;
    height: auto;
    position: relative;
    z-index: 1;
    margin-top: 5rem;
  }

  .hero-content {
    background: transparent;
    border-radius: 0;
    padding: 0 1rem;
    margin: 0 auto;
    color: #fff; /* texto blanco para buen contraste */
    position: relative;
    z-index: 2; /* texto encima del fondo */
  }

  body {
    margin: 0;
    padding: 0;
    background: #000;
  }
}
  /* Estilos para página de Preguntas Frecuentes (FAQ) */

.faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  margin-top: 8.5rem; /* default para escritorio grande */
}

.faq-section h1 {
  text-align: center;
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 3rem;
  position: relative;
}

.faq-section h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.faq {
  margin-bottom: 2.5rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.5rem 2rem;
  transition: var(--transition);
}

.faq:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 1rem;
}

.faq-answer {
  font-size: 1.05rem;
  color: var(--text);
}

/* === RESPONSIVE === */

/* Tablets grandes y notebooks */
@media (max-width: 1024px) {
  .faq-section {
    margin-top: 9rem;
  }

  .faq-section h1 {
    font-size: 2.5rem;
  }

  .faq-question {
    font-size: 1.2rem;
  }

  .faq-answer {
    font-size: 1.03rem;
  }
}

/* Tablets y celulares grandes */
@media (max-width: 768px) {
  .faq-section {
    margin-top: 8.2rem;
  }

  .faq-section h1 {
    font-size: 2.2rem;
  }

  .faq-question {
    font-size: 1.1rem;
  }

  .faq-answer {
    font-size: 1rem;
  }
}

/* Celulares medianos */
@media (max-width: 600px) {
  .faq-section {
    margin-top: 8.5rem;
  }

  .faq-section h1 {
    font-size: 2rem;
  }

  .faq-question {
    font-size: 1rem;
  }

  .faq-answer {
    font-size: 0.95rem;
  }
}

/* Celulares pequeños */
@media (max-width: 400px) {
  .faq-section {
    margin-top: 8.8rem;
  }

  .faq-section h1 {
    font-size: 1.9rem;
  }

  .faq-question {
    font-size: 0.95rem;
  }

  .faq-answer {
    font-size: 0.9rem;
  }
}
