/* BOP Soluciones - Premium Agency Stylesheet - Updated Fix v2 */

:root {
    --primary-white: #ffffff;
    --secondary-orange: #f29c11;
    --tertiary-gray: #6b6b6b;
    --text-dark: #121212;
    --text-light: #f5f5f5;
    --bg-light: #fbfcff;
    --bg-dark: #0f0f0f;
    --bg-card: #ffffff;
    --accent-glow: rgba(242, 156, 17, 0.15);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
    --container-max: 1200px;
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.06);
    --shadow-premium: 0 30px 60px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--primary-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 100px 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.text-white { color: var(--text-light); }
.text-center { text-align: center !important; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.large-text { font-size: 1.25rem; font-weight: 500; margin-bottom: 1.5rem; }
.w-full { width: 100%; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--secondary-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(242, 156, 17, 0.3);
}

.btn-primary:hover {
    background-color: #d98a0d;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 156, 17, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--secondary-orange);
    color: white;
    transform: translateY(-3px);
}

.text-white .btn-outline {
    border-color: white;
    color: white;
}

.text-white .btn-outline:hover {
    background-color: white;
    color: var(--bg-dark);
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-fast);
    background: transparent;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

#header.scrolled .lang-switch { color: var(--text-dark); }

.lang-switch button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 5px;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.lang-switch button.active {
    opacity: 1;
    color: var(--secondary-orange);
}

.lang-switch span { opacity: 0.3; }

#header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

#header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: white; /* Default white on hero */
}

#header.scrolled .nav-links a { 
    color: var(--text-dark); 
}

.nav-links.mobile-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    z-index: 999;
    animation: slideDown 0.3s ease forwards;
}

.nav-links.mobile-active a {
    color: var(--text-dark) !important;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-links a:hover { color: var(--secondary-orange); }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 3px;
    background: white; /* White on hero */
    border-radius: 2px;
    transition: var(--transition-fast);
}

#header.scrolled .mobile-menu-btn .bar {
    background: var(--text-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 25px;
    text-wrap: balance;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Section Title */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 30px;
    position: relative;
}

.text-center .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-orange);
    margin: 20px auto 0;
}

/* Grids */
.grid { display: grid; gap: 40px; }
.grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Value Section */
.img-premium {
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.strength-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.strength-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.accent-dot {
    width: 10px;
    height: 10px;
    background: var(--secondary-orange);
    border-radius: 50%;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--secondary-orange);
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.service-card:hover::before {
    height: 100%;
}

.service-card h3 {
    margin: 20px 0 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--tertiary-gray);
}

/* Marketing Detail */
.bullets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.bullet-item::before {
    content: '→';
    color: var(--secondary-orange);
    font-weight: 800;
}

/* AI Section */
.ai-header {
    margin-bottom: 60px;
}

.ai-visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ai-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 400px;
    border: 1px solid rgba(242, 156, 17, 0.1);
    box-shadow: 0 0 20px rgba(242, 156, 17, 0.05);
}

.ai-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 156, 17, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-fast);
    pointer-events: none;
}

.ai-card:hover::after {
    opacity: 1;
}

.ai-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.ai-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

.ai-card:hover .ai-img {
    transform: scale(1.1);
}

.ai-bullets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ai-bullet-card {
    background: rgba(242, 156, 17, 0.05);
    border: 1px solid rgba(242, 156, 17, 0.1);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.ai-bullet-card h4 { color: var(--secondary-orange); margin-bottom: 10px; }

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-fast);
    color: white;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay span {
    color: var(--secondary-orange);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Process Timeline */
.process-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.1);
    z-index: 0;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border: 2px solid var(--secondary-orange);
    color: var(--secondary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.process-step:hover .step-number {
    background: var(--secondary-orange);
    color: white;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    font-style: italic;
}

.testimonial-card p { margin-bottom: 20px; font-size: 1.1rem; }

.author strong { display: block; color: var(--text-dark); font-style: normal; }
.author span { font-size: 0.9rem; color: var(--tertiary-gray); font-style: normal; }

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
}

.form-group { margin-bottom: 20px; }

input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-orange);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Footer */
footer {
    padding: 80px 0 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-brand .footer-logo { height: 40px; margin-bottom: 20px; }
.social-links { display: flex; gap: 15px; margin-top: 25px; }

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--secondary-orange);
}

.social-links a:hover { background: var(--secondary-orange); color: white; }

.footer-links h4 { margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--secondary-orange); }

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    font-size: 0.9rem;
    color: var(--tertiary-gray);
}

/* Animations Trigger Classes - Default Visible */
.reveal-up, .reveal-left, .reveal-right, .animate-fade-up {
    opacity: 1;
    transform: translate(0, 0);
    transition: all var(--transition-slow);
}

/* Animations only trigger if JS is enabled */
body.js-enabled .reveal-up, 
body.js-enabled .reveal-left, 
body.js-enabled .reveal-right, 
body.js-enabled .animate-fade-up {
    opacity: 0;
}

body.js-enabled .reveal-up { transform: translateY(50px); }
body.js-enabled .reveal-left { transform: translateX(-50px); }
body.js-enabled .reveal-right { transform: translateX(50px); }
body.js-enabled .animate-fade-up { transform: translateY(30px); }

body.js-enabled .active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .hero-content h1 { font-size: 3.5rem; }
    .ai-visual-grid { grid-template-columns: 1fr; }
    .ai-bullets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section-padding { padding: 80px 0; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .process-timeline { flex-direction: column; gap: 40px; }
    .process-timeline::before { display: none; }
    .hero-content h1 { font-size: 2.8rem; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }
    .section-padding { padding: 60px 0; }
    .ai-bullets { grid-template-columns: 1fr; }
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition-fast);
    animation: pwa-pulse 2s infinite;
}

.whatsapp-widget svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.whatsapp-widget:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pwa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}
