/* ==========================================================================
   AD DIGITAL - AGENCIA DE MARKETING Y PUBLICIDAD
   Variables & Base Styles
   ========================================================================== */

   :root {
    /* Colors */
    --bg-primary: #0A0A0F;
    --bg-secondary: #111118;
    --bg-footer: #08080D;
    
    --accent-primary: #1A6FFF;
    --accent-secondary: #00C2FF;
    --accent-cta: #1A6FFF;
    
    --text-primary: #F2F2F7;
    --text-secondary: #9090B0;
    
    --card-bg: rgba(22, 22, 31, 0.85);
    --card-border: rgba(26, 111, 255, 0.2);
    
    --brand-gradient: linear-gradient(135deg, #1A6FFF 0%, #00C2FF 100%);
    
    /* Typography */
    --font-display: 'Poppins', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    /* Effects */
    --glass-blur: blur(12px);
    --transition-fast: 0.3s ease-out;
    --transition-normal: 0.5s ease-out;
    --transition-slow: 0.8s ease-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    width: 100%;
}

h1, h2 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(36px, 8vw, 80px); }
h2 { font-size: clamp(28px, 5vw, 56px); }
h3 { font-size: clamp(22px, 4vw, 36px); }

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img, svg {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-dark {
    background-color: var(--bg-primary);
}

section {
    padding: 6rem 0;
    position: relative;
}

.center {
    text-align: center;
}

/* ==========================================================================
   Typography & Effects Utilities
   ========================================================================== */

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    transition: var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(26, 111, 255, 0.6);
    box-shadow: 0 10px 30px rgba(26, 111, 255, 0.15);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-whatsapp-alt, .filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--accent-cta);
    color: #fff;
    box-shadow: 0 4px 20px rgba(26, 111, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 111, 255, 0.5);
    background-color: #3b82f6;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(26, 111, 255, 0.1);
    border: 1px solid rgba(26, 111, 255, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

.badge-icon {
    color: var(--accent-secondary);
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-fast);
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(26, 111, 255, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.main-logo {
    height: 85px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
}

.header.scrolled .main-logo {
    height: 65px;
}

.logo-icon svg {
    filter: drop-shadow(0 0 5px rgba(26, 111, 255, 0.5));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-list a:hover {
    color: var(--accent-secondary);
}

.header-cta {
    background: var(--brand-gradient);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 15px rgba(26, 111, 255, 0.4);
}

.header-cta:hover {
    box-shadow: 0 6px 20px rgba(0, 194, 255, 0.5);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(26, 111, 255, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(0, 194, 255, 0.1) 0%, transparent 40%);
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-proof-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stars {
    color: #FFC107;
    letter-spacing: 2px;
}

/* Floating Cards Animation */
.hero-visual {
    position: relative;
    height: 500px;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    padding: 0.8rem;
    border-radius: 16px;
    background: rgba(26, 111, 255, 0.08);
    border: 1px solid rgba(26, 111, 255, 0.25);
    box-shadow: 0 20px 50px rgba(26, 111, 255, 0.15);
}

.hero-main-media {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    background-color: #000;
}

.floating-badge {
    position: absolute;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 111, 255, 0.4);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 5;
}

.floating-badge i {
    color: var(--accent-secondary);
    font-size: 1.3rem;
}

.badge-1 {
    top: 50px;
    left: -40px;
    animation: float 4s ease-in-out infinite alternate;
    --rot: 0deg;
}

.badge-2 {
    bottom: 80px;
    right: -30px;
    animation: float 5s ease-in-out infinite alternate-reverse;
    --rot: 0deg;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rot)); }
    50% { transform: translateY(-15px) rotate(var(--rot)); }
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--text-secondary);
    animation: pulseY 2s infinite;
}

@keyframes pulseY {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* ==========================================================================
   Banda de Clientes (Marquee)
   ========================================================================== */
.clientes {
    background-color: #ffffff;
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.clientes-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.clientes-text {
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    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 {
    display: flex;
    width: fit-content;
    animation: scroll 30s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
    flex-shrink: 0;
}

.client-logo {
    width: 180px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition-fast);
    cursor: default;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@keyframes scroll {
    to { transform: translateX(calc(-50%)); }
}

/* ==========================================================================
   Servicios Section
   ========================================================================== */
.section-header {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(26, 111, 255, 0.4);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   Portafolio Section
   ========================================================================== */
.portafolio {
    background-color: var(--bg-secondary);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 50px;
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(26, 111, 255, 0.2);
    color: #fff;
    border-color: var(--accent-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.2);
}

.green { background: linear-gradient(135deg, #1b3a1b, #2e5c2e); }
.red { background: linear-gradient(135deg, #3a1b1b, #5c2e2e); }
.dark-violet { background: linear-gradient(135deg, #2a1040, #401860); }
.blue { background: linear-gradient(135deg, #1b263a, #2e405c); }
.cyan { background: linear-gradient(135deg, #103b40, #185a60); }
.pink { background: linear-gradient(135deg, #40102a, #601840); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: var(--transition-fast);
    padding: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: var(--transition-fast);
}

.portfolio-client {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: var(--transition-fast);
    transition-delay: 0.1s;
}

.portfolio-icon {
    font-size: 2rem;
    color: #fff;
    transform: translateY(20px);
    transition: var(--transition-fast);
    transition-delay: 0.2s;
}

.portfolio-item:hover .portfolio-category,
.portfolio-item:hover .portfolio-client,
.portfolio-item:hover .portfolio-icon {
    transform: translateY(0);
}

/* ==========================================================================
   Videos Section
   ========================================================================== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-card {
    padding: 1rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* ==========================================================================
   Estadísticas
   ========================================================================== */
.estadisticas {
    background: var(--bg-secondary);
    position: relative;
    padding: 8rem 0;
}

.stats-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ==========================================================================
   Nosotros
   ========================================================================== */
.nosotros-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.img-wrapper {
    padding: 1rem;
    transform: rotate(-3deg);
    transition: var(--transition-normal);
}

.img-wrapper:hover {
    transform: rotate(0deg);
}

.director-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.nosotros-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.nosotros-pilares {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.nosotros-pilares li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 500;
}

.nosotros-pilares i {
    color: var(--accent-secondary);
    font-size: 1.2rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* ==========================================================================
   Proceso de Trabajo
   ========================================================================== */
.proceso {
    background-color: var(--bg-secondary);
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(26, 111, 255, 0.2);
    z-index: 0;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-secondary);
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition-fast);
}

.process-step:hover .step-icon {
    background: var(--brand-gradient);
    color: #fff;
    border-color: transparent;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   Testimonios
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    flex-grow: 1;
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h5 {
    margin-bottom: 0.2rem;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
    background-color: var(--bg-secondary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    background: rgba(22, 22, 31, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: var(--transition-fast);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
}

/* ==========================================================================
   Contacto Form
   ========================================================================== */
.contacto {
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
}

.contacto-info {
    padding: 4rem;
    background: rgba(26, 111, 255, 0.05);
}

.contacto-subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.c-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(26, 111, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    font-size: 1.2rem;
}

.contact-item h5 {
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-item a, .contact-item span {
    font-weight: 600;
    font-size: 1.1rem;
}

.social-links-contact {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-btn:hover {
    background: var(--brand-gradient);
    color: #fff;
    transform: translateY(-3px);
}

.contacto-form-container {
    padding: 4rem;
    background: rgba(10, 10, 15, 0.5);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(26, 111, 255, 0.05);
}

.form-group select option {
    color: #000000;
    background-color: #ffffff;
}

.w-100 {
    width: 100%;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.form-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    color: var(--text-secondary);
}

.form-divider::before, .form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

.btn-whatsapp-alt {
    width: 100%;
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-alt:hover {
    background: #25D366;
    color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-footer);
    position: relative;
}

.footer-top-border {
    height: 2px;
    width: 100%;
    background: var(--brand-gradient);
}

.footer-container {
    padding: 5rem 2rem 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-tagline {
    color: var(--text-secondary);
    margin: 1rem 0 2rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.5rem;
}

.footer-social a:hover {
    color: var(--accent-primary);
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: var(--accent-secondary);
}

.contact-col li {
    display: flex;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    align-items: flex-start;
}

.contact-col i {
    color: var(--accent-secondary);
    font-size: 1.2rem;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    animation: pulse-green 3s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.tooltip {
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    transform: translateX(10px);
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
    .process-timeline { flex-direction: column; gap: 2rem; }
    .process-timeline::before {
        top: 0; left: 40px; width: 2px; height: 100%;
    }
    .process-step { display: flex; text-align: left; gap: 1.5rem; align-items: flex-start; }
    .step-icon { margin: 0; flex-shrink: 0; width: 60px; height: 60px; font-size: 1.5rem; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-container, .nosotros-container, .contacto-wrapper { grid-template-columns: 1fr; }
    .hero { padding-top: 120px; text-align: center; }
    .hero-actions { justify-content: center; flex-direction: column; }
    .social-proof-hero { justify-content: center; }
    .hero-visual { display: block; margin-top: 2rem; } /* Se vuelve a mostrar el video del primer bloque en móviles */
    
    .mobile-toggle { display: block; }
    .main-logo { height: 60px; }
    .header.scrolled .main-logo { height: 50px; }
    
    .navbar {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: var(--bg-secondary); padding: 6rem 2rem;
        transition: var(--transition-normal); z-index: 1000;
        border-left: 1px solid rgba(255,255,255,0.1);
    }
    .navbar.active { right: 0; }
    .nav-list { flex-direction: column; gap: 1.5rem; font-size: 1.2rem; }
    .header-cta { display: none; }
    
    .testimonials-grid { grid-template-columns: 1fr; }
    .services-grid, .portfolio-grid, .videos-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .contacto-info, .contacto-form-container { padding: 1.5rem; }
    .container { padding: 0 1rem; }
    .portfolio-item { height: 220px; }
}

@media (max-width: 480px) {
    .services-grid, .portfolio-grid, .videos-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .portfolio-item { height: 160px; border-radius: 10px; }
    .service-card { padding: 1.5rem 1rem; }
    .service-icon { width: 40px; height: 40px; font-size: 1.2rem; margin-bottom: 1rem; }
    .service-card h3 { font-size: 1rem; }
    .service-card p { font-size: 0.8rem; }
    .video-card h4 { font-size: 0.9rem; }
    .portfolio-overlay { padding: 0.5rem; }
    .portfolio-category { font-size: 0.6rem; transform: translateY(0); margin-bottom: 0.2rem; }
    .portfolio-icon { font-size: 1.2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .btn-primary, .btn-secondary { width: 100%; padding: 1rem 0.5rem; font-size: 0.95rem; }
    .contacto-info, .contacto-form-container { padding: 1rem; }
    .container { padding: 0 0.8rem; }
}
