/* Reset y fuente base */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('assets/fondo.png') no-repeat center center fixed;
    background-size: cover;
}

.formulario-cotizacion {
    background: linear-gradient(135deg, #ff7e68 0%, #e73827 100%);
    color: white;
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem 2rem 1.5rem 2rem;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    text-align: center;
}
.formulario-cotizacion h2 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    letter-spacing: 1px;
}
.formulario-cotizacion label {
    display: block;
    margin: 1rem 0 0.3rem;
    text-align: left;
    color: #fff;
    font-weight: 500;
}
.formulario-cotizacion input,
.formulario-cotizacion textarea {
    width: 100%;
    padding: 0.7rem;
    border: none;
    border-radius: 16px;
    margin: 0.3rem 0 0.7rem 0;
    font-size: 1rem;
    color: #333;
    box-sizing: border-box;
}
.formulario-cotizacion input::placeholder,
.formulario-cotizacion textarea::placeholder {
    color: #bbb;
}
.formulario-cotizacion textarea {
    min-height: 70px;
    resize: vertical;
}
.formulario-cotizacion button {
    margin-top: 1rem;
    background: #000;
    color: #fff;
    border: none;
    padding: 0.9rem;
    border-radius: 24px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    letter-spacing: 1px;
    transition: background 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.formulario-cotizacion button:hover {
    background: #333;
}
footer {
    text-align: center;
    color: #888;
    padding: 1.5rem 0;
    margin-top: 2rem;
}
.formulario-cotizacion input[type=number]::-webkit-inner-spin-button, 
.formulario-cotizacion input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.formulario-cotizacion input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ===== SECCIÓN HORARIO Y UBICACIÓN ===== */
.horario-ubicacion {
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 18px;
    margin: 3rem auto;
    text-align: center;
    max-width: 1200px;
}
.horario-ubicacion h2 {
    color: #f85032;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}
.horario-ubicacion p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.mapa-container {
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.mapa-container iframe {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ===== BOTÓN DE WHATSAPP FIJO ===== */
.whatsapp-fijo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}
.whatsapp-fijo:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}
.whatsapp-fijo img {
    width: 32px;
    height: 32px;
}
@keyframes pulse {
    0% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8); }
    100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
}

/* ===== Header (reset seguro y estilos) ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  flex-wrap: wrap;
  box-sizing: border-box;
}
.navbar *, .navbar *::before, .navbar *::after {
  box-sizing: inherit;
}
.logo {
  display: flex;
  align-items: center;
}
.logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform .3s ease;
}
.logo a:hover { transform: scale(1.05); }
.logo a:focus-visible {
  outline: 2px solid #e73827;
  outline-offset: 2px;
}
.logo img {
  height: 50px;
  width: auto;
}
.menu {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 2rem;
  transition: max-height .3s ease;
}
.menu a {
  position: relative;
  display: block;
  text-transform: uppercase;
  padding: 10px 20px;
  text-decoration: none;
  color: #222;
  font-weight: 600;
  transition: color .3s ease;
  z-index: 1;
}
.menu a::before,
.menu a::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  transition: transform .3s, opacity .3s;
  will-change: transform, opacity;
}
.menu a::before {
  border-top: 2px solid #222;
  border-bottom: 2px solid #222;
  transform: scaleY(2);
  opacity: 0;
}
.menu a::after {
  top: 2px;
  background-color: #222;
  transform: scaleY(0);
  opacity: 0;
  z-index: -1;
}
.menu a:hover,
.menu a:focus-visible { color: #fff; }
.menu a:hover::before,
.menu a:focus-visible::before {
  transform: scaleY(1);
  opacity: 1;
}
.menu a:hover::after,
.menu a:focus-visible::after {
  transform: scaleY(1);
  opacity: 1;
}
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
}
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    text-align: center;
    gap: .5rem;
  }
  .menu.open { display: flex; }
  .hamburger {
    display: block;
    margin-left: auto;
  }
  .navbar {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu,
  .menu a,
  .menu a::before,
  .menu a::after,
  .logo a {
    transition: none !important;
    animation: none !important;
  }
}

/* Badge negro solo detrás del logo */
.logo-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#000;           /* fondo negro solo para el logo */
  padding:6px 10px;          /* aire alrededor */
  border-radius:12px;        /* esquinas suaves */
  box-shadow:0 2px 10px rgba(0,0,0,.25);
}
.logo-badge img{
  height:52px;               /* tamaño del logo en desktop */
  width:auto;
  display:block;
}

@media (max-width: 768px){
  .logo-badge img{ height:42px; }
}
@media (max-width: 480px){
  .logo-badge img{ height:36px; }
}



/* Carousel de fondos animados */
.carousel-fondo {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    margin: 0 auto;
    height: 100vh;
}
.carousel-slide {
    display: none;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0; left: 0;
}
.carousel-slide.active {
    display: block;
    z-index: 1;
}
.fondo-carousel {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('assets/fondo_cajas.png') no-repeat center center/cover;
    position: relative;
    width: 100vw;
}
.fondo-carousel img {
    max-width: 90vw;
    max-height: 60vh;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}
.carousel-btn:hover {
    background: rgba(0,0,0,0.7);
}
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }
.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s;
} 
.carousel-dots .dot.active {
    opacity: 1;
    background: #e73827;
}
@media (max-width: 600px) {
    .carousel-fondo, .carousel-slide, .fondo-carousel {
        height: 50vh;
    }
    .fondo-carousel img { 
        max-width: 98vw;
        max-height: 30vh;
    }
    .formulario-cotizacion {
        padding: 1rem 0.5rem;
    }
}

/* Texto del carrusel */
.texto-personaliza {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 3rem;
    box-sizing: border-box;
    pointer-events: none;
}
.texto-personaliza.derecha {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 5vw;
    padding-left: 0;
    text-align: right;
}
.texto-personaliza h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #ff6947;
    line-height: 1.1;
    margin: 0;
    font-family: 'Arial Black', Arial, sans-serif;
    background: rgba(255,255,255,0.85);
    display: inline-block;
    border-radius: 12px;
    padding: 0.5rem 1.2rem 0.5rem 0.5rem;
}
.texto-personaliza .destacado {
    color: #ff6947;
}
.texto-personaliza .sublinea {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 400;
    color: #666;
    position: relative;
    padding-left: 2rem;
    font-family: 'Arial', sans-serif;
    background: rgba(255,255,255,0.85);
    border-radius: 8px;
    display: inline-block;
    padding-right: 1rem;
}

/* Títulos destacados */
.llamativo {
  font-size: 3.2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.90);
  padding: 0.6rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  animation: zoomIn 1.2s ease-out;
}
.llamativo .destacado {
  color: #f6b453 !important;
  animation: none !important;
}
.llamativo strong {
  color: #e73827;
}
@keyframes zoomIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@media (max-width: 900px) {
  .llamativo {
    font-size: 2rem;
    padding: 0.4rem 0.7rem;
  }
}
@media (max-width: 600px) {
  .llamativo {
    font-size: 1.2rem;
    padding: 0.2rem 0.4rem;
  }
}
@media (max-width: 900px) {
    .texto-personaliza {
        padding: 1rem 1rem;
    }
    .texto-personaliza.derecha {
        align-items: center;
        padding-right: 0;
        text-align: center;
    }
    .texto-personaliza h1 {
        font-size: 2rem;
        padding: 0.4rem 0.7rem 0.4rem 0.4rem;
    }
}
@media (max-width: 600px) {
    .texto-personaliza {
        align-items: center;
        text-align: center;
        padding: 0.5rem 0.5rem;
    }
    .texto-personaliza h1 {
        font-size: 1.2rem;
        padding: 0.2rem 0.4rem 0.2rem 0.2rem;
    }
    .texto-personaliza .sublinea {
        font-size: 0.95rem;
        padding-right: 0.5rem;
    }
}

/* Estado activo del link del menú */
.menu a.active,
.menu a.active:focus-visible { 
  color: #fff; 
}
.menu a.active::before { 
  transform: scaleY(1); 
  opacity: 1; 
}
.menu a.active::after  { 
  transform: scaleY(1); 
  opacity: 1; 
}

.hero-productos {
  background: url('assets-productos/productos.png') no-repeat center center;
  background-size: cover;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 18px;
  margin: 2rem auto 3rem;
  max-width: 90%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box; /* asegura que padding cuente dentro del ancho */
}

html, body {
  overflow-x: hidden; /* oculta cualquier scroll horizontal sobrante */
}

/* Tickets verdes para listas de características */
.servicio-caracteristicas li {
  list-style: none;             
  position: relative;
  padding-left: 1.6rem;         
  margin-bottom: 0.5rem;
}

.servicio-caracteristicas li::before {
  content: "✓";                  
  position: absolute;
  left: 0;
  color: #28a745;                
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .navbar { align-items: stretch; }
  .menu { background: #fff; padding: .5rem 0; }
}

.social-links a { width: 48px !important; height: 48px !important; }
.social-links img { width: 24px !important; height: 24px !important; }


/* --- Form: mejoras pequeñas --- */
.formulario-cotizacion input,
.formulario-cotizacion textarea {
  background: #fff;          /* explícito sobre el fondo con gradiente */
}

/* Mensajes del formulario */
.form-msg { margin-top: .8rem; font-size: .95rem; }
.form-msg.ok  { color: #16a34a; }  /* verde */
.form-msg.err { color: #ef4444; }  /* rojo */
button[disabled]{ opacity: .6; cursor: not-allowed; }

/* Grid para las 3 medidas (opcional: quita el style inline del HTML) */
.medidas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (max-width: 560px){ .medidas-grid { grid-template-columns: 1fr; } }

/* Accesibilidad: foco visible */
.formulario-cotizacion input:focus-visible,
.formulario-cotizacion textarea:focus-visible,
.formulario-cotizacion button:focus-visible {
  outline: 2px solid #ffd6cc;
  outline-offset: 2px;
}
