/* =========================
   Papeles y Cartas - CSS
   Paleta: Blanco (#FFF), Rojo (#B22222), Azul (#1E3A8A)
   ========================= */

/* --------- Variables --------- */
:root{
  --bg: #ffffff;            /* principal */
  --ink: #1a1a1a;           /* texto principal */
  --muted:#4a4a4a;          /* texto secundario */
  --line:#e9ecf1;           /* líneas/sutil */
  --red:#B22222;            /* secundario (CTA/acento) */
  --red-2:#d32f2f;          /* hover */
  --blue:#1E3A8A;           /* terciario (header/enlaces) */
  --blue-2:#0D47A1;         /* hover */
  --chip:#f6f8fb;           /* bloques suaves */
  --shadow: 0 8px 24px rgba(2, 18, 64, .08);
}

/* --------- Base --------- */
*{ box-sizing:border-box; }
html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  line-height:1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }

/* --------- Hero Banner --------- */
.img{
  width:100%;
  height:auto;
  display:block;
}

/* --------- Top/Nav --------- */
.top{
  position: sticky;
  top:0;
  z-index: 9999;
  background: #fff;
  display:flex;
  align-items:center;
  gap:8px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
}
.logo-wrapper{
  width:110px;
  height:78px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.logo-wrapper img{
  width:100%;
  height:100%;
  object-fit: contain;
}
.text-wrapper{
  color: var(--blue);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  font-weight:600;
  border-radius: 12px;
  transition: all .2s ease;
  position:relative;
}
.text-wrapper:not(:first-of-type)::before{
  content:"";
  position:absolute;
  left:-6px; top:8px; bottom:8px; width:1px;
  background: var(--line);
}
.text-wrapper:hover{
  background: #f3f6ff;
}
.text-wrapper.activo{
  background: var(--blue);
  color:#fff;
}

/* --------- Estructura de secciones --------- */
.bottom{
  background: #f9fafc;
}
.section{
  background:#fff;
  margin: 18px auto;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-width: 1200px;
}
h1,h2,h3{
  margin: 4px 0 8px 0;
  font-weight: 800;
  letter-spacing:.2px;
  color: var(--ink);
  text-align:center;
}
h1{ font-size: clamp(24px, 2.6vw, 34px); }
h2{ font-size: clamp(18px, 2vw, 24px); }
h3{ font-size: clamp(16px, 1.6vw, 20px); color: var(--blue); }

.barra-separadora{
  width: 72px; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  border-radius: 999px;
  margin: 10px auto 18px;
}

/* --------- Grid de contenido --------- */
.content-wrapper{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
  align-items: center;
}
.text-content{
  font-size: 16px;
  color: var(--muted);
}
.text-content ul{
  padding-left: 18px;
  margin: 8px 0 0 0;
}
.text-content li{
  margin: 8px 0;
  color: var(--ink);
}
.image-content{
  max-width: 560px;
  margin: 0 auto;
  border-radius: 18px;
  overflow:hidden;
  background: var(--chip);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}
.image-content img{
  border-radius: 18px;
}

/* --------- Botones --------- */
.button-container{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items:center;
  margin-top: 14px;
}
.btn{
  --btn-bg: var(--red);
  --btn-fg: #fff;
  --btn-bg-h: var(--red-2);
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  letter-spacing:.2px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
  box-shadow: 0 2px 10px rgba(178,34,34,.18);
}
.btn:hover{ background: var(--btn-bg-h); transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn.outline{
  --btn-bg: #fff;
  --btn-fg: var(--blue);
  --btn-bg-h: #f3f6ff;
  border-color: var(--blue);
  box-shadow:none;
}
.btn.blue{
  --btn-bg: var(--blue);
  --btn-bg-h: var(--blue-2);
}



/* Fallback si tu build no soporta 'composes' (ÚSALO si no tienes postcss) */
#ContactoPyC, #ContactoPyC2, #VerCatalogoCartas, #VerCatalogoPapeleria{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 18px; border-radius: 12px; border:1px solid transparent;
  background: var(--red); color:#fff; font-weight:700; letter-spacing:.2px;
  cursor:pointer; transition: transform .12s ease, box-shadow .12s, background .12s;
  box-shadow: 0 2px 10px rgba(178,34,34,.18);
}
#ContactoPyC:hover, #ContactoPyC2:hover, #VerCatalogoCartas:hover, #VerCatalogoPapeleria:hover{
  background: var(--red-2);
}
#ContactoTelefono{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 18px; border-radius: 12px; border:1px solid var(--blue);
  background:#fff; color: var(--blue); font-weight:700; letter-spacing:.2px;
  cursor:pointer; transition: transform .12s ease, background .12s ease, color .12s ease;
}
#ContactoTelefono:hover{
  background:#f3f6ff; color: var(--blue-2);
}

/* --------- Bloques "overlap-2" --------- */
.overlap-2{
  padding: 16px;
  border-radius: 16px;
  background:#fff;
}

/* --------- Chat I.A. --------- */
.herramientas{ margin-top: 10px; }
.chat-container{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.header{
  display:flex; align-items:center; justify-content:center;
  background: var(--blue);
  color:#fff;
  padding: 14px 16px;
}
.titulo{
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight:800; letter-spacing:.4px;
  text-transform: uppercase;
}
#chat-box{
  background: #f4f7ff;
  min-height: 260px; max-height: 420px;
  overflow-y:auto;
  padding: 14px;
  color: var(--ink);
}
.input-container{
  position:relative;
  display:flex; align-items:center; gap:10px;
  padding: 12px;
  background:#f0f3ff;
  border-top:1px solid var(--line);
}
#user-input{
  flex:1;
  border:1px solid var(--line);
  background:#fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 48px 12px 12px;
  font-size: 15px; resize:none; height:52px; outline:none;
}
#send-btn{
  position:absolute; right: 22px; 
  width: 40px; height: 40px; border-radius: 50%;
  border:none; cursor:pointer;
  background: var(--red); color:#fff;
  display:grid; place-items:center;
  box-shadow: 0 2px 10px rgba(178,34,34,.18);
  transition: background .12s ease, transform .12s ease;
}
#send-btn:hover{ background: var(--red-2); transform: translateY(-1px); }

/* --------- Footer --------- */
footer{
  background: #0f1f56;
  color:#fff;
  padding: 20px 16px;
}
.footer-content{
  max-width: 1200px;
  margin: 0 auto;
}
.footer-links{
  text-align:center;
  margin: 0 0 8px 0;
}
.footer-links a{
  color:#fff; text-decoration:none; font-weight:600;
}
.footer-links a:hover{ text-decoration:underline; }
.footer-separator{
  border:none; height:1px; background:#2a3a6a; margin: 10px 0;
}
.footer-reserved, .footer-details{
  margin: 6px 0; font-size: 13px; color: #dce3ff;
}

/* --------- Pie (barra fina inferior opcional) --------- */
.pie{
  background: var(--blue);
  color:#fff;
  position: fixed; bottom:0; left:0; width:100%;
  height: 2px; z-index: 9999;
}

/* --------- Utilidades --------- */
.hidden{ display:none !important; }

/* --------- Responsivo --------- */
@media (max-width: 980px){
  .content-wrapper{
    grid-template-columns: 1fr;
  }
  .image-content{ order:-1; }
  .top{
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .text-wrapper{
    padding: 10px 10px;
  }
}

@media (max-width: 640px){
  .top{
    padding: 6px 8px;
  }
  .logo-wrapper{ width:92px; height:68px; }
  .text-wrapper{
    font-size: 14px;
    border-radius: 10px;
  }
  .section{
    padding: 16px 12px;
    margin: 14px 8px;
  }
  .button-container{
    flex-direction: column;
    align-items: stretch;
  }
  #send-btn{ right: 14px; width: 36px; height:36px; }
  #user-input{ height:48px; padding-right: 44px; }
}





.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }


.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 600px; /* ancho máximo */
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  aspect-ratio: 4/3; /* asegura proporción fija del contenedor */
  background: #f9f9f9; /* fondo neutro en caso de imágenes más pequeñas */
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%; /* fuerza al carrusel a ocupar la altura del contenedor */
}

.carousel-item {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* mantiene proporción y muestra todo */
  border-radius: 12px;
}


.product-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-card img{
  width: 100%;
  aspect-ratio: 1 / 1;      /* cuadrado perfecto */
  object-fit: cover;        /* llena el área recortando si es necesario */
}

.product-info{
  background: var(--blue);
  padding: 10px 12px;
  text-align: center;
}

.product-price{
  font-size: 18px;
  font-weight: 800;
  color: #ffd700;
  margin: 4px 0 0;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}

/* Efecto al pasar el mouse */
.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,.15);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;       /* cuadrado perfecto */
  object-fit: cover;         /* llena el área recortando */
  transition: transform .3s ease;
}

.product-card:hover img {
  transform: scale(1.05);   /* zoom suave en la imagen */
}

.product-info {
  background: var(--blue);
  padding: 14px 12px;
  text-align: center;
  color: #fff;
  transition: background .3s ease;
}

.product-card:hover .product-info {
  background: var(--blue-2);
}

.product-info h2 {
  font-size: 16px;
  margin: 6px 0;
  font-weight: 600;
  line-height: 1.4;
}

.product-price {
  font-size: 18px;
  font-weight: 800;
  color: #ffd700;
  margin: 4px 0 0;
}

/* 🟦 Responsividad */
@media (max-width: 768px) {
  .product-card {
    border-radius: 12px;
  }
  .product-info {
    padding: 12px 10px;
  }
  .product-info h2 {
    font-size: 14px;
  }
  .product-price {
    font-size: 16px;
  }
}


