/*
Theme Name: Andamios MTM
Theme URI: https://andamiosmtm.cl
Author: Andamios MTM
Author URI: https://andamiosmtm.cl
Description: Template estático para WordPress - Sitio de arriendo y venta de andamios e implementos de construcción en Chile
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: andamios-mtm
Tags: construction, scaffolding, rental, business
*/

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Andamios MTM Brand Colors - Industrial & Safety Focused */
  --background: 0 0% 100%;
  --foreground: 0 0% 10%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 20%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 10%;
  --primary: 210 100% 20%;
  --primary-foreground: 0 0% 100%;
  --secondary: 50 93% 54%;
  --secondary-foreground: 0 0% 10%;
  --muted: 0 0% 91%;
  --muted-foreground: 0 0% 30%;
  --accent: 0 0% 30%;
  --accent-foreground: 0 0% 100%;
  --success: 120 61% 34%;
  --success-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;
  --border: 0 0% 91%;
  --input: 0 0% 91%;
  --ring: 210 100% 20%;
  --radius: 0.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header,
header#header,
header.site-header,
header#header.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 50 !important;
  transition: all 0.3s ease !important;
  background: hsl(210, 100%, 20%) !important;
  background-color: hsl(210, 100%, 20%) !important;
  box-shadow: 0 4px 6px -1px hsla(0, 0%, 0%, 0.1) !important;
}

header::before {
  display: none;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  gap: 2rem;
  flex-wrap: nowrap;
  position: relative;
  z-index: 1;
}

.logo,
header .logo,
header#header .logo {
  font-size: 3.5rem;
  font-weight: 900;
  color: hsl(0, 0%, 100%) !important;
  flex-shrink: 0;
  z-index: 1;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  min-height: 100px;
}

.logo img,
.header-logo-img,
header .logo img {
  max-height: 80px !important;
  height: 80px !important;
  width: auto !important;
  object-fit: contain;
}

.logo h1 {
  margin: 0;
  font-size: 3.5rem;
  line-height: 1.2;
  white-space: nowrap;
}

.logo span {
  color: hsl(var(--secondary));
  font-size: 3.5rem;
  transition: color 0.3s ease;
}

/* Navigation */
nav.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
  margin: 0 2rem;
}

nav.desktop-nav a,
header nav.desktop-nav a,
header#header nav.desktop-nav a {
  color: hsl(0, 0%, 100%) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
}

nav.desktop-nav a:hover {
  color: hsl(var(--secondary));
}

.mobile-menu-btn {
  display: block;
  background: hsl(0, 0%, 100%);
  border: 2px solid hsl(0, 0%, 100%);
  border-radius: 8px;
  color: hsl(var(--primary));
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mobile-menu-btn:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--primary));
  transform: scale(1.05);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: hsl(0, 0%, 100%);
  z-index: 999;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 3px solid hsl(210, 100%, 20%);
  background: hsl(210, 100%, 20%);
  color: hsl(0, 0%, 100%);
}

.mobile-menu-header h3 {
  color: hsl(0, 0%, 100%);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}

.mobile-menu-close {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: hsl(0, 0%, 100%);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.mobile-menu-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  background: hsl(0, 0%, 100%);
}

.mobile-menu-content a {
  display: flex;
  align-items: center;
  color: hsl(0, 0%, 20%);
  text-decoration: none;
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.mobile-menu-content a:not(.mobile-menu-phone):not(.mobile-menu-cta):hover {
  background: hsl(210, 100%, 20%);
  color: hsl(0, 0%, 100%);
  border-color: hsl(210, 100%, 20%);
}

.mobile-menu-phone {
  margin-top: 1rem;
  padding: 1rem;
  background: hsl(50, 93%, 54%);
  border-radius: 8px;
  gap: 0.75rem;
  font-weight: 700;
  color: hsl(0, 0%, 10%);
  border: 2px solid hsl(50, 93%, 54%);
}

.mobile-menu-phone:hover {
  background: hsl(50, 93%, 50%);
  border-color: hsl(50, 93%, 50%);
}

.mobile-menu-cta {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
  padding: 1rem;
  background: hsl(210, 100%, 20%);
  color: hsl(0, 0%, 100%);
  border: 2px solid hsl(210, 100%, 20%);
}

.mobile-menu-cta:hover {
  background: hsl(210, 100%, 15%);
  border-color: hsl(210, 100%, 15%);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(90deg, hsl(var(--secondary)), hsl(50, 93%, 48%));
  color: hsl(var(--secondary-foreground));
  box-shadow: 0 10px 25px -5px hsla(50, 93%, 54%, 0.4);
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Override para botón cotización en header */
.btn-cotizacion.btn-primary {
  background: hsl(50, 93%, 54%) !important;
  color: hsl(0, 0%, 10%) !important;
  box-shadow: none;
}

.btn-cotizacion.btn-primary:hover {
  background: hsl(50, 93%, 50%) !important;
  color: hsl(0, 0%, 10%) !important;
  opacity: 1;
}

.btn-cotizacion.btn-primary span {
  color: hsl(0, 0%, 10%) !important;
}

.btn-outline {
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
  background: transparent;
}

.btn-outline:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 140px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(210, 100%, 20%, 0.95), hsla(50, 93%, 54%, 0.85));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
  animation: fadeIn 0.6s ease-out;
}

.hero h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 900;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.375rem;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-usps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-usp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.hero-usp svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--success));
  flex-shrink: 0;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

.section-title h2 span {
  color: hsl(var(--secondary));
}

.section-title p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 48rem;
  margin: 0 auto;
}

.bg-muted {
  background-color: hsl(var(--muted));
}

.bg-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.card {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 10px 25px -5px hsla(50, 93%, 54%, 0.4);
  transform: translateY(-4px);
  border-color: hsl(var(--secondary));
}

.card-icon {
  width: 4rem;
  height: 4rem;
  background: hsla(var(--primary), 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 2rem;
  height: 2rem;
  color: hsl(var(--primary));
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.card-description {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card > div:last-child {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card .btn {
  margin-top: auto;
}

/* USPs Section */
.usps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.usp-card {
  text-align: center;
}

.usp-icon {
  width: 5rem;
  height: 5rem;
  background: hsla(var(--secondary), 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.usp-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--secondary));
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  position: relative;
}

.testimonial-quote {
  width: 2.5rem;
  height: 2.5rem;
  color: hsla(var(--secondary), 0.3);
  margin-bottom: 1rem;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.testimonial-stars svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: hsl(var(--secondary));
  color: hsl(var(--secondary));
}

/* FAQ */
.faq-list {
  max-width: 56rem;
  margin: 0 auto;
}

.faq-item {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: hsl(var(--secondary));
}

.faq-question {
  font-weight: 700;
  color: hsl(var(--primary));
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  color: hsl(var(--secondary));
}

.faq-answer {
  color: hsl(var(--muted-foreground));
  margin-top: 1rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 72rem;
  margin: 0 auto;
}

.contact-form {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 6px -1px hsla(0, 0%, 0%, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  font-size: 1rem;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsla(var(--ring), 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Footer */
footer {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 3rem 0;
}

.footer-cta {
  background: hsl(var(--secondary));
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  margin-top: -6rem;
  box-shadow: 0 10px 25px -5px hsla(50, 93%, 54%, 0.4);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-section h4 span {
  color: hsl(var(--secondary));
}

.footer-logo {
  max-height: 120px !important;
  height: auto;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .footer-logo {
    max-height: 160px !important;
  }
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-section a:hover {
  color: hsl(var(--secondary));
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

/* Sticky CTA - SIEMPRE VISIBLE */
.sticky-cta,
#stickyCta {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 50 !important;
  background: hsl(210, 100%, 20%) !important;
  color: hsl(0, 0%, 100%) !important;
  box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.3) !important;
  border-top: 2px solid hsl(50, 93%, 54%) !important;
  padding: 1rem !important;
  display: block !important;
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 768px) {
  .sticky-cta {
    padding: 0.4rem 0.75rem;
    border-top-width: 2px;
  }
}


.sticky-cta-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Forzamos el cambio en vista móvil con selectores más fuertes */
@media (max-width: 768px) {
  /* 1. Achicamos el contenedor principal */
  #stickyCta .sticky-cta-content,
  .sticky-cta .sticky-cta-content,
  div#stickyCta .sticky-cta-content {
    padding: 8px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  /* 2. Reducimos márgenes del texto para que no ocupe tanto alto y alineamos a la izquierda */
  #stickyCta .sticky-cta-text,
  .sticky-cta .sticky-cta-text,
  div#stickyCta .sticky-cta-text {
    text-align: left !important;
    width: 100% !important;
    padding-right: 80px !important;
  }

  #stickyCta .sticky-cta-text p,
  .sticky-cta .sticky-cta-text p,
  div#stickyCta .sticky-cta-text p {
    margin: 0 0 4px 0 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    text-align: left !important;
  }

  /* 3. ALINEACIÓN DE BOTONES EN UNA FILA - MÁXIMA ESPECIFICIDAD */
  #stickyCta .sticky-cta-buttons,
  .sticky-cta .sticky-cta-buttons,
  div#stickyCta .sticky-cta-buttons,
  div.sticky-cta .sticky-cta-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 5px !important;
    margin-bottom: 0 !important;
  }

  /* 4. Ajuste individual de botones - TODOS LOS SELECTORES POSIBLES */
  #stickyCta .sticky-cta-buttons a.btn,
  #stickyCta .sticky-cta-buttons a,
  .sticky-cta .sticky-cta-buttons a.btn,
  .sticky-cta .sticky-cta-buttons a,
  div#stickyCta .sticky-cta-buttons a.btn,
  div#stickyCta .sticky-cta-buttons a,
  div.sticky-cta .sticky-cta-buttons a.btn,
  div.sticky-cta .sticky-cta-buttons a,
  #stickyCta .sticky-cta-buttons .btn-success,
  #stickyCta .sticky-cta-buttons .btn-primary {
    flex: 1 1 auto !important;
    flex-basis: auto !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    padding: 10px 5px !important;
    font-size: 12px !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    clear: none !important;
  }
  
  /* Achicamos el icono de WhatsApp para que quepa bien */
  #stickyCta .sticky-cta-buttons svg,
  .sticky-cta .sticky-cta-buttons svg,
  div#stickyCta .sticky-cta-buttons svg {
    width: 16px !important;
    height: 16px !important;
    margin-right: 4px !important;
    flex-shrink: 0 !important;
  }
}

.sticky-cta-text {
  text-align: center;
}

.sticky-cta-text p:first-child {
  font-weight: 700;
  font-size: 1.125rem;
}

.sticky-cta-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-success {
  background: hsl(var(--success));
  color: hsl(var(--success-foreground));
}

.btn-success:hover {
  background: hsla(var(--success), 0.9);
}

.btn-cotizar-gratis {
  background: hsl(0, 0%, 100%);
  border: none;
  color: hsl(210, 100%, 35%);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.btn-cotizar-gratis:hover {
  background: hsl(0, 0%, 95%);
  color: hsl(210, 100%, 30%);
}

/* Desktop CTA en Header */
.desktop-cta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.header-contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.phone-link-header,
header .phone-link-header,
header#header .phone-link-header {
  display: block;
  text-decoration: underline;
  color: hsl(0, 0%, 100%) !important;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.phone-link-header:hover {
  color: hsl(var(--secondary)) !important;
}

.email-link-header,
header .email-link-header,
header#header .email-link-header {
  display: block;
  text-decoration: underline;
  color: hsl(0, 0%, 100%) !important;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.3s ease;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.email-link-header:hover {
  color: hsl(var(--secondary)) !important;
  opacity: 1 !important;
}

.phone-link {
  display: inline-block;
  text-decoration: underline;
  color: hsl(0, 0%, 100%);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  transition: color 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.phone-link:hover {
  color: hsl(var(--secondary));
}

.btn-cotizacion {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  line-height: 1.2;
  white-space: nowrap;
  background: hsl(50, 93%, 54%);
  color: hsl(0, 0%, 10%);
  border: none;
}

.btn-cotizacion:hover {
  background: hsl(50, 93%, 50%);
  color: hsl(0, 0%, 10%);
}

.btn-cotizacion span {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  color: hsl(0, 0%, 10%);
}

@media (min-width: 1024px) {
  .desktop-cta {
    display: flex !important;
  }
  
  .btn-cotizacion {
    display: flex !important;
  }
  
  /* Asegurar textos blancos en desktop grande */
  header .logo,
  header nav.desktop-nav a,
  header .phone-link-header,
  header .email-link-header {
    color: hsl(0, 0%, 100%) !important;
  }
}

@media (max-width: 1023px) {
  .desktop-cta {
    display: none !important;
  }
  
  .btn-cotizacion {
    display: none !important;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator-inner {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.5rem;
}

.scroll-indicator-dot {
  width: 0.25rem;
  height: 0.75rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Responsive */

@media (min-width: 640px) {
  .hero h1 {
    font-size: 4rem;
  }
  
  .hero p {
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  }
  
  .hero-usps {
    flex-direction: row;
    justify-content: center;
  }
  
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  
  .sticky-cta-content {
    flex-direction: row;
  }
  
  .sticky-cta-text {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .header-content {
    padding: 0.75rem 1rem;
  }
  
  .logo {
    font-size: 1.5rem;
    min-height: 50px;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .logo span {
    font-size: 1.5rem;
  }
  
  .logo img,
  .header-logo-img {
    max-height: 50px !important;
    height: 50px !important;
  }
  
  .logo {
    color: hsl(0, 0%, 100%) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  .logo span {
    color: hsl(50, 93%, 54%) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  /* Asegurar que el botón del menú siempre sea visible */
  .mobile-menu-btn {
    position: relative;
    z-index: 1000;
  }
  
  /* Header siempre azul */
  header {
    background: hsl(var(--primary)) !important;
    box-shadow: 0 4px 6px -1px hsla(0, 0%, 0%, 0.1) !important;
  }
  
  /* Todos los textos del header siempre blancos */
  header .logo,
  header nav.desktop-nav a,
  header .phone-link-header,
  header .email-link-header {
    color: hsl(0, 0%, 100%) !important;
  }
  
  .hero {
    padding-top: 120px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  /* Asegurar que el contenido tenga padding bottom para el sticky CTA */
  .site-main {
    padding-bottom: 120px;
  }
  
  @media (max-width: 768px) {
    .site-main {
      padding-bottom: 80px;
    }
  }
}

@media (min-width: 768px) {
  nav.desktop-nav {
    display: flex;
  }
  
  /* Asegurar textos blancos en desktop */
  header .logo,
  header nav.desktop-nav a,
  header .phone-link-header,
  header .email-link-header {
    color: hsl(0, 0%, 100%) !important;
  }
  
  /* Solo mostrar desktop-cta en pantallas grandes (1024px+) */
  .desktop-cta {
    display: none;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .card-grid,
  .products-grid,
  .usps-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .usps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content .footer-section:nth-child(2) > div {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .footer-content .footer-section:nth-child(2) > div > div {
    display: flex;
    align-items: start;
    gap: 0.5rem;
  }
  
  .footer-content .footer-section:nth-child(2) > div > div:nth-child(2),
  .footer-content .footer-section:nth-child(2) > div > div:nth-child(3) {
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
  
  .section-title h2 {
    font-size: 3rem;
  }
  
  .products-grid,
  .usps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .sticky-cta-buttons .btn-outline {
    display: inline-flex !important;
  }
  
  .footer-content .footer-section:nth-child(2) > div > div:first-child {
    display: flex;
    align-items: start;
    gap: 0.5rem;
  }
  
  .footer-content .footer-section:nth-child(2) > div > div:nth-child(2),
  .footer-content .footer-section:nth-child(2) > div > div:nth-child(3) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Trust Badges */
.trust-badges-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-badge-divider {
  width: 1px;
  height: 3rem;
  background: hsl(var(--border));
  display: none;
}

@media (min-width: 768px) {
  .trust-badges-container {
    flex-direction: row;
  }
  
  .trust-badge-divider {
    display: block;
  }
}

/* Sucursales Grid */
.sucursales-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.sucursal-card {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sucursal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.sucursal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: hsl(var(--primary-foreground));
}

.sucursal-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sucursal-item {
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.sucursal-icon {
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: hsl(var(--primary-foreground));
  opacity: 0.9;
}

.sucursal-label {
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground));
}

.sucursal-text {
  font-size: 0.875rem;
  opacity: 0.9;
  color: hsl(var(--primary-foreground));
  line-height: 1.5;
}

.sucursal-region {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.25rem;
  color: hsl(var(--primary-foreground));
}

@media (min-width: 768px) {
  .sucursales-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sucursales-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .sucursal-card {
    padding: 2rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--muted));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--primary));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--secondary));
}

/* Image Lightbox */
.image-lightbox {
  display: none !important;
  position: fixed !important;
  z-index: 99999 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.9) !important;
  overflow: auto !important;
  animation: fadeIn 0.3s ease;
}

.image-lightbox.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.image-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.image-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.image-lightbox-close:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.9);
  border-color: hsl(var(--secondary));
  color: hsl(var(--secondary));
}

.image-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

.image-lightbox-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  text-align: center;
  max-width: 600px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Botón flotante de WhatsApp */
/* Botón flotante de WhatsApp - FORZAR VISIBILIDAD */
.whatsapp-float,
a.whatsapp-float {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  width: 60px !important;
  height: 60px !important;
  background: #25D366 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
  z-index: 9999 !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
  border: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.whatsapp-float:hover,
a.whatsapp-float:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6) !important;
  background: #20BA5A !important;
}

.whatsapp-float:active,
a.whatsapp-float:active {
  transform: scale(0.95) !important;
}

.whatsapp-float svg,
a.whatsapp-float svg {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  fill: hsl(0, 0%, 100%) !important;
  color: hsl(0, 0%, 100%) !important;
  display: block !important;
}

@media (max-width: 768px) {
  .whatsapp-float,
  a.whatsapp-float {
    bottom: 90px !important;
    right: 16px !important;
    width: 56px !important;
    height: 56px !important;
  }
  
  .whatsapp-float svg,
  a.whatsapp-float svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
  }
}

@media (max-width: 768px) {
  .image-lightbox-content {
    max-width: 95%;
  }
  
  .image-lightbox-close {
    top: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    font-size: 2rem;
  }
  
  .image-lightbox-title {
    font-size: 1rem;
    margin-top: 1rem;
  }
}

