/* ========================================================
   AFC | CABECERA DE VENTAS + PIE DE PAGINA INSTITUCIONAL
   Requiere style.css y ventas-menu.css antes de este archivo.
   ======================================================== */

/* VENTAS Y TIENDA ONLINE: boton contorneado e inclinado */
.header .menu .ventas-dropdown {
  position: relative;
  background: transparent !important;
}
.header .menu .ventas-dropdown > .ventas-trigger {
  position: relative;
  isolation: isolate;
  background: transparent !important;
  border: none !important;
  padding-inline: 21px !important;
  color: #fff !important;
  font: 700 12px/1.2 Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
  white-space: nowrap;
}
.header .menu .ventas-dropdown > .ventas-trigger::before {
  content: "";
  position: absolute;
  top: 19%; bottom: 19%; left: 8px; right: 8px;
  transform: skewX(-17deg);
  border: 2px solid #e60012;
  background: rgba(255,255,255,.025);
  pointer-events: none;
  z-index: -1;
  transition: border-color .2s, background .2s;
}
.header .menu .ventas-dropdown > .ventas-trigger:hover::before,
.header .menu .ventas-dropdown.abierto > .ventas-trigger::before,
.header .menu .ventas-dropdown > .ventas-trigger:focus-visible::before {
  background: rgba(230,0,18,.14);
  border-color: #ff2638;
}
.header .ventas-carrito {
  color: white !important;
  stroke: white !important;
  width: 23px !important;
  height: 23px !important;
}
.header .menu .ventas-dropdown .ventas-caret { color: #fff; }

/* FOOTER TOTALMENTE INDEPENDIENTE DE LOS FOOTERS ANTIGUOS */
.afc-footer-v2,
.afc-footer-v2 * {box-sizing: border-box;}
.afc-footer-v2 {
  width: 100%;
  color: #fff;
  background: radial-gradient(ellipse at 48% -20%,#303030 0%,#171717 50%,#0b0b0b 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  border-top: 1px solid #292929;
}
.afc-footer-v2 a { color: inherit; text-decoration: none; }
.afc-footer-v2 a:hover { color: #ff3646; }
.afc-footer-v2 a:focus-visible {outline: 2px solid #ff2237;outline-offset: 3px;}
.afc-footer-interior {max-width: 1250px; margin: 0 auto; padding: 26px 30px 20px;}
.afc-footer-ayuda {
  display:grid;
  grid-template-columns: minmax(270px, 34%) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom:1px solid #626262;
}
.afc-footer-ayuda-texto {border-right:1px solid #616161; padding-right: 27px;}
.afc-footer-ayuda-texto h2 {
  display:flex;align-items:center; gap:12px;
  margin: 0 0 6px;
  color:white;
  font:bold italic 25px/1.12 Arial, Helvetica, sans-serif;
}
.afc-barradiagonal {
  display:inline-block; width:11px; height:24px; flex:none;
  background:#e60012; transform:skewX(-23deg);
}
.afc-footer-ayuda-texto p {font-size: 13px; color: #e5e5e5; margin: 0 0 0 25px; max-width: 310px;}
.afc-footer-acciones {display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px;}
.afc-footer-cta {
  display:flex; align-items:center; justify-content:center; gap:10px;
  padding:13px 9px; min-height:59px;
  background:linear-gradient(180deg,#f00019,#d50012);
  border-radius:6px;
  color:#fff !important;
  font-size: 13px; font-weight: 800; line-height:1.14;
  text-align:left;
  box-shadow: 0 5px 12px rgba(0,0,0,.12);
  transition:transform .2s, background .2s;
}
.afc-footer-cta:hover {transform:translateY(-2px); background:#b90010;}
.afc-footer-cta svg {width:26px;height:26px;flex:none;}
.afc-footer-directorio {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px; padding:22px 3px 10px;
}
.afc-footer-columna {display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;}
.afc-footer-columna h3 {margin:0 0 5px;color:#fff;font-size:17px;line-height:1.2;font-weight:800;}
.afc-footer-columna a {font-size:13px;line-height:1.25;}
.afc-footer-base {border-top:1px solid #6a6a6a;background:rgba(0,0,0,.3);}
.afc-footer-base-interior {
  max-width:1250px; margin:auto; padding:14px 30px;
  display:grid;grid-template-columns: 1fr 2.1fr 1fr;align-items:center;gap:20px;
}
.afc-footer-logo {display:inline-flex;justify-self:start;align-items:center;}
.afc-footer-logo img {display:block;width:106px;height:auto;object-fit:contain;}
.afc-footer-base-interior p {margin:0;color:#dedede;font-size:12px;text-align:center;}
.afc-footer-social {display:flex;align-items:center;justify-content:flex-end;gap:11px;white-space:nowrap;}
.afc-footer-social > span {font-size:12px;color:#d5d5d5;}
.afc-footer-social a {display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid #808080;border-radius:50%;}
.afc-footer-social svg {width:17px;height:17px;}

@media(max-width:1120px) {
  .afc-footer-ayuda {grid-template-columns:1fr;gap:18px;}
  .afc-footer-ayuda-texto {border-right:none;padding-right:0;}
  .afc-footer-acciones {max-width:850px;}
  .header .menu .ventas-dropdown > .ventas-trigger {padding-inline:14px !important;}
  .header .menu .ventas-dropdown > .ventas-trigger::before {left:4px;right:4px;}
}
@media(max-width:760px) {
  .afc-footer-interior {padding:25px 18px 18px;}
  .afc-footer-acciones {grid-template-columns:1fr;}
  .afc-footer-cta {justify-content:flex-start;padding-inline:23px;}
  .afc-footer-directorio {grid-template-columns:repeat(2,minmax(0,1fr));row-gap:23px;}
  .afc-footer-base-interior {padding:18px;grid-template-columns:1fr;justify-items:center;gap:12px;}
  .afc-footer-logo {justify-self:center;}
  .afc-footer-social {justify-content:center;}
  .afc-footer-columna h3 {font-size:15px;}
  .afc-footer-ayuda-texto h2 {font-size:22px;}
}
@media(max-width:420px) {
  .afc-footer-directorio {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px;}
  .afc-footer-columna h3 {font-size:14px;}
  .afc-footer-columna a {font-size:13px;line-height:1.35;}
  .afc-footer-columna a {padding-block:3px;overflow-wrap:anywhere;}
}
@media(prefers-reduced-motion:reduce) {
  .afc-footer-cta {transition:none;}
}
