/

HOME CSS PREMIUM - CAMAPE v6

Ubicación: pages/home/home.css

Arquitectura CSS Moderna:

Variables CSS (Custom Properties) para consistencia.

Glassmorphism avanzado (backdrop-filter, color-mix).

Grid moderno con auto-fit (Casi cero media queries).

Tipografía fluida usando clamp().

Animaciones por hardware (transform, opacity).
*/

/* ==========================================================================
VARIABLES & GLOBALES ESPECÍFICOS HOME
========================================================================== /
:root {
/ Spacing Fluidos */
--pad-section: clamp(80px, 10vw, 150px);
--gap-grid: clamp(20px, 3vw, 32px);

/* Efectos Glassmorphism */
--glass-bg: color-mix(in srgb, var(--cp-bg) 80%, transparent);
--glass-border: color-mix(in srgb, var(--cp-text) 8%, transparent);
--glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
--glass-shadow-hover: 0 35px 60px -15px color-mix(in srgb, var(--cp-primary) 20%, rgba(0,0,0,0.15));


}

html[data-theme="dark"] {
--glass-bg: color-mix(in srgb, var(--cp-bg) 60%, transparent);
--glass-border: color-mix(in srgb, var(--cp-text) 12%, transparent);
--glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.home-page {
background-color: var(--cp-bg);
color: var(--cp-text);
overflow-x: hidden;
}

.section-padding {
padding: var(--pad-section) 0;
position: relative;
}

.bg-soft {
background-color: color-mix(in srgb, var(--cp-text) 2%, var(--cp-bg));
}

.container-sm {
max-width: 800px;
margin: 0 auto;
}

/* ==========================================================================
UTILIDADES PREMIUM (GLASS, GESTOGRAFÍA, BOTONES)
========================================================================== */
.cp-glass, .cp-glass-hover {
background: var(--glass-bg);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid var(--glass-border);
box-shadow: var(--glass-shadow);
border-radius: 24px;
}

.cp-glass-hover {
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.cp-glass-hover:hover {
transform: translateY(-8px);
box-shadow: var(--glass-shadow-hover);
border-color: color-mix(in srgb, var(--cp-primary) 50%, transparent);
}

/* Textos Fluidos */
.section-kicker {
display: inline-block;
font-size: 0.85rem;
font-weight: 800;
text-transform: uppercase;
letter-spacing: 2px;
color: var(--cp-primary);
margin-bottom: 16px;
}

.section-title {
font-size: clamp(2.2rem, 5vw, 3.5rem);
font-weight: 900;
line-height: 1.1;
letter-spacing: -1.5px;
margin-bottom: 24px;
text-wrap: balance;
}

.section-subtitle {
font-size: clamp(1.1rem, 2vw, 1.25rem);
color: color-mix(in srgb, var(--cp-text) 70%, transparent);
max-width: 600px;
line-height: 1.6;
margin-bottom: 40px;
text-wrap: pretty;
}

.text-gradient {
background: linear-gradient(135deg, var(--cp-primary), #00e676);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

/* Flex utilities */
.flex-between {
display: flex;
justify-content: space-between;
align-items: flex-end;
gap: 24px;
margin-bottom: 48px;
}

/* Botones Extendidos */
.cp-btn-lg {
padding: 18px 36px;
font-size: 1.1rem;
border-radius: 99px;
}

.cp-btn-glass {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #fff;
}
.cp-btn-glass:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-3px);
}

.cp-btn-whatsapp {
background: #25D366;
color: #fff;
border: none;
}
.cp-btn-whatsapp:hover {
background: #1ebe5d;
box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================

HERO SLIDER PREMIUM
========================================================================== */
.home-hero {
position: relative;
height: 100vh;
min-height: 700px;
display: flex;
align-items: center;
overflow: hidden;
background: #000;
}

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

.hero-slide {
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
opacity: 0;
transform: scale(1.05);
transition: opacity 1.2s ease, transform 6s linear;
will-change: transform, opacity;
}

.hero-slide.is-active {
opacity: 1;
transform: scale(1);
z-index: 2;
}

.hero-overlay {
position: absolute;
inset: 0;
background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
z-index: 3;
}

.hero-container {
position: relative;
z-index: 4;
width: 100%;
}

.hero-content {
max-width: 800px;
color: #fff;
}

.hero-badge {
display: inline-flex;
align-items: center;
gap: 12px;
padding: 8px 16px 8px 8px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
border-radius: 50px;
margin-bottom: 32px;
font-size: 0.85rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
}

.hero-badge img {
border-radius: 50%;
background: #fff;
padding: 4px;
}

.hero-title {
font-size: clamp(3rem, 7vw, 6.5rem);
font-weight: 900;
line-height: 1;
letter-spacing: -2px;
margin-bottom: 24px;
}

.hero-subtitle {
font-size: clamp(1.1rem, 2vw, 1.3rem);
color: rgba(255, 255, 255, 0.8);
max-width: 600px;
line-height: 1.6;
margin-bottom: 40px;
}

.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 16px;
}

.hero-controls {
position: absolute;
bottom: 40px;
left: 0;
right: 0;
z-index: 5;
display: flex;
justify-content: center;
}

.hero-indicators {
display: flex;
gap: 12px;
background: rgba(0,0,0,0.3);
padding: 10px 20px;
border-radius: 50px;
backdrop-filter: blur(10px);
}

.hero-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: rgba(255,255,255,0.4);
border: none;
cursor: pointer;
transition: all 0.3s ease;
padding: 0;
}

.hero-dot.is-active {
background: var(--cp-primary);
transform: scale(1.4);
}

/* ==========================================================================
2. ESTADÍSTICAS (SUPERPUESTAS)
========================================================================== */
.home-stats-wrapper {
margin-top: -80px;
position: relative;
z-index: 10;
padding: 0 20px;
}

.stats-glass-grid {
background: var(--glass-bg);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid var(--glass-border);
border-radius: 32px;
box-shadow: 0 30px 60px rgba(0,0,0,0.12);
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
padding: 40px;
gap: 30px;
}

.stat-card {
text-align: center;
position: relative;
}

.stat-card:not(:last-child)::after {
content: '';
position: absolute;
right: -15px;
top: 20%;
height: 60%;
width: 1px;
background: var(--glass-border);
}

.stat-number {
display: block;
font-size: clamp(2.5rem, 4vw, 4rem);
font-weight: 900;
color: var(--cp-primary);
line-height: 1;
margin-bottom: 10px;
}

.stat-label {
font-size: 0.95rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
color: color-mix(in srgb, var(--cp-text) 70%, transparent);
}

/* ==========================================================================
3. MARCAS (MARQUEE)
========================================================================== */
.home-brands {
overflow: hidden;
}

.brands-title {
font-size: 0.9rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
color: color-mix(in srgb, var(--cp-text) 50%, transparent);
margin-bottom: 40px;
}

.marquee-container {
width: 100vw;
margin-left: calc(-50vw + 50%);
overflow: hidden;
mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
-webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
display: flex;
gap: 80px;
width: max-content;
animation: scrollMarquee 30s linear infinite;
}

.marquee-item img {
height: 40px;
width: auto;
object-fit: contain;
filter: grayscale(100%) opacity(0.6);
transition: filter 0.3s ease;
}

.marquee-item:hover img {
filter: grayscale(0%) opacity(1);
}

@keyframes scrollMarquee {
from { transform: translateX(0); }
to { transform: translateX(calc(-50% - 40px)); /* Mitad del track - mitad del gap */ }
}

/* ==========================================================================
4. SHOWREEL
========================================================================== /
.showreel-wrapper {
position: relative;
width: 100%;
aspect-ratio: 16/9;
overflow: hidden;
border-radius: 32px;
padding: 10px; / Para que el glass border se vea */
}

.showreel-wrapper iframe, .showreel-placeholder {
width: 100%;
height: 100%;
border-radius: 24px;
border: none;
object-fit: cover;
}

.showreel-placeholder {
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}

.showreel-placeholder::before {
content: '';
position: absolute;
inset: 0;
background: rgba(0,0,0,0.4);
border-radius: 24px;
}

.play-btn-pulse {
position: relative;
z-index: 2;
width: 80px;
height: 80px;
border-radius: 50%;
background: var(--cp-primary);
color: #fff;
border: none;
font-size: 2rem;
display: flex;
align-items: center;
justify-content: center;
padding-left: 6px;
cursor: pointer;
box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.7);
animation: pulsePlay 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulsePlay {
to { box-shadow: 0 0 0 30px rgba(0, 200, 83, 0); }
}

/* ==========================================================================
5. SERVICIOS
========================================================================== */
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: var(--gap-grid);
}

.service-card {
padding: 40px 30px;
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
}

.service-icon {
width: 64px;
height: 64px;
background: color-mix(in srgb, var(--cp-primary) 15%, transparent);
color: var(--cp-primary);
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.8rem;
margin-bottom: 24px;
transition: all 0.4s ease;
}

.service-card:hover .service-icon {
background: var(--cp-primary);
color: #fff;
transform: scale(1.1) rotate(-5deg);
}

.service-title {
font-size: 1.4rem;
font-weight: 800;
margin-bottom: 16px;
}

.service-desc {
color: color-mix(in srgb, var(--cp-text) 70%, transparent);
line-height: 1.6;
margin-bottom: 24px;
flex-grow: 1;
}

.service-link {
font-weight: 700;
color: var(--cp-primary);
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
transition: gap 0.3s ease;
}

.service-card:hover .service-link {
gap: 12px;
}

/* ==========================================================================
6. TALENTOS (HOVER CARDS)
========================================================================== */
.talents-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: var(--gap-grid);
}

.talent-card {
position: relative;
aspect-ratio: 3/4;
border-radius: 24px;
overflow: hidden;
display: block;
background: #000;
isolation: isolate;
}

.talent-card img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease;
}

.talent-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
padding: 30px;
display: flex;
flex-direction: column;
justify-content: flex-end;
color: #fff;
transition: background 0.4s ease;
}

.talent-category {
background: var(--cp-primary);
color: #fff;
padding: 6px 12px;
border-radius: 50px;
font-size: 0.75rem;
font-weight: 800;
text-transform: uppercase;
align-self: flex-start;
margin-bottom: 12px;
transform: translateY(20px);
opacity: 0;
transition: all 0.4s ease 0.1s;
}

.talent-name {
font-size: 1.8rem;
font-weight: 900;
margin-bottom: 10px;
transform: translateY(20px);
transition: all 0.4s ease 0.1s;
}

.talent-action {
font-size: 0.9rem;
font-weight: 700;
color: rgba(255,255,255,0.7);
display: flex;
align-items: center;
gap: 8px;
transform: translateY(20px);
opacity: 0;
transition: all 0.4s ease;
}

.talent-action::after {
content: '→';
font-size: 1.2rem;
}

.talent-card:hover img {
transform: scale(1.08);
filter: brightness(0.7);
}

.talent-card:hover .talent-overlay {
background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.2) 100%);
}

.talent-card:hover .talent-category,
.talent-card:hover .talent-name,
.talent-card:hover .talent-action {
transform: translateY(0);
opacity: 1;
}

/* ==========================================================================
7. PORTAFOLIO (MASONRY SIMULADO CSS)
========================================================================== /
.portfolio-masonry {
columns: 3 300px; / CSS Columns para efecto Masonry */
column-gap: var(--gap-grid);
}

.portfolio-item {
break-inside: avoid;
margin-bottom: var(--gap-grid);
position: relative;
border-radius: 24px;
overflow: hidden;
background: #000;
display: flex;
}

.portfolio-item img {
width: 100%;
display: block;
transition: transform 0.6s ease;
}

.portfolio-info {
position: absolute;
bottom: 20px;
left: 20px;
right: 20px;
padding: 20px;
border-radius: 16px;
transform: translateY(20px);
opacity: 0;
transition: all 0.4s ease;
}

.portfolio-info h3 {
margin: 0 0 5px 0;
font-size: 1.1rem;
font-weight: 800;
color: var(--cp-text);
}

.portfolio-info span {
font-size: 0.8rem;
font-weight: 700;
text-transform: uppercase;
color: var(--cp-primary);
}

.portfolio-play {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.8);
width: 60px;
height: 60px;
background: rgba(0,0,0,0.6);
backdrop-filter: blur(5px);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 1.2rem;
opacity: 0;
transition: all 0.4s ease;
}

.portfolio-link-overlay {
position: absolute;
inset: 0;
z-index: 5;
}

.portfolio-item:hover img {
transform: scale(1.05);
filter: brightness(0.8);
}

.portfolio-item:hover .portfolio-info {
transform: translateY(0);
opacity: 1;
}

.portfolio-item:hover .portfolio-play {
transform: translate(-50%, -50%) scale(1);
opacity: 1;
}

/* ==========================================================================
8. PROCESO (STEPS)
========================================================================== */
.process-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: var(--gap-grid);
counter-reset: process-counter;
}

.process-step {
padding: 40px;
position: relative;
overflow: hidden;
}

.step-number {
font-size: 4rem;
font-weight: 900;
color: color-mix(in srgb, var(--cp-primary) 20%, transparent);
line-height: 1;
margin-bottom: 20px;
transition: color 0.3s ease;
}

.process-step:hover .step-number {
color: var(--cp-primary);
}

.step-title {
font-size: 1.4rem;
font-weight: 800;
margin-bottom: 15px;
}

.step-desc {
color: color-mix(in srgb, var(--cp-text) 70%, transparent);
line-height: 1.6;
}

/* ==========================================================================
9. TESTIMONIOS
========================================================================== */
.testimonials-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: var(--gap-grid);
}

.testimonial-card {
padding: 40px;
position: relative;
}

.quote-icon {
font-size: 2.5rem;
color: color-mix(in srgb, var(--cp-primary) 30%, transparent);
margin-bottom: 20px;
}

.testimonial-text {
font-size: 1.1rem;
line-height: 1.7;
font-style: italic;
margin-bottom: 30px;
color: color-mix(in srgb, var(--cp-text) 80%, transparent);
}

.testimonial-author strong {
display: block;
font-size: 1.1rem;
font-weight: 800;
}

.testimonial-author span {
font-size: 0.9rem;
color: var(--cp-primary);
font-weight: 600;
}

/* ==========================================================================
10. FAQ
========================================================================== */
.faq-accordion {
display: flex;
flex-direction: column;
gap: 16px;
}

.faq-item {
background: var(--glass-bg);
border: 1px solid var(--glass-border);
border-radius: 16px;
overflow: hidden;
}

.faq-question {
width: 100%;
text-align: left;
padding: 24px;
background: none;
border: none;
font-size: 1.1rem;
font-weight: 700;
color: var(--cp-text);
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
font-family: inherit;
}

.faq-question i {
color: var(--cp-primary);
transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
transform: rotate(180deg);
}

.faq-answer {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 0.3s ease;
}

.faq-item.is-active .faq-answer {
grid-template-rows: 1fr;
}

.faq-answer-inner {
overflow: hidden;
padding: 0 24px;
color: color-mix(in srgb, var(--cp-text) 70%, transparent);
line-height: 1.6;
}
.faq-item.is-active .faq-answer-inner {
padding-bottom: 24px; /* padding aplicado solo cuando está abierto */
}

/* ==========================================================================
11. CTA FINAL
========================================================================== */
.cta-box {
position: relative;
border-radius: 40px;
padding: clamp(40px, 8vw, 80px);
background: #050505;
color: #fff;
overflow: hidden;
text-align: center;
box-shadow: 0 40px 80px color-mix(in srgb, var(--cp-primary) 30%, transparent);
}

.cta-bg-glow {
position: absolute;
width: 600px;
height: 600px;
background: radial-gradient(circle, color-mix(in srgb, var(--cp-primary) 40%, transparent) 0%, transparent 70%);
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
}

.cta-content {
position: relative;
z-index: 2;
max-width: 800px;
margin: 0 auto;
}

.cta-content h2 {
font-size: clamp(2.5rem, 6vw, 4.5rem);
font-weight: 900;
letter-spacing: -2px;
margin-bottom: 20px;
line-height: 1;
}

.cta-content p {
font-size: 1.2rem;
color: rgba(255,255,255,0.8);
margin-bottom: 40px;
}

.cta-actions {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
}

/* ==========================================================================
ANIMACIONES JS (REVEAL)
========================================================================== */
.js-reveal .reveal-item,
.js-reveal-stagger .reveal-item {
opacity: 0;
transform: translateY(40px);
will-change: transform, opacity;
}

.is-revealed.reveal-item,
.is-revealed .reveal-item {
animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
from { opacity: 0; transform: translateY(40px); }
to { opacity: 1; transform: translateY(0); }
}

/* Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}

/* ==========================================================================
WHATSAPP FLOTANTE
========================================================================== */
.floating-whatsapp {
position: fixed;
bottom: 30px;
right: 30px;
width: 60px;
height: 60px;
background: #25D366;
color: #fff;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
z-index: 999;
opacity: 0;
visibility: hidden;
transform: translateY(20px) scale(0.9);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp:hover {
transform: scale(1.1);
color: #fff;
}

.floating-whatsapp.is-visible {
opacity: 1;
visibility: visible;
transform: translateY(0) scale(1);
}

/* ==========================================================================
RESPONSIVE ESPECÍFICOS (Minimizados gracias a auto-fit)
========================================================================== */
.d-none-mobile { display: block; }
.d-block-mobile { display: none; }

@media (max-width: 992px) {
.home-hero { min-height: 600px; }
.hero-overlay { background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%); }
.hero-content { text-align: center; margin: 0 auto; }
.hero-actions { justify-content: center; }
.flex-between { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 768px) {
.stats-glass-grid {
grid-template-columns: repeat(2, 1fr);
}
.stat-card:nth-child(2)::after { display: none; } /* Ocultar linea central en grid de 2 */

.d-none-mobile { display: none; }
.d-block-mobile { display: block; }

.portfolio-masonry { columns: 2 200px; }

.floating-whatsapp { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 1.6rem; }


}

@media (max-width: 480px) {
.stats-glass-grid { grid-template-columns: 1fr; gap: 40px; }
.stat-card::after {
right: 0; bottom: -20px; top: auto; left: 20%; width: 60%; height: 1px;
}
.hero-actions { flex-direction: column; width: 100%; }
.cp-btn-lg { width: 100%; justify-content: center; }
.portfolio-masonry { columns: 1; }
}