/* =========================
   RESET SIMPLE
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #111111;
}

/* =========================
   CONTENEDOR PRINCIPAL
   ========================= */
.page {
  min-height: 100vh;
  border: 4px solid #ffcc00;   /* borde amarillo */
  border-radius: 18px;
  margin: 12px;
  display: flex;
  flex-direction: column;
}

/* =========================
   HEADER
   ========================= */
.site-header {
  border-bottom: 2px solid #ffe45c;
  padding: 10px 18px;
  background: linear-gradient(to right, #ffffff, #fff8d1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.875rem;
  color: #555555;
}

/* NAV */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
}

.main-nav a {
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #333333;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
  background-color: #ffec99;
  border-color: #ffd43b;
}

.main-nav a.active {
  background-color: #ffcc00;
  color: #111111;
  font-weight: 600;
}

/* BOTÓN NAV MOBILE */
.nav-toggle {
  display: none;
  border: none;
  background: #ffcc00;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 1.1rem;
}

/* =========================
   MAIN
   ========================= */
.site-main {
  flex: 1 1 auto;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 18px;
}

/* HERO INDEX */
.hero {
  padding: 14px 0 22px;
  border-bottom: 1px solid #f1f1f1;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 6px;
}

.hero-note {
  font-size: 0.9rem;
  color: #555555;
}

/* HERO IMAGE */
.hero-image-wrapper {
  position: relative;
  width: 260px;
  max-width: 40%;
  flex-shrink: 0;
}

.hero-circle {
  position: absolute;
  inset: 10%;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffec99, #ffd43b);
  opacity: 0.6;
  filter: blur(3px);
}

.hero-image {
  position: relative;
  width: 100%;
  border-radius: 24px;
  background-color: #f5f5f5;
  object-fit: contain;      /* NO recorta la cámara */
  aspect-ratio: 4 / 3;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

/* GRID DE CÁMARAS */
.camera-grid-section {
  margin-top: 24px;
}

.camera-grid-section h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.camera-card {
  border: 2px solid #ffde59;
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.02);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.camera-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  border-color: #ffcc00;
}

/* Imagen en cards */
.camera-thumb {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
  background-color: #f5f5f5;   /* fondo neutro para contener la cámara */
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-thumb img {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: contain;         /* NO recorta */
  display: block;
  transition: transform 0.25s ease;
}

.camera-card:hover .camera-thumb img {
  transform: scale(1.03);
}

.camera-card h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.camera-tag {
  font-size: 0.8rem;
  color: #665c00;
  background-color: #fff7c2;
  padding: 2px 8px;
  border-radius: 999px;
  align-self: flex-start;
}

.camera-card p {
  font-size: 0.9rem;
  line-height: 1.4;
}

.camera-points {
  font-size: 0.85rem;
  padding-left: 18px;
  line-height: 1.4;
}

/* CTA */
.cta-section {
  margin-top: 32px;
  padding: 18px;
  border-radius: 16px;
  border: 2px dashed #ffcc00;
  background-color: #fffdf1;
}

.cta-section h3 {
  margin-bottom: 8px;
}

.cta-section p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.cta-contact {
  margin-top: 6px;
  font-weight: 500;
}

/* BOTONES */
.btn-primary {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background-color: #ffcc00;
  color: #111111;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* =========================
   PÁGINAS DE CÁMARA
   ========================= */
.camera-hero {
  padding: 10px 0 16px;
  border-bottom: 1px solid #f1f1f1;
}

.camera-hero-layout {
  display: flex;
  align-items: center;
  gap: 20px;
}

.camera-hero-text {
  flex: 2 1 0;
}

.camera-hero-image {
  flex: 1 1 0;
  max-width: 320px;
  background-color: #f5f5f5;
  border-radius: 20px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-hero-image img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;    /* mostramos la cámara completa */
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.camera-hero h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.camera-hero p {
  font-size: 0.95rem;
  line-height: 1.4;
}

.camera-hero-tag {
  font-size: 0.8rem;
  color: #665c00;
  background-color: #fff7c2;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.camera-section {
  margin-top: 20px;
}

.camera-section h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.camera-section ul {
  padding-left: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.camera-section p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 6px;
}

/* MANUALES */
.manual-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.manual-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: #1f4b99;
  padding: 6px 10px;
  border-radius: 8px;
  background-color: #f4f6ff;
  border: 1px solid #d0dcff;
}

.manual-link:hover {
  background-color: #e6ecff;
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
  border-top: 2px solid #ffe45c;
  padding: 12px 18px;
  text-align: center;
  font-size: 0.8rem;
  background: #fffef3;
}

.footer-small {
  margin-top: 4px;
  color: #666666;
}

/* =========================
   ANIMACIONES (scroll / fade)
   ========================= */
.js-fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* pequeño “flotado” del hero sin cortar imagen */
.hero-image-wrapper .hero-image {
  animation: floatCam 4s ease-in-out infinite alternate;
}

@keyframes floatCam {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}

/* =========================
   RESPONSIVE
   ========================= */

/* Tablets */
@media (max-width: 1024px) {
  .camera-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .camera-hero-layout {
    flex-wrap: wrap;
  }

  .camera-hero-image {
    max-width: 260px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .page {
    margin: 6px;
    border-radius: 12px;
  }

  .site-main {
    padding: 14px;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-subtitle {
    font-size: 0.8rem;
  }

  .hero-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .hero-image-wrapper {
    max-width: 100%;
    width: 100%;
  }

  /* NAV MOBILE */
  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    width: 100%;
    margin-top: 8px;
    display: none; /* se muestra con JS */
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 6px;
  }

  .main-nav a {
    display: block;
    text-align: left;
  }

  .camera-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .camera-hero-layout {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .camera-hero-image {
    width: 100%;
    max-width: 100%;
  }
}
