/* ==========================================================================
   VARIABLES CORPORATIVAS
   ========================================================================== */
   :root {
    /* Colores Primarios */
    --ferre-orange: #D29F13;
    --ferre-red: #B7312C;
    --ferre-dark: #414042;

    /* Colores Secundarios */
    --brand-blue: #115E67;
    --brand-green: #BCE194;
    --brand-purple: #840B55;

    --font-heading: "Montserrat", sans-serif;
    --font-sans: "Montserrat", sans-serif;
}

/* RESET Y BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--ferre-dark);
    line-height: 1.6;
}

/* HEADER */
.main-header {
  background: white;
  border-bottom: 2px solid var(--ferre-red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* CONTENEDOR */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.logo-nav {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ferre-dark);
}

/* CONTACTO */
.header-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* TELÉFONO */
.phone-link {
  font-weight: 700;
  color: var(--ferre-dark);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--ferre-red);
}

/* BOTÓN WHATSAPP */
.btn-whatsapp {
  background: var(--ferre-orange);
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: all 0.25s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.btn-whatsapp:hover {
  background: var(--ferre-red);
  transform: translateY(-1px);
}

/* HERO */
.hero {
  background: linear-gradient(
      180deg,
      var(--ferre-orange) 0%,
      var(--ferre-red) 100%
  );
  color: white;
  padding: 5rem 1rem;
  text-align: center;
}

.logo-hero {
    width: 220px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* CATEGORÍAS */
.grid-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--ferre-red);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.category-card p {
    padding: 1rem;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

/* MARCAS */
.marcas-section {
  background: var(--brand-blue);
  padding: 3rem 0;
  overflow: hidden;
  cursor: grab;
}

.marcas-section:active {
  cursor: grabbing;
}

.slider-track {
  display: flex;
  width: max-content;
  will-change: transform;
}


.slide {
  width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.slide img {
  max-width: 230px;
  max-height: 90px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  pointer-events: none;
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================
   UBICACIÓN
================================ */

.ubicacion-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* INFO */

.ubicacion-info h2 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 2rem;
  margin-bottom: 16px;
}

.ubicacion-info p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ferre-dark);
  margin-bottom: 16px;
}

/* HORARIO */

.horario-box {
  background: #f7f7f7;
  border-left: 4px solid var(--ferre-orange);
  padding: 16px;
  margin: 24px 0;
}

.horario-box p {
  margin: 4px 0;
  font-size: 0.95rem;
}

.domingo-cerrado {
  color: var(--ferre-orange, red) !important;
}

/* BOTONES */
.ubicacion-botones {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-ubicacion,
.btn-llamar {
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-block;
  transition: all 0.2s ease;
}

/* Botón mapa */
.btn-ubicacion {
  background: var(--ferre-dark);
  color: #ffffff;
}

.btn-ubicacion:hover {
  background: #000000;
}

/* Botón llamar */
.btn-llamar {
  background: transparent;
  color: var(--ferre-dark);
  border: 2px solid var(--ferre-dark);
}

.btn-llamar:hover {
  background: var(--ferre-dark);
  color: #ffffff;
}

/* MAPA */

.mapa-container {
  width: 100%;
  height: 320px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.mapa-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .ubicacion-grid {
    grid-template-columns: 1fr;
  }

  .mapa-container {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .ubicacion-info h2 {
    font-size: 1.6rem;
  }

  .ubicacion-section {
    padding: 40px 16px;
  }
}
@media (max-width: 768px) {
  .slide {
    width: 140px;
  }

  .slide img {
    max-width: 110px;
    max-height: 40px;
  }
}


/* =========================
   SECCIÓN CATEGORÍAS
   ========================= */

.categorias {
    padding: 5rem 1rem;
    background: #f8f8f8;
}

.categorias-container {
    max-width: 1200px;
    margin: 0 auto;
}

.categorias-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.categorias-subtitle {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: var(--ferre-dark);
    opacity: 0.9;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
}

.categoria-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.categoria-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.15);
}

.categoria-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.categoria-info {
    padding: 1.2rem;
    text-align: center;
}

.categoria-info p {
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.categoria-info span {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--ferre-red);
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .categorias-title {
        font-size: 2rem;
    }
}

/* =========================
   SECCIÓN COTIZACIÓN (MODIFICADA)
   ========================= */

   .cotiza-hero {
    background: linear-gradient(
        135deg,
        var(--ferre-red) 0%,
        #8f141f 100%
    );
    color: white;
    padding: 6rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cotiza-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top,
        rgba(255,255,255,0.12),
        transparent 60%
    );
}

.cotiza-hero h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
}

.cotiza-hero p {
    font-size: 1.35rem;
    max-width: 850px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
    opacity: 0.95;
    position: relative;
}

.btn-cotiza-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: white;
    color: var(--ferre-red);
    padding: 1.3rem 4.5rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1.15rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    position: relative;
}

.btn-cotiza-hero:hover {
    background: var(--ferre-orange);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}

.btn-cotiza-hero:active {
    transform: translateY(-1px);
}

/* Pulso sutil para llamar acción */
@keyframes pulseCTA {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    70% { box-shadow: 0 0 0 18px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.btn-cotiza-hero {
    animation: pulseCTA 2.8s infinite;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .cotiza-hero {
        padding: 4.5rem 1.2rem;
    }

    .cotiza-hero h2 {
        font-size: 2.2rem;
    }

    .cotiza-hero p {
        font-size: 1.15rem;
    }

    .btn-cotiza-hero {
        width: 100%;
        max-width: 360px;
        padding: 1.2rem 2rem;
    }
}

/* FOOTER */
.main-footer {
    background: var(--ferre-dark);
    color: white;
    padding: 4rem 1rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-brand h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-contact h4 {
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--ferre-orange);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-legal {
    opacity: 0.6;
    font-size: 0.85rem;
}

/* BOTONES WHATSAPP Y LLAMADA FLOTANTES */
.float-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

/* BOTÓN BASE */
.float-btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  text-decoration: none;

  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  overflow: visible; /* 🔑 */
}

/* ICONO */
.float-btn svg {
  width: 22px;
  height: 22px;
  z-index: 2;
}

/* TEXTO DESPLEGABLE */
.float-btn span {
  position: absolute;
  right: 100%; /* 👈 aparece hacia la izquierda */
  margin-right: 12px;

  background: inherit;
  color: white;

  padding: 10px 16px;
  border-radius: 999px;

  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;

  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;

  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* HOVER */
.float-btn:hover span {
  opacity: 1;
  transform: translateX(0);
}

/* COLORES */
.float-btn.wa {
  background: #25D366;
}

.float-btn.call {
  background: var(--ferre-red);
}


/* RESPONSIVO */
@media (max-width: 768px) {
    .ubicacion-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .cotiza-box h2 {
        font-size: 2rem;
    }
}
