
/* =========================================
   VÉRTICE — PREMIUM STREETWEAR
   Negro · Blanco · Azul cielo
========================================= */

:root {
  --black: #15191F;
  --black-soft: #202630;
  --white: #FFFFFF;
  --sky: #B9DDF2;
  --sky-light: #EAF5FB;
  --text: #252B32;
  --muted: #737D87;
  --border: #E2E7EB;
  --surface: #F7F9FB;
  --shadow: 0 12px 35px rgba(21, 25, 31, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, .logo {
  font-family: "Montserrat", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; }

button, .hero-button, .header-button {
  cursor: pointer;
  transition: .25s ease;
}

/* HEADER */

.header {
  min-height: 88px;
  padding: 18px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--black);
  color: var(--white);
  border-bottom: 3px solid var(--sky);
}

.logo {
  display: inline-flex;
  flex-direction: column;
  color: var(--white);
  font-size: 27px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 4px;
}

.logo > span { color: var(--sky); display: inline; }

.logo small {
  margin-top: 6px;
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--sky);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  transition: color .2s ease;
}

.main-nav a:hover { color: var(--sky); }

.header-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: var(--sky);
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
}

.header-button:hover {
  background: var(--white);
  transform: translateY(-2px);
}

/* HERO */

.hero {
  position: relative;
  min-height: 590px;
  padding: 100px 9% 85px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 30%, #394D60 0, transparent 34%),
    linear-gradient(115deg, #15191F 0%, #202B37 100%);
  color: var(--white);
}

.hero::after {
  content: "V";
  position: absolute;
  right: 7%;
  top: 40px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(240px, 35vw, 480px);
  font-weight: 900;
  line-height: 1;
  color: rgba(185, 221, 242, .07);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #4383A9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.hero .eyebrow { color: var(--sky); }

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -3px;
}

.hero h1 span,
.about-content h2 span,
.catalog-heading h2 span,
.closing-section h2 span { color: var(--sky); }

.hero-description {
  max-width: 490px;
  margin: 25px 0 30px;
  color: #D7E0E8;
  font-size: 16px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 16px 23px;
  background: var(--sky);
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  border: 0;
}

.hero-button:hover {
  background: var(--white);
  transform: translateY(-3px);
}

.hero-side-text {
  position: absolute;
  z-index: 1;
  right: 6%;
  bottom: 105px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #D7E0E8;
  font-size: 10px;
  letter-spacing: 2px;
}

.hero-bottom {
  position: absolute;
  z-index: 1;
  bottom: 24px;
  left: 9%;
  right: 9%;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #CBD6DF;
  font-size: 9px;
  letter-spacing: 1.5px;
}

/* BRAND STRIP */

.brand-strip {
  min-height: 76px;
  padding: 18px 6%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--sky);
  color: var(--black);
}

.brand-strip p {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 3px;
}

.brand-strip span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

/* ABOUT */

.about-section {
  padding: 110px 9%;
  display: grid;
  grid-template-columns: .7fr 2fr;
  gap: 50px;
  background: var(--white);
}

.about-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.about-content { max-width: 680px; }

.about-content h2,
.catalog-heading h2 {
  margin: 0;
  color: var(--black);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -2px;
}

.about-content h2 span,
.catalog-heading h2 span { color: #4383A9; }

.about-content > p:last-child {
  max-width: 550px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 16px;
}

/* CATALOG */

.catalog {
  padding: 100px 7%;
  background: var(--surface);
}

.catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 45px;
}

.catalog-description {
  margin: 15px 0 0;
  color: var(--muted);
}

.catalog-number {
  color: #4383A9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

/* PRODUCT GRID */

#product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.collection-loading,
.collection-error {
  grid-column: 1 / -1;
  padding: 35px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.collection-error { color: #A33E3E; }

.empty-collection {
  grid-column: 1 / -1;
  padding: 65px 20px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
}

.empty-collection-line {
  display: block;
  width: 45px;
  height: 3px;
  margin: 0 auto 20px;
  background: #4383A9;
}

.empty-collection p {
  color: #4383A9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.empty-collection h3 {
  margin: 8px 0;
  color: var(--black);
  font-size: 27px;
  font-weight: 900;
}

.empty-collection > span:last-child {
  color: var(--muted);
  font-size: 13px;
}

/* PRODUCT CARD */

.product-card {
  position: relative;
  min-width: 0;
  padding: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow:
    0 3px 10px rgba(20, 35, 50, 0.06),
    0 12px 28px rgba(20, 35, 50, 0.08);
  transition:
    transform .3s ease,
    box-shadow .3s ease,
    border-color .3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #C5DCEB;
  box-shadow:
    0 6px 16px rgba(20, 35, 50, 0.09),
    0 18px 36px rgba(20, 35, 50, 0.12);
}

.product-card-number {
  min-height: 30px;
  padding: 3px 4px 10px;
  color: #7D8994;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

/* GALERÍA — FONDO AZUL CLARO SIN RECUADROS */

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 15px;
  width: 100%;
  overflow: hidden;
  background: #DCEEFF;
  border: none;
  border-radius: 0;
}

.product-image-frame {
  position: relative;
  min-width: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #DCEEFF;
  border: none;
  border-radius: 0;
}

.product-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  image-rendering: auto;
  transform: none;
  transition: none;
}

.product-card:hover .product-image-frame img {
  transform: none;
}

/* ETIQUETAS FRENTE Y ESPALDA */

.product-image-label {
  position: absolute;
  left: 9px;
  bottom: 9px;
  top: auto;
  z-index: 2;
  padding: 5px 2px;
  background: transparent;
  color: #15191F;
  border: none;
  border-radius: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(255, 255, 255, .95);
  pointer-events: none;
}

/* FOTOGRAFÍA NO DISPONIBLE */

.product-image-frame.image-error {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-frame.image-error::after {
  content: "FOTO NO DISPONIBLE";
  padding: 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.product-no-image {
  grid-column: 1 / -1;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DCEEFF;
  color: #315E78;
  font-family: "Montserrat", sans-serif;
  font-size: 35px;
  font-weight: 900;
  letter-spacing: 5px;
}

/* INFORMACIÓN DEL PRODUCTO */

.product-info {
  flex: 1;
  padding: 18px 5px 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.product-info-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-card .product-name {
  min-width: 0;
  margin: 0;
  color: var(--black);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .1px;
}

.product-card .product-price {
  flex-shrink: 0;
  margin: 0;
  color: #315E78;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
}

.product-card .product-description {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.product-card .product-description[hidden] { display: none; }

/* TALLAS Y COLORES */

.product-detail {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #EDF0F3;
}

.product-detail-label {
  color: #000000;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.product-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-option {
  min-width: 31px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid #15191F;
  color: #000000;
  font-size: 11px;
  font-weight: 900;
}

.product-color-option {
  padding: 6px 10px;
  background: #FFFFFF;
  border: 1px solid #15191F;
  color: #000000;
  font-size: 11px;
  font-weight: 900;
}

.product-option-text {
  color: #000000;
  font-size: 11px;
  font-weight: 700;
}

/* DISPONIBILIDAD */

.product-card .product-availability {
  width: fit-content;
  margin: auto 0 0;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.product-availability.available {
  background: #EAF5EE;
  color: #32724B;
}

.product-availability.available::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3D9660;
}

.product-availability.unavailable {
  background: #FBEDED;
  color: #A33E3E;
}

.product-availability.unavailable::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C34D4D;
}

/* CLOSING */

.closing-section {
  padding: 100px 20px;
  text-align: center;
  background: var(--black);
  color: var(--white);
}

.closing-section .eyebrow { color: var(--sky); }

.closing-section h2 {
  margin: 0 0 30px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.1;
}

/* FOOTER */

.footer {
  padding: 65px 7% 22px;
  background: #101318;
  color: var(--white);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 45px;
}

.footer-brand p {
  color: #BFC9D1;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: #D6DDE3;
  font-size: 13px;
}

.footer-links .eyebrow { color: var(--sky); }
.footer-links a:hover { color: var(--sky); }

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #39414B;
  color: #BFC9D1;
  font-size: 9px;
  letter-spacing: 1px;
}

/* ADMIN / LOGIN */

#login-form,
#product-form {
  width: 100%;
  max-width: 600px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

#login-form label,
#product-form label {
  display: block;
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  margin: 7px 0 17px;
  padding: 13px 14px;
  color: var(--black);
  background: #FFFFFF;
  border: 1px solid #CBD5DE;
  border-radius: 4px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #4383A9;
  box-shadow: 0 0 0 3px rgba(185, 221, 242, .5);
}

#login-form button,
#product-form button,
#logout-button {
  padding: 13px 20px;
  border: 0;
  background: var(--black);
  color: var(--white);
  font-weight: 800;
}

#login-form button:hover,
#product-form button:hover,
#logout-button:hover { background: #4383A9; }

#login-message,
#product-message {
  color: var(--black);
  font-weight: 700;
}

/* GENERAL */

section { scroll-margin-top: 25px; }
[hidden] { display: none !important; }

/* RESPONSIVE TIENDA */

@media (max-width: 1000px) {
  #product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .header { flex-wrap: wrap; }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 600px) {
  .header { padding: 18px 5%; }
  .logo { font-size: 23px; }

  .header-button {
    padding: 11px;
    font-size: 9px;
  }

  .main-nav { gap: 17px; }
  .main-nav a { font-size: 12px; }

  .hero {
    min-height: 550px;
    padding: 75px 7% 100px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 64px);
    letter-spacing: -2px;
  }

  .hero-side-text { display: none; }

  .hero-bottom {
    left: 7%;
    right: 7%;
    font-size: 8px;
  }

  .brand-strip { justify-content: center; }

  .about-section,
  .catalog { padding: 70px 6%; }

  .catalog-heading { display: block; }

  .catalog-number {
    display: block;
    margin-top: 20px;
  }

  #product-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card { padding: 10px; }
  .product-image-frame { aspect-ratio: 3 / 4; }

  .product-card .product-name { font-size: 14px; }
  .product-card .product-price { font-size: 16px; }

  .product-gallery { gap: 0; }

  .product-image-label {
    left: 6px;
    bottom: 6px;
    padding: 4px 2px;
    font-size: 8px;
  }

  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

/* PANEL ADMINISTRATIVO */

.admin-body {
  margin: 0;
  min-height: 100vh;
  background: #F3F6F9;
  color: #202630;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

/* MENÚ LATERAL */

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  background: #15191F;
  color: #FFFFFF;
}

.admin-logo {
  display: flex;
  flex-direction: column;
  padding: 8px 12px 35px;
  color: #FFFFFF;
  font-family: "Montserrat", sans-serif;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 4px;
}

.admin-logo small {
  margin-top: 7px;
  color: #B9DDF2;
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
}

.sidebar-label {
  padding: 0 12px;
  color: #AEB9C5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
}

.admin-nav .nav-item {
  width: 100%;
  min-height: 49px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #D9E0E7;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}

.admin-nav .nav-item span {
  color: #9BAAB8;
  font-size: 10px;
}

.admin-nav .nav-item:hover {
  background: #263340;
  color: #FFFFFF;
}

.admin-nav .nav-item.active {
  background: #B9DDF2;
  color: #15191F;
}

.admin-nav .nav-item.active span { color: #15191F; }

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding: 15px 10px 0;
  border-top: 1px solid #35404B;
}

.sidebar-bottom a,
.sidebar-bottom button {
  padding: 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #FFFFFF;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
}

.sidebar-bottom a:hover,
.sidebar-bottom button:hover { background: #263340; }

.sidebar-bottom button { color: #B9DDF2; }

/* CONTENIDO PRINCIPAL */

.admin-main {
  min-width: 0;
  padding: 35px 5%;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid #DFE5EA;
}

.admin-topbar h1 {
  margin: 5px 0 0;
  color: #15191F;
  font-size: clamp(20px, 3vw, 29px);
  font-weight: 800;
}

.admin-topbar .eyebrow { margin: 0; }

.admin-status {
  padding: 9px 13px;
  border-radius: 30px;
  background: #E5F3FA;
  color: #315E78;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
  white-space: nowrap;
}

/* SECCIONES */

.admin-page { padding-top: 40px; }

.admin-page h2 {
  margin: 8px 0;
  color: #15191F;
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -1px;
}

.admin-page > p:not(.eyebrow) {
  color: #6C7783;
  font-size: 14px;
}

.admin-page .eyebrow {
  color: #4383A9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

/* TARJETAS DE RESUMEN */

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0;
}

.admin-stat {
  min-height: 140px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid #E1E7EC;
  border-radius: 9px;
  box-shadow: 0 5px 18px rgba(21,25,31,.035);
}

.admin-stat span {
  color: #667381;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.admin-stat strong {
  color: #15191F;
  font-family: "Montserrat", sans-serif;
  font-size: 38px;
  font-weight: 900;
}

/* TARJETAS DE CONTENIDO */

.admin-panel-card {
  margin-top: 25px;
  padding: 28px;
  background: #FFFFFF;
  border: 1px solid #E1E7EC;
  border-radius: 9px;
  box-shadow: 0 5px 18px rgba(21,25,31,.035);
}

.admin-panel-card h3 {
  margin-top: 0;
  color: #15191F;
  font-size: 19px;
}

.admin-panel-card p {
  color: #687581;
  font-size: 14px;
}

/* FORMULARIO DE CAMISETAS */

#product-form {
  max-width: 760px;
  margin-top: 28px;
  padding: 32px;
  background: #FFFFFF;
  border: 1px solid #E1E7EC;
  border-radius: 9px;
  box-shadow: 0 5px 18px rgba(21,25,31,.035);
}

#product-form label {
  margin-top: 8px;
  color: #28323C;
  font-size: 12px;
  font-weight: 800;
}

#product-form input:not([type="file"]),
#product-form textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #DCE3E9;
  border-radius: 5px;
  background: #FAFCFD;
  color: #202630;
}

#product-form input:focus,
#product-form textarea:focus {
  outline: none;
  border-color: #4383A9;
  box-shadow: 0 0 0 3px rgba(185,221,242,.4);
}

#product-form button {
  min-height: 48px;
  padding: 13px 22px;
  border: 0;
  border-radius: 5px;
  background: #15191F;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

#product-form button:hover { background: #315E78; }

#product-form button:disabled {
  opacity: .6;
  cursor: wait;
}

#product-message {
  color: #315E78;
  font-size: 13px;
}

/* INVENTARIO */

#inventory-list p {
  padding: 13px;
  border-bottom: 1px solid #E6EBEF;
  color: #28323C;
}

/* GENERADOR DE IMÁGENES IA — ESTILOS CONSERVADOS */

.ai-generator-card {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 28px 0;
  padding: 30px;
  background: #FFFFFF !important;
  border: 1px solid #E2E7EB;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(21, 25, 31, 0.045);
}

.ai-generator-card .eyebrow {
  color: #4383A9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.ai-generator-card h3 {
  margin: 10px 0;
  color: #15191F;
  font-family: "Montserrat", sans-serif;
  font-size: 21px;
  font-weight: 800;
}

.ai-generator-card > p:not(.eyebrow) {
  max-width: 570px;
  color: #737D87;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

.ai-generator-card #ai-generate-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 48px;
  margin-top: 12px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: #315E78 !important;
  color: #FFFFFF !important;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ai-generator-card #ai-generate-button:hover {
  background: #15191F !important;
  transform: translateY(-2px);
}

.ai-generator-card #ai-generate-button:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

.ai-generator-card #ai-generator-message {
  margin-top: 13px;
  color: #737D87;
  font-size: 12px;
}

/* SUBIDA DE FOTOGRAFÍAS */

.image-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 15px 0 25px;
}

.image-upload-box {
  min-height: 175px;
  padding: 22px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #F7FBFE;
  border: 1.5px dashed #9FC9E2;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: .25s ease;
}

.image-upload-box:hover {
  background: #EAF5FB;
  border-color: #4383A9;
  transform: translateY(-2px);
}

.image-upload-box input[type="file"] { display: none; }

.upload-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #B9DDF2;
  border-radius: 50%;
  color: #315E78;
}

.upload-icon svg {
  display: block;
  width: 25px;
  height: 25px;
}

.image-upload-box strong {
  color: #15191F;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.image-upload-box small {
  color: #737D87;
  font-size: 11px;
}

/* ESTADO VISUAL DE IMÁGENES SELECCIONADAS */

.image-upload-box.has-file {
  background: #EFF8FD;
  border: 2px solid #4383A9;
}

.image-upload-box.has-file .upload-icon {
  background: #315E78;
  color: #FFFFFF;
}

.upload-file-name {
  display: block;
  max-width: 100%;
  margin-top: 5px;
  color: #315E78 !important;
  font-size: 11px !important;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.upload-preview {
  display: block;
  width: 85px;
  height: 100px;
  margin-top: 8px;
  object-fit: contain;
  border: none;
  border-radius: 0;
  background: #DCEEFF;
}

.upload-preview[hidden] { display: none !important; }

/* RESPONSIVE PANEL ADMINISTRATIVO */

@media (max-width: 850px) {
  .admin-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .admin-main { padding: 28px 4%; }
  .admin-stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .admin-layout { grid-template-columns: 1fr; }

  .admin-sidebar {
    position: relative;
    height: auto;
    padding: 18px;
  }

  .admin-logo { padding-bottom: 15px; }

  .admin-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-nav .nav-item {
    font-size: 10px;
    padding: 10px;
  }

  .sidebar-bottom { margin-top: 15px; }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-main { padding: 24px 18px; }
  #product-form { padding: 20px; }
  .ai-generator-card { padding: 20px; }

  .ai-generator-card #ai-generate-button { width: 100%; }

  .image-upload-grid { grid-template-columns: 1fr; }
}

/* =========================================
   FICHA DEL PRODUCTO — GALERÍA AMPLIADA
   Fondo azul grisáceo para destacar
   camisetas blancas y de otros colores
========================================= */

/* Imagen principal */

.vertice-modal-main-image {
  background: #E8EEF3 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

.vertice-modal-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 7px 10px rgba(20, 35, 50, 0.24));
}

/* Miniaturas */

.vertice-modal-thumbnails {
  background: transparent;
}

.vertice-modal-thumbnail {
  background: #E8EEF3 !important;
  border: 1px solid #D5E0E8;
  border-radius: 0;
  overflow: hidden;
}

.vertice-modal-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none;
}

/* SOMBRA SUAVE PARA LAS TARJETAS DEL CATÁLOGO */

.product-card {
  box-shadow:
    0 3px 10px rgba(20, 35, 50, 0.06),
    0 12px 28px rgba(20, 35, 50, 0.08);
}

.product-card:hover {
  box-shadow:
    0 6px 16px rgba(20, 35, 50, 0.09),
    0 18px 36px rgba(20, 35, 50, 0.12);
}

/* =========================================
   VÉRTICE — NUEVA ESTÉTICA DE PORTADA
   Cambios visuales solamente
========================================= */

/* HEADER Y LOGOTIPO */

.header {
  min-height: 88px;
  padding: 16px 6%;
  background: #111820;
  border-bottom: 1px solid rgba(185, 221, 242, .24);
}

.logo {
  position: relative;
  display: grid;
  grid-template-columns: 35px auto;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  font-size: 25px;
  letter-spacing: 3px;
}

.logo-symbol {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B9DDF2;
}

.logo-symbol svg {
  width: 100%;
  height: 100%;
}

.logo-name {
  grid-column: 2;
  grid-row: 1;
  line-height: 1;
}

.logo-name > span {
  color: #B9DDF2;
}

.logo small {
  grid-column: 2;
  grid-row: 2;
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 1.8px;
}

.main-nav {
  gap: 25px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E5EBF0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
}

.main-nav a svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: #B9DDF2;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease, stroke .25s ease;
}

.main-nav a:hover {
  color: #B9DDF2;
}

.main-nav a:hover svg {
  transform: translateY(-2px);
  stroke: #FFFFFF;
}

#vertice-cart-count {
  min-width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 221, 242, .55);
  border-radius: 50%;
  color: #B9DDF2;
  font-size: 10px;
}

/* PORTADA */

.hero {
  min-height: 650px;
  padding: 85px 8% 95px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, .92fr);
  align-items: center;
  gap: 45px;
  background:
    radial-gradient(ellipse at 75% 48%, rgba(70, 111, 139, .18), transparent 42%),
    linear-gradient(115deg, #121820 0%, #1B2631 58%, #17232D 100%);
}

.hero::after {
  content: "V";
  position: absolute;
  right: 12%;
  top: 45px;
  font-size: clamp(250px, 33vw, 430px);
  color: rgba(185, 221, 242, .035);
  z-index: 0;
}

.hero-content {
  z-index: 2;
  max-width: 610px;
  animation: verticeHeroEnter .8s ease both;
}

.hero .eyebrow {
  margin-bottom: 22px;
  color: #B9DDF2;
  font-size: 10px;
  letter-spacing: 2.8px;
}

.hero h1 {
  font-size: clamp(43px, 5.5vw, 73px);
  line-height: 1.06;
  letter-spacing: -3px;
}

.hero h1 span {
  color: #B9DDF2;
}

.hero-description {
  max-width: 420px;
  margin: 24px 0 29px;
  color: #C5D0D9;
  font-size: 14px;
  line-height: 1.85;
}

.hero-button {
  min-height: 49px;
  padding: 14px 19px;
  gap: 24px;
  background: transparent;
  border: 1px solid #9CCDE8;
  color: #FFFFFF;
  font-size: 10px;
  letter-spacing: 1.3px;
}

.hero-button span {
  color: #B9DDF2;
  font-size: 17px;
  transition: transform .25s ease;
}

.hero-button:hover {
  background: #B9DDF2;
  color: #15191F;
  transform: translateY(-2px);
}

.hero-button:hover span {
  color: #15191F;
  transform: translateX(4px);
}

/* CARRUSEL DE LA PORTADA */

.hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 510px;
  justify-self: end;
  padding: 12px;
}

.hero-visual-glow {
  position: absolute;
  inset: 12% 8%;
  z-index: -1;
  background: rgba(130, 183, 215, .13);
  filter: blur(55px);
  border-radius: 50%;
}

.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.65;
  overflow: hidden;
  background: #202B35;
  border: 1px solid rgba(185, 221, 242, .24);
  box-shadow: 0 25px 65px rgba(0, 0, 0, .28);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .85s ease, visibility .85s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .88;
  transform: scale(1.025);
  transition: transform 4s ease;
}

.hero-slide.active img {
  transform: scale(1.075);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(10, 15, 20, .58));
  pointer-events: none;
}

.slide-caption {
  position: absolute;
  z-index: 2;
  bottom: 23px;
  left: 23px;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero-carousel-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(17, 24, 32, .35);
  color: #FFFFFF;
  font-size: 17px;
  cursor: pointer;
  opacity: .75;
  transition: background .25s ease, opacity .25s ease;
}

.hero-carousel-arrow:hover {
  background: #B9DDF2;
  color: #15191F;
  opacity: 1;
}

.hero-carousel-prev {
  left: 14px;
}

.hero-carousel-next {
  right: 14px;
}

.hero-carousel-dots {
  position: absolute;
  z-index: 4;
  bottom: 27px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-carousel-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}

.hero-carousel-dots button.active {
  width: 19px;
  background: #B9DDF2;
}

.hero-visual-index {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 2px 0;
  color: #B9C9D5;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.hero-visual-index span:first-child {
  color: #B9DDF2;
}

/* TEXTOS LATERALES */

.hero-side-text {
  right: 3%;
  bottom: 125px;
  gap: 10px;
  color: #AEBCC8;
  font-size: 8px;
  letter-spacing: 1.6px;
}

.hero-bottom {
  color: #AEBCC8;
  font-size: 8px;
  letter-spacing: 1.7px;
}

/* FRANJA DE MARCA */

.brand-strip {
  min-height: 65px;
  background: #D7EAF5;
}

.brand-strip p {
  font-size: 15px;
  letter-spacing: 2.5px;
}

.brand-strip span {
  font-size: 9px;
  letter-spacing: 1.6px;
}

/* ANIMACIÓN DISCRETA */

@keyframes verticeHeroEnter {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ACCESIBILIDAD: REDUCIR MOVIMIENTO */

@media (prefers-reduced-motion: reduce) {
  .hero-content {
    animation: none;
  }

  .hero-slide,
  .hero-slide img,
  .hero-carousel-arrow,
  .hero-carousel-dots button {
    transition: none;
  }
}

/* TABLET */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .85fr);
    gap: 25px;
    padding-left: 6%;
    padding-right: 6%;
  }

  .hero-side-text {
    display: none;
  }

  .main-nav {
    gap: 18px;
  }
}

/* MÓVIL */

@media (max-width: 600px) {
  .header {
    padding: 16px 5%;
  }

  .logo {
    font-size: 22px;
  }

  .logo-symbol {
    width: 30px;
    height: 30px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 15px;
    overflow-x: auto;
    padding: 4px 0 7px;
  }

  .main-nav a {
    flex-shrink: 0;
    font-size: 11px;
  }

  .main-nav a svg {
    width: 15px;
    height: 15px;
  }

  .hero {
    min-height: auto;
    padding: 65px 7% 75px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 62px);
    letter-spacing: -2px;
  }

  .hero-description {
    max-width: 430px;
    font-size: 13px;
  }

  .hero-visual {
    width: 100%;
    max-width: 430px;
    justify-self: center;
    padding: 5px;
  }

  .hero-carousel {
    aspect-ratio: 4 / 4.4;
  }

  .hero-carousel-arrow {
    width: 32px;
    height: 32px;
  }

  .hero-bottom {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 4px;
    font-size: 7px;
  }

  .brand-strip {
    gap: 12px 20px;
    padding: 18px 5%;
  }

  .brand-strip p {
    font-size: 13px;
  }

  .brand-strip span {
    font-size: 8px;
  }
}

@media (max-width: 380px) {
  .main-nav {
    gap: 11px;
  }

  .main-nav a {
    font-size: 10px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-bottom {
    letter-spacing: .8px;
  }
}

/* FIN DEL CSS — VÉRTICE */

/* =========================================
   VÉRTICE — ADAPTACIÓN RESPONSIVE FINAL
   Ordenador · Tablet · Teléfono
   Mantiene la estética y las funciones
========================================= */

/* PANTALLAS GRANDES */

@media (min-width: 1400px) {
  .header {
    padding-left: max(6%, calc((100% - 1500px) / 2));
    padding-right: max(6%, calc((100% - 1500px) / 2));
  }

  .hero {
    padding-left: max(8%, calc((100% - 1450px) / 2));
    padding-right: max(8%, calc((100% - 1450px) / 2));
  }

  .catalog {
    padding-left: max(7%, calc((100% - 1500px) / 2));
    padding-right: max(7%, calc((100% - 1500px) / 2));
  }

  #product-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
  }
}

/* ORDENADOR Y PORTÁTIL */

@media (min-width: 901px) {
  .header {
    flex-wrap: nowrap;
  }

  .main-nav {
    flex-wrap: nowrap;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, .92fr);
  }

  .hero-visual {
    width: 100%;
  }

  #product-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-card {
    height: 100%;
  }
}

/* TABLETS */

@media (min-width: 601px) and (max-width: 900px) {
  .header {
    padding: 18px 4%;
    gap: 18px;
  }

  .logo {
    font-size: 22px;
  }

  .main-nav {
    width: auto;
    order: initial;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
  }

  .main-nav a {
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding: 70px 5% 90px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .85fr);
    gap: 22px;
  }

  .hero h1 {
    font-size: clamp(40px, 6vw, 58px);
    letter-spacing: -2px;
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-visual {
    max-width: 390px;
    padding: 5px;
  }

  .hero-carousel {
    aspect-ratio: 4 / 4.7;
  }

  .hero-side-text {
    display: none;
  }

  .hero-bottom {
    left: 5%;
    right: 5%;
  }

  .about-section {
    padding: 80px 7%;
    grid-template-columns: .65fr 2fr;
    gap: 30px;
  }

  .catalog {
    padding: 75px 5%;
  }

  #product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .product-card {
    height: 100%;
  }

  .admin-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .admin-sidebar {
    padding: 25px 12px;
  }

  .admin-main {
    padding: 25px 3%;
  }
}

/* TELÉFONOS */

@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }

  .header {
    min-height: auto;
    padding: 15px 5%;
    gap: 13px;
  }

  .logo {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .logo-symbol {
    width: 29px;
    height: 29px;
  }

  .logo small {
    font-size: 7px;
    letter-spacing: 1.4px;
  }

  .main-nav {
    width: 100%;
    order: 3;
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 11px;
  }

  .main-nav a svg {
    width: 15px;
    height: 15px;
  }

  /* PORTADA MÓVIL */

  .hero {
    min-height: auto;
    padding: 58px 6% 35px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }

  .hero-content {
    width: 100%;
    max-width: none;
  }

  .hero .eyebrow {
    margin-bottom: 17px;
    font-size: 9px;
    letter-spacing: 2px;
  }

  .hero h1 {
    font-size: clamp(39px, 11vw, 58px);
    line-height: 1.08;
    letter-spacing: -2px;
  }

  .hero-description {
    max-width: 100%;
    margin: 20px 0 24px;
    font-size: 13px;
    line-height: 1.75;
  }

  .hero-button {
    min-height: 47px;
    padding: 13px 16px;
    font-size: 9px;
  }

  .hero-side-text {
    display: none;
  }

  /* CARRUSEL MÓVIL */

  .hero-visual {
    width: 100%;
    max-width: 430px;
    padding: 4px;
    margin: 0 auto;
    justify-self: center;
  }

  .hero-carousel {
    width: 100%;
    aspect-ratio: 4 / 4.5;
  }

  .hero-slide img {
    object-position: center;
  }

  .slide-caption {
    left: 15px;
    bottom: 17px;
    font-size: 8px;
    letter-spacing: 1.4px;
  }

  .hero-carousel-arrow {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .hero-carousel-prev {
    left: 9px;
  }

  .hero-carousel-next {
    right: 9px;
  }

  .hero-carousel-dots {
    right: 14px;
    bottom: 21px;
    gap: 6px;
  }

  .hero-visual-index {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .hero-bottom {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 7px;
    letter-spacing: .7px;
  }

  .hero-bottom span {
    max-width: 48%;
  }

  .hero-bottom span:last-child {
    text-align: right;
  }

  /* FRANJA DE MARCA */

  .brand-strip {
    min-height: auto;
    padding: 18px 5%;
    display: flex;
    justify-content: center;
    gap: 12px 18px;
  }

  .brand-strip p {
    font-size: 12px;
  }

  .brand-strip span {
    font-size: 8px;
    letter-spacing: 1px;
  }

  /* NOSOTROS */

  .about-section {
    padding: 65px 7%;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .about-label {
    font-size: 9px;
  }

  .about-content h2,
  .catalog-heading h2 {
    font-size: clamp(31px, 9vw, 43px);
    letter-spacing: -1.5px;
  }

  .about-content > p:last-child {
    font-size: 14px;
    line-height: 1.75;
  }

  /* CATÁLOGO */

  .catalog {
    padding: 65px 5%;
  }

  .catalog-heading {
    display: block;
    margin-bottom: 28px;
  }

  .catalog-heading .eyebrow {
    font-size: 9px;
  }

  .catalog-description {
    font-size: 13px;
  }

  .catalog-number {
    display: block;
    margin-top: 15px;
    font-size: 9px;
  }

  /* DOS PRODUCTOS POR FILA EN MÓVIL */

  #product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card {
    min-width: 0;
    padding: 8px;
    height: 100%;
  }

  .product-card-number {
    min-height: 25px;
    padding: 3px 2px 7px;
    font-size: 8px;
    letter-spacing: 1px;
  }

  .product-gallery {
    width: 100%;
    margin-bottom: 10px;
    gap: 0;
  }

  .product-image-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
  }

  .product-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .product-image-label {
    left: 5px;
    bottom: 5px;
    padding: 3px 1px;
    font-size: 7px;
    letter-spacing: .7px;
  }

  .product-info {
    padding: 10px 2px 5px;
  }

  .product-info-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .product-card .product-name {
    font-size: 11px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .product-card .product-price {
    font-size: 13px;
  }

  .product-card .product-description {
    margin: 7px 0 10px;
    font-size: 10px;
    line-height: 1.5;
  }

  .product-detail {
    padding: 9px 0;
    gap: 6px;
  }

  .product-detail-label {
    font-size: 9px;
    letter-spacing: .8px;
  }

  .product-options {
    gap: 5px;
  }

  .product-option,
  .product-color-option {
    min-width: 25px;
    padding: 5px 6px;
    font-size: 9px;
  }

  .product-option-text {
    font-size: 9px;
  }

  .product-card .product-availability {
    padding: 6px;
    font-size: 8px;
    letter-spacing: .5px;
  }

  .empty-collection {
    padding: 40px 12px;
  }

  .empty-collection h3 {
    font-size: 21px;
  }

  /* CIERRE */

  .closing-section {
    padding: 70px 6%;
  }

  .closing-section h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  /* PIE DE PÁGINA */

  .footer {
    padding: 45px 6% 20px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    font-size: 12px;
  }

  .footer-links {
    gap: 10px;
    font-size: 11px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    font-size: 8px;
    line-height: 1.6;
  }

  /* MODAL DE PRODUCTO */

  .vertice-modal-main-image {
    width: 100%;
    max-height: 55vh;
  }

  .vertice-modal-main-image img {
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
  }

  .vertice-modal-thumbnails {
    max-width: 100%;
    overflow-x: auto;
    display: flex;
    gap: 8px;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
  }

  .vertice-modal-thumbnail {
    flex: 0 0 65px;
    width: 65px;
    height: 80px;
  }

  /* PANEL ADMINISTRATIVO */

  .admin-layout {
    display: flex;
    flex-direction: column;
  }

  .admin-sidebar {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    padding: 16px;
  }

  .admin-logo {
    padding: 5px 8px 15px;
    font-size: 22px;
  }

  .admin-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  .admin-nav .nav-item {
    min-width: 0;
    min-height: 42px;
    padding: 9px;
    font-size: 10px;
  }

  .sidebar-bottom {
    margin-top: 12px;
    padding-top: 10px;
  }

  .admin-main {
    width: 100%;
    padding: 22px 15px;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .admin-page {
    padding-top: 28px;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-stat {
    min-height: 110px;
    padding: 18px;
  }

  .admin-stat strong {
    font-size: 31px;
  }

  .admin-panel-card {
    padding: 18px;
  }

  #product-form {
    padding: 18px;
  }

  .image-upload-grid {
    grid-template-columns: 1fr;
  }
}

/* TELÉFONOS MUY PEQUEÑOS */

@media (max-width: 360px) {
  #product-list {
    gap: 8px;
  }

  .product-card {
    padding: 6px;
  }

  .product-card .product-name {
    font-size: 10px;
  }

  .product-card .product-price {
    font-size: 12px;
  }

  .product-option,
  .product-color-option {
    min-width: 22px;
    padding: 4px 5px;
    font-size: 8px;
  }

  .main-nav {
    gap: 13px;
  }

  .main-nav a {
    font-size: 10px;
  }
}

/* EVITAR DESBORDAMIENTOS */

img,
svg {
  max-width: 100%;
}

input,
textarea,
select,
button {
  max-width: 100%;
}

.admin-main,
.admin-page,
.admin-panel-card,
.product-card {
  min-width: 0;
}

/* FIN DE ADAPTACIÓN RESPONSIVE */
