* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body {
    background: #fff;
    color: #333;
    line-height: 1.5;
}


/* === SECCIÓN CONTACTO === */
.contacto-section {
  background-color: #fff;
  padding: 60px 8%;
  color: #222;
  text-align: center;
}

.contacto-header {
  background: #f3b334;
  color: #fff;
  padding: 40px 20px;
  border-radius: 16px;
  margin-bottom: 50px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.contacto-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.contacto-header p {
  font-size: 1rem;
  line-height: 1.6;
}

.contacto-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  justify-content: center;
  margin-top: 30px;
}

.contacto-card {
  background-color: #f8f8f8;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.contacto-card h3 {
  color: #266b58;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.contacto-card p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.contacto-mail {
  font-weight: 600;
  color: #266b58;
}

.contacto-mail a {
  color: #266b58;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contacto-mail a:hover {
  color: #f3b334;
}

.contacto-mail i {
  margin-right: 8px;
  color: #f3b334;
}

.contacto-tel {
  font-weight: bold;
  color: #000;
}

.contacto-horario {
  font-size: 0.9rem;
  color: #555;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .contacto-header h2 {
    font-size: 1.6rem;
  }
  .contacto-container {
    gap: 25px;
    margin-top: 30px;
  }
}

/* Contenedor general con fondo gris */
.contacto-completo {
  background-color: #d9d9d9;
  padding: 40px 8%;
  border-radius: 16px;
  margin: 40px 0;
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 50px;
}

/* Información corporativa */
.contacto-info h2 {
  font-size: 2rem;
  color: #f3b334;
  text-align: left;
  margin-bottom: 20px;
}

.contacto-info p {
  font-size: 1rem;
  text-align: left;
  margin-bottom: 15px;
  line-height: 1.6;
}

.contacto-info a {
  color: #266b58;
  text-decoration: none;
}

.contacto-info a:hover {
  color: #f3b334;
}

/* Mapa */
.contacto-mapa iframe {
  border-radius: 16px;
  width: 100%;
  height: 100%;
  min-height: 400px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contacto-mapa iframe {
    min-height: 300px;
  }
}

/* === FOOTER === */
.footer {
    background:#000;
    color: #fff;
    padding: 40px 5%;
    font-family: Arial, sans-serif;
}
.footer-row {
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr;
    gap: 25px;
}
.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
}
.footer-links h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 2px;
    background: #fff;
}
.footer-links.small-col h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.footer-links.small-col .footer-payments h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 600;
    text-align: center;
}
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links ul li {
    margin-bottom: 10px;
}
.footer-links ul li a {
    color: #eee;
    text-decoration: none;
    transition: 0.3s;
}
.footer-links ul li a:hover {
    color: #f3b334;
    padding: 2px 6px;
    border-radius: 4px;
}
.footer-links.small-col .social-link a {
    margin-right: 10px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #222;
    color: #fff;
    border-radius: 50%;
    transition: 0.3s ease;
}
.footer-links.small-col .social-link a:hover {
    transform: scale(1.3);
    background: #f3b334;
    color: #000;
}
.footer-payments {
    margin-top: 20px;
    text-align: center;
}
.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.payment-icons div {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.payment-icons div img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}
.payment-icons div img:hover {
    filter: brightness(0) invert(1);
}
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.85rem;
    color: #ccc;
}
.footer-bottom .direccion {
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .banner-nav nav {
        display: none;
        flex-direction: column;
        gap: 15px;
        background: #222;
        padding: 15px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }
    #nav.active {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .footer-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    .footer-links.small-col {
        margin: 0 auto;
    }
    .footer-links ul {
        display: inline-block; 
    }
    .footer-links ul li {
        margin-bottom: 8px;
    }
    .footer-payments {
        margin-top: 15px;
    }
    .payment-icons {
        justify-content: center;
    }
    .footer-links.small-col .social-link a {
        margin: 0 6px;
        margin-bottom: 10px;
    }
    .footer-bottom {
        margin-top: 20px;
        font-size: 0.8rem;
    }
}


/* ====== Form UI ====== */
.contacto-form-wrap{ margin-top: 18px; }
.contacto-form-card{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(0,0,0,.35);
  overflow:hidden;
}
.contacto-form-hd{
  padding: 16px 16px 10px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.contacto-form-hd h3{ margin:0 0 6px; font-weight: 950; }
.contacto-form-hd p{ margin:0; opacity:.85; }

.contacto-form{ padding: 14px 16px 16px; }
.cf-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cf-span-2{ grid-column: span 2; }
@media (max-width: 820px){
  .cf-grid{ grid-template-columns: 1fr; }
  .cf-span-2{ grid-column: auto; }
}

.cf-field label{
  display:block;
  font-weight: 900;
  font-size: .95rem;
  margin: 0 0 6px;
}
.cf-field input, .cf-field textarea{
  width:100%;
  box-sizing:border-box;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.32);
  color:#fff;
  outline:none;
}
.cf-field textarea{ resize: vertical; min-height: 110px; }
.cf-hint{ margin-top:6px; font-size:.88rem; opacity:.78; }

.cf-actions{ margin-top: 12px; display:flex; flex-direction:column; gap:8px; }
.cf-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 12px 14px; border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color:#fff; text-decoration:none;
  font-weight: 900; cursor:pointer;
}
.cf-btn.primary{ border:0; background:#f3b334; color:#000; }
.cf-note{ opacity:.75; font-size:.9rem; }

/* ====== Combo (dropdown filtrable) ====== */
.cf-combo{ position:relative; display:flex; gap:8px; align-items:center; }
.cf-combo input{ padding-right: 44px; }
.cf-combo-btn{
  position:absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.cf-combo-list{
  position:absolute;
  left:0; right:0;
  top: calc(100% + 8px);
  max-height: 240px;
  overflow:auto;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(15,15,15,.96);
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
  display:none;
  z-index: 50;
}
.cf-combo.open .cf-combo-list{ display:block; }
.cf-opt{
  padding: 10px 12px;
  cursor:pointer;
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.cf-opt:last-child{ border-bottom:0; }
.cf-opt:hover{ background: rgba(243,179,52,.10); }
.cf-opt small{ opacity:.75; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ====== Producto row + botón modal ====== */
.cf-product-row{ display:flex; gap:10px; align-items:stretch; }
.cf-search-btn{
  width: 52px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color:#fff; cursor:pointer;
}
.cf-search-btn:hover{ border-color: rgba(243,179,52,.55); }

/* ====== Modal ====== */
.cf-modal{ position:fixed; inset:0; display:none; z-index: 99999; }
.cf-modal.show{ display:block; }
.cf-modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }

.cf-modal-panel{
  position:relative;
  width: min(920px, 92vw);
  margin: 7vh auto;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(15,15,15,.95);
  box-shadow: 0 26px 70px rgba(0,0,0,.65);
  overflow:hidden;

  transform: translateY(10px);
  opacity: 0;
  animation: cfModalIn .20s ease forwards;
}
@keyframes cfModalIn{
  to{ transform: translateY(0); opacity:1; }
}
.cf-modal-panel.leaving{
  animation: cfModalOut .16s ease forwards;
}
@keyframes cfModalOut{
  to{ transform: translateY(10px); opacity:0; }
}

.cf-modal-hd{
  padding: 14px 14px;
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.cf-modal-x{
  width: 42px; height: 42px; border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff; cursor:pointer;
}
.cf-modal-bd{ padding: 12px 14px 16px; }

.cf-modal-search{
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
}
.cf-modal-search input{
  border:0; outline:none; background: transparent; color:#fff; width:100%;
}

.cf-modal-state{ margin: 10px 2px; opacity:.8; }
.cf-modal-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 860px){ .cf-modal-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .cf-modal-grid{ grid-template-columns: 1fr; } }

.pcard{
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  overflow:hidden;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.pcard:hover{ transform: translateY(-1px); border-color: rgba(243,179,52,.45); }
.pcard img{
  width:100%;
  height: 150px;
  object-fit: cover;
  display:block;
  background: rgba(0,0,0,.25);
}
.pcard .pd{ padding: 10px 10px 12px; }
.pcard .pn{ font-weight: 950; line-height:1.15; }
.pcard .pm{ margin-top:4px; opacity:.75; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size:.9rem; }

/* ==============================
   FIXES UI (colores + thumbnails)
   Pegar AL FINAL de contacto.css
============================== */

/* Inputs: menos oscuro (gris claro), texto oscuro */
.cf-field input,
.cf-field textarea{
  background: #f2f2f2 !important;
  color: #111 !important;
  border: 1px solid #d0d0d0 !important;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder{
  color: #666 !important;
}

/* Botoncito del combo (flecha): fondo claro + icono negro */
.cf-combo-btn{
  background: #ffffff !important;
  border: 1px solid #d0d0d0 !important;
  color: #111 !important;
}

/* Dropdown (estado/producto): blanco con letras negras */
.cf-combo-list{
  background: #ffffff !important;
  border: 1px solid #d0d0d0 !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.18) !important;
}

.cf-opt{
  color: #111 !important;
  border-bottom: 1px solid #ededed !important;
}

.cf-opt small{
  color: #444 !important;
  opacity: 1 !important;
}

.cf-opt:hover{
  background: rgba(243,179,52,.18) !important;
}

/* Botón lupa (al lado del producto): claro + icono negro */
.cf-search-btn{
  background: #ffffff !important;
  border: 1px solid #d0d0d0 !important;
  color: #111 !important;
}
.cf-search-btn i{ color:#111 !important; }

/* Modal: título blanco, inputs claros, lupa negra */
.cf-modal-panel{
  background: rgba(15,15,15,.95) !important;
}

.cf-modal-hd{
  color: #fff !important;
}

.cf-modal-hd *{
  color: #fff !important;
}

.cf-modal-search{
  background: #f2f2f2 !important;
  border: 1px solid #d0d0d0 !important;
}

.cf-modal-search i{
  color: #111 !important; /* lupa negra */
}

.cf-modal-search input{
  color: #111 !important;
}
.cf-modal-search input::placeholder{
  color: #666 !important;
}

/* Cards del modal: texto blanco (nombre + sku) */
.pcard .pn,
.pcard .pm{
  color: #fff !important;
}

/* Thumbnails más pequeñas */
.pcard img{
  height: 78px !important;   /* antes 150px */
  object-fit: cover !important;
}

/* Un poco más compacto el contenido del card */
.pcard .pd{
  padding: 8px 10px 10px !important;
}
.pcard .pm{
  margin-top: 3px !important;
  font-size: .85rem !important;
  opacity: .85 !important;
}