/* components.css */

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2.5rem; font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; border-radius: 0; cursor: pointer; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); position: relative; overflow: hidden; z-index: 1; text-align: center; }
.btn svg { margin-left: 10px; width: 14px; height: 14px; fill: currentColor; transition: transform 0.3s ease; }
.btn:hover svg { transform: translateX(5px); }
.btn::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-primary { background-color: var(--gold-primary); color: var(--bg-darker); border: 1px solid var(--gold-primary); }
.btn-primary::before { background-color: var(--text-white); }
.btn-primary:hover { border-color: var(--text-white); color: var(--bg-darker); }

.btn-outline { background-color: transparent; color: var(--gold-primary); border: 1px solid var(--gold-primary); backdrop-filter: blur(5px); }
.btn-outline::before { background-color: var(--gold-primary); }
.btn-outline:hover { color: var(--bg-darker); border-color: var(--gold-primary); }

/* Hero Slider Section */
.slider-hero { height: 100vh; position: relative; display: flex; align-items: center; padding: 0 5%; overflow: hidden; }
.slider-hero .hero-bg { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; background: radial-gradient(circle at center, rgba(10,10,10,0.6) 0%, rgba(5,5,5,0.95) 100%), var(--bg-dark); z-index: -1; will-change: transform; }
.slider-hero .hero-container { width: 100%; max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; align-items: center; z-index: 1; position: relative; padding-left: 60px; }

/* Left Pagination */
.hero-pagination { position: absolute; left: 4%; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 20px; z-index: 5; }
.hero-pagination span { font-family: var(--font-heading); color: var(--gold-primary); font-size: 1.2rem; font-weight: 600; }
.hero-pagination .pagination-line { width: 2px; height: 80px; background-color: rgba(197, 160, 89, 0.2); position: relative; overflow: hidden; }
.hero-pagination .pagination-line::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 25%; background-color: var(--gold-primary); transition: top 0.5s ease; }

/* Text Content Slider */
.hero-text-slider { position: relative; width: 100%; min-height: 400px; display: flex; align-items: center; z-index: 10; }
.hero-text-slide { position: absolute; top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity 0.6s ease, transform 0.6s ease; }
.hero-text-slide.active { opacity: 1; pointer-events: auto; position: relative; top: 0; transform: translateY(0); }

.hero-badge { display: inline-block; padding: 0.4rem 1.2rem; border: 1px solid rgba(197, 160, 89, 0.3); border-radius: 50px; margin-bottom: 2.5rem; backdrop-filter: blur(15px); background: rgba(197, 160, 89, 0.08); box-shadow: 0 0 20px rgba(197, 160, 89, 0.1); transition: box-shadow 0.4s ease, background 0.4s ease; }
.hero-badge:hover { box-shadow: 0 0 30px rgba(197, 160, 89, 0.25); background: rgba(197, 160, 89, 0.15); }
.hero-badge span { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 4px; color: var(--gold-primary); font-weight: 500; }

.slider-hero .main-title { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--text-white); line-height: 1.1; margin-bottom: 1.5rem; font-weight: 600; letter-spacing: 1px; text-shadow: 0 10px 40px rgba(0,0,0,0.9); width: 100%; position: relative; z-index: 10; }
.slider-hero .main-title .gold-text { color: var(--gold-primary); font-style: italic; font-family: var(--font-heading); font-weight: 300; display: inline-block; margin-top: 5px; font-size: 1.1em; letter-spacing: 0; }
.slider-hero .description { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: rgba(255,255,255,0.85); margin-bottom: 3.5rem; max-width: 500px; font-weight: 300; letter-spacing: 1px; line-height: 1.8; position: relative; z-index: 10; }

/* Image Carousel */
.hero-image-slider { position: relative; width: 100%; height: 75vh; perspective: 1200px; z-index: 1; }
.slider-wrapper { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }

.hero-image-slide { position: absolute; top: 0; left: 0; width: 75%; height: 100%; border-radius: 8px; overflow: hidden; opacity: 0; transition: all 1s cubic-bezier(0.77, 0, 0.175, 1); transform: translateX(100%) scale(0.8) translateZ(-100px); box-shadow: 0 40px 80px rgba(0,0,0,0.9); border: 1px solid rgba(255, 255, 255, 0.05); background-color: #000; }
.hero-image-slide::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%); pointer-events: none; }
.hero-image-slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; filter: brightness(0.6) contrast(1.1); transition: filter 1s ease, transform 3s ease; transform: scale(1.05); }

.hero-image-slide.active { opacity: 1; transform: translateX(0) scale(1) translateZ(0); z-index: 3; border-color: rgba(197, 160, 89, 0.3); box-shadow: 0 0 40px rgba(197, 160, 89, 0.15), 0 50px 100px rgba(0,0,0,0.9); }
.hero-image-slide.active img { filter: brightness(1) contrast(1.1); transform: scale(1); }
.hero-image-slide.next { opacity: 0.6; transform: translateX(65%) scale(0.9) translateZ(-50px); z-index: 2; cursor: pointer; border-color: rgba(197, 160, 89, 0.2); }
.hero-image-slide.next:hover { opacity: 0.9; transform: translateX(60%) scale(0.92) translateZ(-40px); box-shadow: 0 0 30px rgba(197, 160, 89, 0.2); }
.hero-image-slide.prev { opacity: 0; transform: translateX(-50%) scale(0.9) translateZ(-50px); z-index: 1; }

.slider-controls { position: absolute; bottom: 0px; right: 0; display: flex; gap: 15px; z-index: 10; }
.slider-btn { background: rgba(5,5,5,0.6); border: 1px solid rgba(197, 160, 89, 0.4); color: var(--gold-primary); width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); backdrop-filter: blur(10px); }
.slider-btn svg { width: 18px; height: 18px; fill: currentColor; }
.slider-btn:hover { background: var(--gold-primary); color: var(--bg-darker); transform: scale(1.1); border-color: var(--gold-primary); }

.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 15px; opacity: 0.6; z-index: 1;}
.scroll-indicator span { font-size: 0.65rem; letter-spacing: 3px; color: var(--text-white); }
.scroll-indicator .line { width: 1px; height: 50px; background-color: var(--gold-primary); animation: stretch 2.5s cubic-bezier(0.8, 0, 0.2, 1) infinite; transform-origin: top; }

@keyframes stretch { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Historia Section */
.historia-section { background-color: var(--bg-darker); position: relative; }
.historia-container { display: flex; justify-content: space-between; padding: var(--section-pad); gap: 4rem; }
.historia-text-wrap { flex: 1; max-width: 50%; }
.historia-image-wrap { flex: 1; display: flex; justify-content: flex-end; align-items: flex-start; }
.historia-image { position: relative; border-radius: 4px; overflow: hidden; width: 100%; max-width: 500px; }
.timeline { margin-top: 3rem; position: relative; padding-left: 20px; border-left: 1px solid rgba(197, 160, 89, 0.2); }
.timeline-item { position: relative; padding-bottom: 4rem; padding-left: 20px; }
.timeline-item::before { content: ''; position: absolute; left: -24px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background-color: var(--bg-darker); border: 1px solid var(--gold-primary); transition: var(--transition); }
.timeline-item.active::before, .timeline-item:hover::before { background-color: var(--gold-primary); box-shadow: 0 0 15px var(--gold-primary); transform: scale(1.3); }
.timeline-item .year { font-family: var(--font-heading); color: var(--gold-primary); font-size: 1.5rem; font-weight: 600; display: block; margin-bottom: 0.3rem; }
.timeline-item p { font-size: 1.1rem; color: var(--text-muted); }
.historia-image img { width: 100%; height: auto; filter: grayscale(80%) contrast(1.2); transition: var(--transition); }
.historia-image:hover img { filter: grayscale(0%) contrast(1); transform: scale(1.03); }
.image-overlay { position: absolute; bottom: 30px; right: 30px; text-align: right; text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
.image-overlay .signature { font-family: 'Brush Script MT', cursive, var(--font-heading); color: var(--gold-primary); font-size: 2rem; line-height: 1.2; }

/* Resineta Parallax */
.resineta-section { position: relative; padding: 12rem 10%; text-align: center; overflow: hidden; border-top: 1px solid rgba(197, 160, 89, 0.1); border-bottom: 1px solid rgba(197, 160, 89, 0.1); }
.resineta-bg { position: absolute; top: -20%; left: 0; width: 100%; height: 140%; background-size: cover; background-position: center; z-index: -1; }
.resineta-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.resineta-content p { font-size: clamp(1.1rem, 2vw, 1.3rem); margin: 2rem 0; color: rgba(255,255,255,0.9); font-weight: 300; }

/* Packaging */
.packaging-section { padding: var(--section-pad); background-color: var(--bg-dark); position: relative; border-top: 1px solid rgba(197, 160, 89, 0.1); }
.packaging-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.packaging-image { position: relative; }
.packaging-image .package-img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 40px 80px rgba(0,0,0,0.9); transition: transform 0.6s ease; }
.packaging-image:hover .package-img { transform: translateY(-10px) scale(1.02); }
.packaging-logo { margin-bottom: 2rem; }
.packaging-logo img { height: 80px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4)); }
.packaging-section p { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin: 2rem 0; line-height: 1.8; }

/* Valores */
.valores-section { padding: var(--section-pad); background-color: var(--bg-dark); }
.valores-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.valores-img { border-radius: 4px; overflow: hidden; position: relative; }
.valores-img img { width: 100%; height: auto; display: block; filter: grayscale(80%) contrast(1.2); transition: filter 0.5s ease; }
.valores-img:hover img { filter: grayscale(0%) contrast(1.1); }
.valores-content { display: flex; flex-direction: column; gap: 2rem; }
.valor-card { background: rgba(15, 15, 15, 0.6); padding: 2.5rem; border-left: 2px solid rgba(197, 160, 89, 0.2); transition: all 0.4s ease; border-radius: 0 8px 8px 0; backdrop-filter: blur(10px); }
.valor-card:hover { transform: translateX(15px); border-color: var(--gold-primary); background: rgba(20, 20, 20, 0.9); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.valor-card svg { width: 32px; height: 32px; fill: var(--gold-primary); margin-bottom: 1.2rem; }
.valor-card h3 { font-family: var(--font-heading); color: var(--text-white); font-size: 1.3rem; margin-bottom: 0.8rem; letter-spacing: 1px; font-weight: 500; }
.valor-card p { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; line-height: 1.6; margin: 0; font-weight: 300; }

.certificaciones-oficiales { margin-top: 4rem; padding: 3rem; background: rgba(10,10,10,0.5); border: 1px solid rgba(197,160,89,0.1); border-radius: 8px; }
.cert-header { display: flex; align-items: center; gap: 15px; margin-bottom: 1.5rem; }
.cert-header svg { width: 24px; height: 24px; fill: var(--gold-primary); }
.cert-list { list-style: none; padding: 0; }
.cert-list li { margin-bottom: 1rem; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.cert-list li svg { width: 16px; height: 16px; fill: var(--gold-primary); flex-shrink: 0; }

/* Empresas */
.empresas-section { padding: var(--section-pad); background-color: var(--bg-darker); }
.empresas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; background-color: var(--bg-card); border: 1px solid rgba(255,255,255,0.02); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.empresas-image { overflow: hidden; position: relative; }
.empresas-image img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.empresas-grid:hover .empresas-image img { transform: scale(1.05); }
.empresas-content { padding: 5rem 4rem; display: flex; flex-direction: column; justify-content: center; }
.empresas-content p { margin-bottom: 2.5rem; color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; }

/* CTA Final */
.cta-final { padding: 10rem 10%; text-align: center; background-color: var(--bg-dark); position: relative; overflow: hidden; border-top: 1px solid rgba(197, 160, 89, 0.1); }
.cta-final p { margin-bottom: 3rem; color: var(--text-muted); font-size: 1.2rem; }

/* Catalog Teaser */
.catalog-section { padding: 8rem 5%; text-align: center; border-bottom: 1px solid rgba(197, 160, 89, 0.1); background-color: var(--bg-darker); }

/* Catalog & Anatomy Header */
.catalog-header-section { position: relative; padding: 12rem 5% 6rem; text-align: center; overflow: hidden; background-color: var(--bg-dark); border-bottom: 1px solid rgba(197, 160, 89, 0.1); }
.catalog-header-content { position: relative; z-index: 10; max-width: 800px; margin: 0 auto; }

/* Decorative Text */

/* Marquee Line */
.marquee-wrapper { width: 100%; overflow: hidden; background: var(--gold-primary); color: var(--bg-darker); padding: 1.5rem 0; border-top: 2px solid var(--bg-dark); border-bottom: 2px solid var(--bg-dark); display: flex; align-items: center; }
.marquee-content { display: flex; white-space: nowrap; animation: marquee 20s linear infinite; font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.marquee-item { margin: 0 2rem; display: flex; align-items: center; gap: 2rem; }
.marquee-star { display: inline-block; width: 20px; height: 20px; background-color: var(--bg-darker); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

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

@media (max-width: 1024px) {
    .historia-container { flex-direction: column; }
    .historia-text-wrap, .historia-image-wrap { max-width: 100%; }
    .historia-image { max-width: 100%; margin-top: 3rem; }
    .empresas-grid { grid-template-columns: 1fr; }
    .packaging-container { grid-template-columns: 1fr; }
    .valores-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Slider Fixes for Mobile */
    .slider-controls { right: 5%; bottom: 20px; }
    .slider-btn { width: 50px; height: 50px; }
}
