/* =========================
   IDENTIDAD GHEM'S
========================= */

:root {
  --color-primary: #e9842a;
  --color-text: #1b1b1b;
  --color-gray-dark: #343434;
  --color-gray-medium: #6a6a6a;
  --color-gray-light: #8c8c8c;
  --color-border: #dddddd;
}


/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* TIPOGRAFÍA BASE */
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-text);
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

/* CONTENIDO DEL HEADER */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px; /* un poco más aire */
}

/* LOGO */
.logo img {
  height: 42px;
  display: block;
}

/* NAVEGACIÓN */
.nav {
  list-style: none;
  display: flex;
  gap: 32px;    
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

/* MENÚ HORIZONTAL */
.menu {
  list-style: none;
  display: flex;
  gap: 32px;
}

/* LINKS */
.menu a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.menu a:hover {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.menu a.active {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--color-primary);
}

/* SECCIONES (solo para prueba visual) */
section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* CONTENEDOR GENERAL */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* FOOTER */
.footer {
  background-color: #f2f2f2;
  margin-top: 60px;
  color: var(--color-text);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 24px 0;
  font-size: 14px;
  color: #333;
  flex-wrap: wrap;
}

.footer-brand h3 {
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 20px;
}

/* BLOQUE IZQUIERDO */
.footer-left h3 {
  color: var(--color-primary);
  font-size: 20px;
  margin-bottom: 4px;
}

.footer-left p {
  color: var(--color-gray-medium);
}

/* BLOQUE DERECHO */
.footer-right {
  display: flex;
  gap: 40px;
}

.footer-column p {
  margin-bottom: 4px;
  color: var(--color-gray-dark);
  font-size: 14px;
}

.footer-brand p {
  color: var(--color-gray-light);
}

.footer-contact p {
  color: var(--color-gray-light);
  margin-bottom: 6px;
}

/* LÍNEA + CRÉDITOS */
.footer-bottom {
  border-top: 1px solid #d0d0d0;
  text-align: center;
  padding: 12px 0;
  font-size: 13px;
  color: var(--color-gray-medium);
}

.footer-block {
  min-width: 200px;
}

.footer-copy {
  color: #666;
}

/* ESTRUCTURA GENERAL PARA FOOTER AL FINAL */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

/* El main ocupa el espacio disponible */
main {
  flex: 1;
  padding-top: 40px;
}

/* HERO */
.hero {
  background-color: #f7f7f7;
  padding: 80px 0;
}

.hero-content {
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  color: var(--color-gray-medium);
  margin-bottom: 24px;
}

/* INTRO */
.intro {
  padding: 60px 0;
}

.intro h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.intro p {
  max-width: 700px;
  color: var(--color-gray-medium);
}

/* CTA */
.cta {
  background-color: var(--color-primary);
  padding: 40px 0;
  color: #ffffff;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cta h2 {
  font-size: 24px;
}

/* BOTONES */
.btn-primary,
.btn-secondary {
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background-color: #d8741f;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-primary);
}

/* CONTACTO */
.contact {
  padding: 40px 0;
}

.contact h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.contact-intro {
  max-width: 600px;
  color: var(--color-gray-medium);
  margin-bottom: 40px;
}

/* RECUADRO MAPA + INFO */
.contact-card {
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 40px;
  background-color: var(--color-primary);
}

/* MAPA + INFO */
.contact-top {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

/* MAPA */
.contact-map {
  flex: 1;
}

.contact-map iframe {
  width: 100%;
  height: 360px; /* más grande */
  border: 0;
  border-radius: 8px;
}

/* INFO */
.contact-info {
  flex: 1;
}

.contact-info h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.contact-info p {
  margin-bottom: 8px;
  color: var(--color-gray-dark);
}

/* FORMULARIO */
.contact-form-wrapper {
  max-width: 700px;
  margin: 40px auto 0 auto;
  margin-top: 40px;
}

.contact-form-wrapper h3 {
  margin-bottom: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  resize: none;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  overflow-y: auto;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* CONTACTO – ESTILO SOBRE FONDO NARANJA */
.contact-card h3,
.contact-card p,
.contact-card strong {
  color: #ffffff;
}

.contact-map iframe {
  border-radius: 8px;
}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px 0;
}

.contact-socials img {
  width: 80px;
  height: 80px;
  filter: grayscale(0%);
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-socials img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
}

.about {
  padding: 80px 0;
}

.about-content {
  text-align: center;
}

.about h1 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 12px;
}

.about-intro {
  max-width: 700px;
  margin: 0 auto 60px;
  text-align: center;
  color: var(--color-gray-medium);
  font-size: 16px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.about-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.about-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.about-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-gray-medium);
}

.about-block h3 {
  margin-bottom: 15px;
  color: #f7931e;
}

.about-block p {
  line-height: 1.6;
  color: #444;
}

.about-cta {
  margin-top: 80px;
  padding: 48px 32px;
  background-color: #f7f7f7;
  border-radius: 12px;
  text-align: center;
}

.about-cta h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.about-cta p {
  max-width: 600px;
  margin: 0 auto 24px;
  color: var(--color-gray-medium);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.products {
  padding: 80px 0;
}

.products h1 {
  text-align: center;
  margin-bottom: 10px;
}

.products-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  color: #555;
}

/* ===== Categorías ===== */

.products-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 70px;
}

.category-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card.active {
  outline: 3px solid var(--color-primary);
  transform: translateY(-4px);
}

.category-card.active span {
  font-weight: 600;
}


/* Filtro naranja */
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 140, 0, 0.35);
  transition: background 0.3s ease;
}

.category-card span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  z-index: 1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Hover */
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

.category-card:hover::after {
  background: rgba(255, 140, 0, 0.55);
}

/* ===== Listado de productos ===== */

.products-list {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-bottom: 70px;
}

.product-card {
  background-color: #ffffff;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.product-card img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 16px;
}

.product-card-content {
  padding: 20px;
}

.product-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
  color: var(--color-text);
}

.product-card p {
  font-size: 14px;
  color: var(--color-gray-medium);
  line-height: 1.5;
}

/* Hover producto */
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.15);
}

.products-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-gray-medium);
  font-size: 16px;
}


/* ===== Catálogo ===== */

.products-catalog {
  text-align: center;
  margin-top: 20px;
}

.catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff8c00, #ffb347);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(255,140,0,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.catalog-btn img {
  width: 20px;
  height: 20px;
}

.catalog-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(255,140,0,0.45);
}


/* ===== Responsive ===== */

@media (max-width: 768px) {
  .products-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .products-categories {
    grid-template-columns: 1fr;
  }
}

.contact-form .btn-primary.loading {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  margin-top: 14px;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s ease;
}

.form-status.sending {
  color: #d8891c;
}

.form-status.success {
  color: #2e7d32;
  opacity: 1;
  transform: translateY(0);
}

.form-status.error {
  color: #b71c1c;
  opacity: 1;
  transform: translateY(0);
}
