/* ============================================================
   Hosting para mi Correo y Web — Order Form Custom CSS
   standard_cart_child/css/custom.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --hmpw-primary:       #1558A0;
  --hmpw-primary-dark:  #0C3D72;
  --hmpw-primary-light: #E8F0FB;
  --hmpw-accent:        #F97316;
  --hmpw-accent-dark:   #C45D0A;
  --hmpw-bg:            #F4F7FC;
  --hmpw-text:          #0F172A;
  --hmpw-muted:         #64748B;
  --hmpw-border:        #DDE6F5;
  --hmpw-radius:        12px;
  --hmpw-radius-lg:     20px;
  --hmpw-shadow-sm:     0 2px 12px rgba(15,52,96,.08);
  --hmpw-shadow:        0 8px 28px rgba(15,52,96,.13);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  background: var(--hmpw-bg) !important;
  color: var(--hmpw-text) !important;
}

#order-standard_cart {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.header-lined {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--hmpw-border);
}
.header-lined h1 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: var(--hmpw-text) !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 6px !important;
}
.header-lined p {
  color: var(--hmpw-muted);
  font-size: 1rem;
  margin: 0;
}

/* ── Tarjetas ── */
#order-standard_cart .product {
  background: #fff;
  border: 1px solid var(--hmpw-border) !important;
  border-radius: var(--hmpw-radius-lg) !important;
  box-shadow: var(--hmpw-shadow-sm) !important;
  transition: box-shadow .28s, transform .28s;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}
#order-standard_cart .product:hover {
  box-shadow: var(--hmpw-shadow) !important;
  transform: translateY(-4px);
}
#order-standard_cart .product.featured {
  border-color: var(--hmpw-primary) !important;
  box-shadow: 0 0 0 2px var(--hmpw-primary), var(--hmpw-shadow) !important;
}
#order-standard_cart .product.featured::before {
  content: 'Mas Popular';
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--hmpw-primary);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  text-align: center;
  padding: 6px 0;
  letter-spacing: .04em;
  text-transform: uppercase;
  z-index: 1;
}

/* ── Header tarjeta ── */
#order-standard_cart .product header {
  background: var(--hmpw-primary-light) !important;
  padding: 20px 24px !important;
  border-bottom: 1px solid var(--hmpw-border) !important;
}
#order-standard_cart .product.featured header {
  padding-top: 36px !important;
}
#order-standard_cart .product header span[id$="-name"] {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--hmpw-text) !important;
  display: block;
}

/* ── Descripción ── */
#order-standard_cart .product-desc {
  padding: 20px 24px !important;
  flex: 1;
}
#order-standard_cart .product-desc p {
  color: var(--hmpw-muted) !important;
  font-size: .9rem !important;
  line-height: 1.6 !important;
  margin-bottom: 16px !important;
}
#order-standard_cart .product-desc ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
#order-standard_cart .product-desc ul li {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: .875rem !important;
  color: var(--hmpw-text) !important;
  padding: 6px 0 !important;
  border-bottom: 1px solid #F1F5F9 !important;
}
#order-standard_cart .product-desc ul li:last-child {
  border-bottom: none !important;
}
#order-standard_cart .product-desc ul li::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  background-color: var(--hmpw-primary-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231558A0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* ── Footer / precio ── */
#order-standard_cart .product footer {
  padding: 20px 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border-top: 1px solid var(--hmpw-border) !important;
  background: #FAFBFF !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px !important;
}
#order-standard_cart .product-pricing .price {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: var(--hmpw-primary) !important;
  display: block;
}

/* ── BOTON NARANJA ── */
#order-standard_cart .btn-order-now,
#order-standard_cart a.btn-order-now,
#order-standard_cart .btn-order-now.btn-success,
#order-standard_cart .btn-success.btn-order-now {
  background: #F97316 !important;
  background-color: #F97316 !important;
  border: none !important;
  border-color: #F97316 !important;
  border-radius: 50px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 14px 32px !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  box-shadow: 0 4px 14px rgba(249,115,22,.40) !important;
  transition: background .28s, transform .28s, box-shadow .28s !important;
}
#order-standard_cart .btn-order-now:hover,
#order-standard_cart a.btn-order-now:hover {
  background: #C45D0A !important;
  background-color: #C45D0A !important;
  border-color: #C45D0A !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(249,115,22,.50) !important;
}

/* ── Sidebar ── */
#order-standard_cart .cart-sidebar .panel,
#order-standard_cart .cart-sidebar .card {
  border-radius: var(--hmpw-radius-lg) !important;
  border: 1px solid var(--hmpw-border) !important;
  box-shadow: var(--hmpw-shadow-sm) !important;
  overflow: hidden;
}
#order-standard_cart .cart-sidebar .panel-heading,
#order-standard_cart .cart-sidebar .card-header {
  background: var(--hmpw-primary-light) !important;
  border-bottom: 1px solid var(--hmpw-border) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 600 !important;
  color: var(--hmpw-primary) !important;
}
#order-standard_cart .cart-sidebar .list-group-item {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: .9rem !important;
  padding: 12px 16px !important;
  border-color: var(--hmpw-border) !important;
  color: var(--hmpw-text) !important;
  transition: background .2s, color .2s !important;
}
#order-standard_cart .cart-sidebar .list-group-item:hover {
  background: var(--hmpw-primary-light) !important;
  color: var(--hmpw-primary) !important;
}
#order-standard_cart .cart-sidebar .list-group-item.active {
  background: var(--hmpw-primary) !important;
  border-color: var(--hmpw-primary) !important;
  color: #fff !important;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  #order-standard_cart .product-pricing .price { font-size: 1.4rem !important; }
}

/* ============================================================
   MEJORAS VISUALES — parecido al screenshot 2
   ============================================================ */

/* Tarjeta destacada — fondo azul oscuro */
#order-standard_cart .product.featured {
  background: #0F3460 !important;
  border-color: #0F3460 !important;
  box-shadow: 0 8px 32px rgba(15,52,96,.35) !important;
}
#order-standard_cart .product.featured header {
  background: rgba(255,255,255,.08) !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
}
#order-standard_cart .product.featured header span[id$="-name"] {
  color: rgba(255,255,255,.85) !important;
}
#order-standard_cart .product.featured .product-desc {
  background: transparent;
}
#order-standard_cart .product.featured .product-desc p {
  color: rgba(255,255,255,.75) !important;
}
#order-standard_cart .product.featured .product-desc ul li {
  color: rgba(255,255,255,.90) !important;
  border-bottom-color: rgba(255,255,255,.10) !important;
}
#order-standard_cart .product.featured .product-desc ul li::before {
  background-color: rgba(255,255,255,.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
#order-standard_cart .product.featured .product footer {
  background: rgba(255,255,255,.05) !important;
  border-top-color: rgba(255,255,255,.12) !important;
}
#order-standard_cart .product.featured .product-pricing .price {
  color: #fff !important;
}

/* Badge mas popular con estrella */
#order-standard_cart .product.featured::before {
  content: '★  Más popular';
  background: #F97316 !important;
  border-radius: 0 0 12px 12px;
  width: auto;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  padding: 6px 20px;
  white-space: nowrap;
}

/* Botón outline para tarjetas normales */
#order-standard_cart .product:not(.featured) .btn-order-now,
#order-standard_cart .product:not(.featured) a.btn-order-now {
  background: transparent !important;
  background-color: transparent !important;
  border: 2px solid #1558A0 !important;
  color: #1558A0 !important;
  box-shadow: none !important;
}
#order-standard_cart .product:not(.featured) .btn-order-now:hover,
#order-standard_cart .product:not(.featured) a.btn-order-now:hover {
  background: #1558A0 !important;
  background-color: #1558A0 !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(21,88,160,.25) !important;
}

/* Precio más prominente */
#order-standard_cart .product-pricing {
  text-align: center;
  padding: 4px 0;
}
#order-standard_cart .product-pricing .price {
  font-size: 2rem !important;
}

/* Separador entre secciones */
#order-standard_cart .product-desc ul li .feature-value {
  font-weight: 700 !important;
  color: #1558A0 !important;
  min-width: 48px;
}
#order-standard_cart .product.featured .product-desc ul li .feature-value {
  color: #F97316 !important;
}

/* ============================================================
   FIXES FINALES
   ============================================================ */

/* Fix ancho product-desc — sobreescribe float:left; width:60% del padre */
#order-standard_cart .products .product div.product-desc {
  float: none !important;
  width: 100% !important;
  padding: 20px 24px !important;
  font-size: 1rem !important;
  box-sizing: border-box !important;
}

/* Fix ancho footer */
#order-standard_cart .products .product footer {
  float: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Título tarjeta — fondo azul, texto blanco, centrado */
#order-standard_cart .product header {
  background: #1558A0 !important;
  text-align: center !important;
  padding: 16px 24px !important;
}
#order-standard_cart .product header span[id$="-name"] {
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}

/* Reduce espacio entre descripción y precio */
#order-standard_cart .product-desc {
  padding-bottom: 8px !important;
}
#order-standard_cart .product footer {
  padding-top: 12px !important;
}

/* Hover naranja en botón de tarjetas normales */
#order-standard_cart .product:not(.featured) .btn-order-now:hover,
#order-standard_cart .product:not(.featured) a.btn-order-now:hover {
  background: #F97316 !important;
  background-color: #F97316 !important;
  border-color: #F97316 !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(249,115,22,.35) !important;
}

/* Fix espaciado — restaurar gap entre tarjetas, reducir interno */
#order-standard_cart .products .col-md-6 {
  margin-bottom: 24px !important;
}
#order-standard_cart .product {
  margin-bottom: 0 !important;
}
#order-standard_cart .products .product div.product-desc {
  padding-bottom: 4px !important;
}
#order-standard_cart .product footer {
  padding-top: 8px !important;
}
