:root {
    --rojo-origami: #d32f2f;
    --rojo-oscuro: #b71c1c;
    --rojo-claro: #f44336;
    --texto-oscuro: #111111;
    --blanco: #ffffff;
    --gris-claro: #f4f4f6;
    --gris-medio: #555555;
    --gris-oscuro: #2d2d2d;
    --negro-bg: #1a1a1a;
    --shadow-soft: 0 15px 45px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 25px 60px rgba(211, 47, 47, 0.25);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--texto-oscuro);
    line-height: 1.6;
    position: relative;
}

.float-log {
  position: fixed;
  z-index: -1;
  opacity: 0;
  height: auto;
  width: 60%;
  bottom: -5%;
  right: -10%;
  transform: rotate(25deg);
  animation: fadeLog 1s linear 1s forwards,float 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes fadeLog {
  0%{
    opacity: 0;
  }
  100%{
    opacity: 0.4;
  }
}

@keyframes float {
  0%, 100% {
    transform: rotate(-25deg) translateY(0);
  }
  50% {
    transform: rotate(-25deg) translateY(-20px);
  }
}

/* === HEADER === */
.header {
    width: 100%;
    height: 85px;
    background: rgba(255, 255, 255, 0.8);
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    border-bottom: 2px solid rgba(211, 47, 47, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.logos-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img-ajustado {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.divisor-logos {
    width: 1px;
    height: 30px;
    background: rgba(0, 0, 0, 0.1);
}

.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--texto-oscuro);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rojo-origami), var(--rojo-claro));
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--rojo-origami);
}

.nav-menu a:hover::after {
    width: 100%;
}

.section-menu{
    margin-top: 100px;
    display: flex;
    height: 50vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.submenu-categorias {
    background-color: var(--negro-bg);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(211, 47, 47, 0.1);
    position: relative;
    overflow: hidden;
}

.submenu-categorias::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.submenu-titulo {
    color: var(--blanco);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--rojo-oscuro);
    padding-bottom: 8px;
}

.submenu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.submenu-link {
    display: block;
    background-color: var(--gris-oscuro);
    color: var(--blanco);
    text-align: left;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    border-left: 4px solid var(--rojo-origami);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.submenu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
    transition: left 0.4s ease;
    z-index: 0;
}

.submenu-link:hover {
    background-color: var(--rojo-origami);
    color: var(--blanco);
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
}

.submenu-link:hover::before {
    left: 100%;
}

/* === SECCIONES PRINCIPALES === */
.seccion-principal {
    padding: 90px 20px 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: transparent;
}


.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    background: rgba(255, 255, 255, 0.5);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);

}

/* === CABECERA DE GALERÍA === */
.cabecera-galeria {
    text-align: center;
    margin-bottom: 30px;
}

/* === TIPOGRAFÍA === */
.etiqueta-roja {
    color: var(--rojo-origami);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

h1 span {
    color: var(--rojo-origami);
}

p {
    font-weight: 600;
    font-size: 1rem;
    color: var(--texto-oscuro);
}

/* === SEPARADORES DE CATEGORÍA === */
.separador-categoria {
    text-align: left;
    margin: 60px 0 35px 0;
    padding-bottom: 20px;
    border-bottom: 4px solid var(--rojo-origami);
    position: relative;
}

.separador-categoria::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--rojo-oscuro), transparent);
}

.separador-categoria h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--gris-oscuro);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.separador-categoria p {
    font-size: 0.95rem;
    color: var(--gris-medio);
    margin-top: 8px;
    font-weight: 500;
}

/* === GRID DE PRODUCTOS === */
.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: center;
}

/* === TARJETA DE PRODUCTO === */
.tarjeta-producto {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid rgba(211, 47, 47, 0.1);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.tarjeta-producto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--rojo-origami), var(--rojo-claro));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.tarjeta-producto:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-strong);
    border-color: rgba(211, 47, 47, 0.25);
}

.tarjeta-producto:hover::before {
    transform: scaleX(1);
}

.contenedor-img-cuadrada {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
    position: relative;
}

.img-producto-ajustada {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.contenedor-img-cuadrada::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0) 0%, rgba(211, 47, 47, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 12px;
}

.tarjeta-producto:hover .img-producto-ajustada {
    transform: scale(1.08);
}

.tarjeta-producto:hover .contenedor-img-cuadrada::after {
    opacity: 1;
}

.info-producto {
    position: relative;
    z-index: 2;
}

.info-producto h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--texto-oscuro);
}

.info-producto p {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.85;
    line-height: 1.5;
}

/* === LISTA DE DETALLES === */
.lista-detalles {
    text-align: left;
    padding-left: 20px;
    margin: 12px 0;
    font-size: 0.85rem;
    color: var(--gris-medio);
}

.lista-detalles li {
    margin-bottom: 6px;
    line-height: 1.5;
    position: relative;
}

.lista-detalles li::before {
    content: '•';
    position: absolute;
    left: -15px;
    color: var(--rojo-origami);
    font-weight: bold;
}

/* === BOTONES === */
.btn-rojo {
    background: var(--rojo-origami);
    color: var(--blanco);
    padding: 10px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.4);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-rojo:hover {
    transform: translateY(-5px);
    background: var(--rojo-oscuro);
}

.btn-switch {
    background: var(--blanco);
    border: 2px solid var(--rojo-origami);
    color: var(--rojo-origami);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-switch:hover {
    background: var(--rojo-origami);
    color: var(--blanco);
}

/* === CONTENEDOR Y BOTÓN DE COTIZAR === */
.contenedor-cotizar-linea {
    text-align: center;
    margin: 50px 0 70px 0;
    padding: 30px 0;
}

.btn-cotizar-linea {
    display: inline-block;
    background: linear-gradient(135deg, var(--rojo-origami) 0%, var(--rojo-oscuro) 100%);
    color: var(--blanco);
    padding: 14px 50px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.35);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-cotizar-linea::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.btn-cotizar-linea:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 45px rgba(211, 47, 47, 0.45);
}

.btn-cotizar-linea:hover::before {
    transform: translateX(100%);
}

/* === NOTA LEGAL === */
.nota-legal {
    text-align: center;
    margin-top: 50px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.nota-legal p {
    font-size: 0.85rem;
    color: var(--gris-medio);
    font-style: italic;
}

/* === CONTENEDOR BOTÓN INICIO === */
.contenedor-boton-inicio {
    text-align: center;
    margin: 40px 0 20px;
}

/* === FOOTER === */
.footer {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
    border-top: 1px solid rgba(211, 47, 47, 0.2);
}

.footer p {
    color: var(--blanco);
    font-size: 0.95rem;
    font-weight: 500;
}

/* === ANIMACIONES === */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tarjeta-producto {
    animation: scaleIn 0.6s ease-out both;
}

.tarjeta-producto:nth-child(1) { animation-delay: 0.05s; }
.tarjeta-producto:nth-child(2) { animation-delay: 0.1s; }
.tarjeta-producto:nth-child(3) { animation-delay: 0.15s; }
.tarjeta-producto:nth-child(4) { animation-delay: 0.2s; }
.tarjeta-producto:nth-child(5) { animation-delay: 0.25s; }
.tarjeta-producto:nth-child(6) { animation-delay: 0.3s; }
.tarjeta-producto:nth-child(7) { animation-delay: 0.35s; }
.tarjeta-producto:nth-child(8) { animation-delay: 0.4s; }
.tarjeta-producto:nth-child(9) { animation-delay: 0.45s; }

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .contenedor {
        padding: 40px;
        gap: 20px;
    }

    .grid-productos {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        padding: 0 15px;
    }

    .submenu-categorias {
        width: 95%;
        padding: 30px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .separador-categoria h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .header {
        height: 70px;
        padding: 0 20px;
    }

    .logos-wrapper {
        gap: 12px;
    }

    .logo-img-ajustado {
        height: 40px;
    }

    .nav-menu {
        display: none;
    }

    .section-menu {
        margin-top: 80px;
        height: auto;
        padding: 30px 20px;
    }

    .submenu-categorias {
        width: 100%;
        padding: 25px;
        border-radius: 16px;
    }

    .submenu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .submenu-link {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .contenedor {
        padding: 30px 20px;
        border-radius: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    .grid-productos {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
        padding: 0;
    }

    .tarjeta-producto {
        padding: 15px;
        border-radius: 12px;
    }

    .contenedor-img-cuadrada {
        border-radius: 10px;
        margin-bottom: 12px;
    }

    .info-producto h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .info-producto p {
        font-size: 0.8rem;
    }

    .separador-categoria h2 {
        font-size: 1.4rem;
    }

    .separador-categoria {
        margin: 40px 0 25px 0;
        padding-bottom: 15px;
    }

    .btn-cotizar-linea {
        padding: 12px 35px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .header {
        height: 65px;
        padding: 0 15px;
    }

    .logo-img-ajustado {
        height: 35px;
    }

    .section-menu {
        margin-top: 75px;
        padding: 20px 15px;
    }

    .submenu-categorias {
        padding: 20px;
        border-radius: 12px;
    }

    .submenu-titulo {
        font-size: 1rem;
    }

    .submenu-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .submenu-link {
        padding: 10px 12px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .contenedor {
        padding: 20px 15px;
        border-radius: 12px;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .etiqueta-roja {
        font-size: 0.8rem;
    }

    .grid-productos {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }

    .tarjeta-producto {
        padding: 15px;
        border-radius: 10px;
    }

    .contenedor-img-cuadrada {
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .info-producto h3 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .info-producto p {
        font-size: 0.75rem;
    }

    .lista-detalles {
        font-size: 0.8rem;
        padding-left: 18px;
    }

    .lista-detalles li {
        margin-bottom: 4px;
    }

    .separador-categoria h2 {
        font-size: 1.2rem;
    }

    .separador-categoria {
        margin: 30px 0 20px 0;
        padding-bottom: 12px;
    }

    .separador-categoria::after {
        width: 80px;
    }

    .contenedor-cotizar-linea {
        margin: 35px 0 50px 0;
        padding: 20px 0;
    }

    .btn-cotizar-linea {
        padding: 11px 28px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .footer {
        padding: 40px 15px;
    }

    .footer p {
        font-size: 0.85rem;
    }
}
