:root {
    --primary: #00A3FF;
    --primary-light: #BAE6FD;
    --bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --font-outfit: 'Outfit', sans-serif;
}

[data-theme="dark"] {
    --primary: #38bdf8;
    --bg-gradient: linear-gradient(135deg, #060b16 0%, #0f172a 100%);
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.06);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
}

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

body {
    font-family: var(--font-outfit);
    color: var(--text-main);
    background: var(--bg-gradient);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

#app {
    position: relative;
    z-index: 1;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

/* Clouds Animation */
.clouds-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: white;
    filter: blur(50px);
    border-radius: 50%;
    opacity: 0.6;
    animation: drift linear infinite;
}

.cloud-1 {
    width: 400px;
    height: 200px;
    top: 10%;
    left: -10%;
    animation-duration: 60s;
}

.cloud-2 {
    width: 600px;
    height: 300px;
    top: 40%;
    left: -20%;
    animation-duration: 90s;
    opacity: 0.4;
}

.cloud-3 {
    width: 300px;
    height: 150px;
    top: 70%;
    left: -15%;
    animation-duration: 45s;
    opacity: 0.5;
}

.cloud-4 {
    width: 500px;
    height: 250px;
    top: 20%;
    right: -10%;
    animation-duration: 120s;
    opacity: 0.3;
}

@keyframes drift {
    from {
        transform: translateX(-100vw);
    }

    to {
        transform: translateX(100vw);
    }
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

/* Nav */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    padding: 15px 30px;
    border-radius: 50px;
    z-index: 1000;
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    color: var(--text-main);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.links a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.links a:hover {
    color: var(--primary);
}

/* Nav Controls (theme toggle + hamburger) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: background 0.2s, color 0.2s, transform 0.3s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(0, 163, 255, 0.12);
    color: var(--primary);
    transform: rotate(20deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    z-index: 1100;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 90px 24px 40px;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-nav.open { transform: translateY(0); }

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.35rem;
    font-weight: 700;
    padding: 11px 28px;
    border-radius: 14px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    transition: background 0.2s, color 0.2s;
    letter-spacing: -0.3px;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: rgba(0, 163, 255, 0.12);
    color: var(--primary);
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .links     { display: none; }
}

/* ── Dark Mode Overrides ───────────────────────────────── */
[data-theme="dark"] body {
    background: var(--bg-gradient);
}

[data-theme="dark"] .video-background video {
    opacity: 0.08;
}

[data-theme="dark"] .cloud {
    background: rgba(148, 163, 184, 0.15);
    opacity: 0.25;
}

[data-theme="dark"] .glass {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .glass-card {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(255, 255, 255, 0.07);
}

/* Vercel logo es negro — invertir en modo oscuro */
[data-theme="dark"] .infra-item img[alt="Vercel"] {
    filter: brightness(0) invert(1);
}

/* Formulario en modo oscuro */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: rgba(148, 163, 184, 0.7);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: rgba(15, 23, 42, 1);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* Suavizar transición global al cambiar tema */
html {
    color-scheme: light dark;
}

body,
nav,
.glass,
.glass-card,
.mobile-nav {
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Hero */
.hero {
    padding: 150px 20px 100px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.hero-content {
    padding: 60px 40px;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.photo-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.verification-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -2px;
    background: linear-gradient(to right, #1e293b, #00A3FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 163, 255, 0.2);
}

.btn.secondary {
    background: white;
    color: var(--primary);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 163, 255, 0.3);
}

/* About Section */
.about {
    padding: 80px 20px;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    padding: 60px 50px;
    text-align: center;
}

.about-content .section-title {
    margin-bottom: 40px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-text p.intro {
    font-size: 1.25rem;
    color: var(--text-main);
}

.about-text strong {
    color: var(--primary);
    font-weight: 600;
}

.philosophy-quote {
    margin-top: 30px;
    padding: 25px 30px;
    background: rgba(0, 163, 255, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.7;
}

.experience-highlights {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.highlight-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.highlight-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 8px;
}

/* Skills Section */
.skills {
    padding: 80px 0;
    padding-bottom: 100px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.skills-slider {
    position: relative;
    width: 100%;
    padding: 20px 0;
    padding-bottom: 80px;
    margin: 0;
}

.skills-track {
    margin-left: 0;
}

/* Gradient fade on sides */
.skills-slider::before,
.skills-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: calc(100% - 80px);
    z-index: 2;
    pointer-events: none;
}

.skills-slider::before {
    left: 0;
    background: linear-gradient(to right, #f0f9ff 0%, transparent 100%);
}

.skills-slider::after {
    right: 0;
    background: linear-gradient(to left, #e0f2fe 0%, transparent 100%);
}

.skills-track {
    display: flex;
    width: calc(200px * 30);
    /* 200px per card * 30 cards total (15 skills duplicated) */
    animation: scroll 65s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 15));
    }

    /* Infinite loop at half-way point (15 skills) */
}

.skill-card {
    flex-shrink: 0;
    width: 170px;
    height: 170px;
    margin: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-radius: 24px;
    transition: transform 0.3s, background 0.3s;
}

.skill-card img {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 5px 10px rgba(0, 163, 255, 0.2));
}

.skill-card span {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.6);
}

/* Tooltip - aparece arriba del carrusel */
.skill-card[data-tooltip] {
    position: relative;
    cursor: pointer;
}

.skill-card[data-tooltip]::after {
    content: attr(data-tooltip);
    position: fixed;
    top: auto;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    max-width: 250px;
    white-space: normal;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.skill-card:hover[data-tooltip]::after {
    opacity: 1;
    visibility: visible;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Projects */
.projects {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.projects-subtitle {
    text-align: center;
    margin-top: -40px;
    margin-bottom: 50px;
}

.cloudflare-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(243, 128, 32, 0.1);
    color: #F38020;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(243, 128, 32, 0.2);
}

.cloudflare-badge svg {
    flex-shrink: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    border-radius: 24px;
    overflow: hidden;
    padding: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.project-img-placeholder {
    width: 100%;
    height: 200px;
    background: var(--primary-light);
    border-radius: 16px;
    margin-bottom: 20px;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0.8;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.view-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
}

/* Alliance Card */
.alliance-card {
    border: 2px solid var(--primary);
    position: relative;
}

.alliance-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* Pricing Section */
.pricing {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -40px;
    margin-bottom: 50px;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.pricing-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    font-family: var(--font-outfit);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.pricing-tab:hover {
    border-color: var(--primary);
    background: rgba(0, 163, 255, 0.05);
}

.pricing-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 163, 255, 0.3);
}

.pricing-tab svg {
    width: 24px;
    height: 24px;
}

.tab-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 163, 255, 0.1);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-tab.active .tab-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    animation: fadeInUp 0.5s ease-out;
}

.pricing-grid.hidden {
    display: none;
}

.pricing-card {
    position: relative;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    background: rgba(0, 163, 255, 0.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.pricing-ideal {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.pricing-price {
    margin-bottom: 30px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1.2;
}

.price-range {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-main);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    flex-shrink: 0;
    color: var(--primary);
}

.pricing-maintenance {
    background: rgba(0, 163, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.pricing-maintenance span {
    color: var(--text-muted);
}

.pricing-maintenance strong {
    color: var(--text-main);
    display: block;
    margin-top: 5px;
}

.pricing-cta {
    width: 100%;
    text-align: center;
    display: block;
}

.pricing-note {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    margin: 50px auto 0;
    padding: 20px 25px;
    border-radius: 16px;
    text-align: left;
}

.pricing-note svg {
    flex-shrink: 0;
    color: var(--primary);
}

.pricing-note p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.pricing-note strong {
    color: var(--text-main);
}

/* Pricing Responsive */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .pricing-card.popular {
        order: -1;
    }
}

@media (max-width: 768px) {
    .pricing-tabs {
        flex-direction: column;
        align-items: center;
    }

    .pricing-tab {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .price-amount {
        font-size: 2rem;
    }

    .pricing-note {
        flex-direction: column;
        text-align: center;
    }
}

/* Gallery Section */
.gallery {
    padding: 100px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -40px;
    margin-bottom: 60px;
    font-style: italic;
}

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

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:nth-child(1) { grid-column: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }
.gallery-item:nth-child(7) { grid-column: span 2; }
.gallery-item:nth-child(10) { grid-column: span 2; }
.gallery-item:nth-child(13) { grid-column: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

/* Copyright Watermark */
.gallery-item::before {
    content: 'BT.';
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
    letter-spacing: -1px;
}

/* Protective Overlay */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 5;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    animation: lightboxFadeIn 0.3s ease;
    -webkit-user-drag: none;
    user-select: none;
}

/* Lightbox Watermark */
.lightbox-watermark {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    letter-spacing: -2px;
    z-index: 2001;
}

/* Copyright Notice */
.gallery-copyright {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.gallery-copyright strong {
    color: var(--primary);
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 20px;
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
}

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

.contact-content {
    padding: 60px 50px;
    text-align: center;
}

.contact-content .section-title {
    margin-bottom: 20px;
}

.contact-intro {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s, background 0.3s;
    min-width: 200px;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.6);
}

.contact-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-value {
    font-weight: 700;
    color: var(--text-main);
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: 0 auto 40px;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-outfit);
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(0, 163, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    overflow: visible;
    width: 100%;
}

.recaptcha-container .g-recaptcha {
    transform: scale(1);
    transform-origin: center center;
}

@media (max-width: 500px) {
    .recaptcha-container .g-recaptcha {
        transform: scale(0.9);
    }
}

@media (max-width: 400px) {
    .recaptcha-container .g-recaptcha {
        transform: scale(0.82);
    }
}

@media (max-width: 350px) {
    .recaptcha-container .g-recaptcha {
        transform: scale(0.72);
    }
}

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-message {
    margin-top: 15px;
    padding: 12px 18px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.contact-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.contact-divider span {
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 163, 255, 0.4);
    z-index: 999;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 163, 255, 0.5);
}

/* Quick Quote Button */
.quick-quote-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    z-index: 998;
    animation: pulse-green 2s infinite;
}

.quick-quote-btn svg {
    width: 22px;
    height: 22px;
}

.quick-quote-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 10px 40px rgba(16, 185, 129, 0.6), 0 0 0 10px rgba(16, 185, 129, 0.1);
    }
}

/* Quote Modal */
.quote-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.quote-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quote-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    animation: slideUp 0.4s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.quote-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.quote-modal-close:hover {
    color: var(--text-main);
}

.quote-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.quote-modal-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}

.quote-modal-header p {
    color: #475569;
    font-size: 1rem;
}

.faq-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(0, 163, 255, 0.1);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 163, 255, 0.2);
}

.faq-link-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 163, 255, 0.3);
}

.faq-link-btn svg {
    flex-shrink: 0;
}

/* Quote Steps */
.quote-step {
    display: none;
}

.quote-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.quote-label {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 20px;
    text-align: center;
}

/* Service Options */
.service-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.service-option input {
    display: none;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-card svg {
    color: #64748b;
    transition: color 0.3s;
}

.service-card span {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
}

.service-card small {
    font-size: 0.8rem;
    color: #64748b;
}

.service-option input:checked + .service-card {
    border-color: var(--primary);
    background: rgba(0, 163, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 163, 255, 0.2);
}

.service-option input:checked + .service-card svg {
    color: var(--primary);
}

.service-option input:checked + .service-card span {
    color: var(--primary);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Budget Options */
.budget-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.budget-option input {
    display: none;
}

.budget-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.budget-range {
    font-weight: 700;
    color: #1e293b;
}

.budget-card small {
    font-size: 0.85rem;
    color: #64748b;
}

.budget-option input:checked + .budget-card {
    border-color: var(--primary);
    background: rgba(0, 163, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 163, 255, 0.15);
}

.budget-card:hover {
    border-color: var(--primary);
}

/* Timeline Options */
.timeline-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.timeline-option {
    flex: 1;
    min-width: 120px;
}

.timeline-option input {
    display: none;
}

.timeline-option span {
    display: block;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.timeline-option input:checked + span {
    border-color: var(--primary);
    background: rgba(0, 163, 255, 0.15);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 163, 255, 0.15);
}

.timeline-option span:hover {
    border-color: var(--primary);
}

/* Quote Fields */
.quote-field {
    margin-bottom: 15px;
}

.quote-recaptcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    overflow: visible;
    width: 100%;
}

.quote-recaptcha .g-recaptcha {
    transform-origin: center center;
}

@media (max-width: 500px) {
    .quote-recaptcha .g-recaptcha {
        transform: scale(0.9);
    }
}

@media (max-width: 400px) {
    .quote-recaptcha .g-recaptcha {
        transform: scale(0.82);
    }
}

@media (max-width: 360px) {
    .quote-recaptcha .g-recaptcha {
        transform: scale(0.75);
    }
}

@media (max-width: 320px) {
    .quote-recaptcha .g-recaptcha {
        transform: scale(0.65);
    }
}

.quote-field input,
.quote-field textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    font-family: var(--font-outfit);
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.quote-field input::placeholder,
.quote-field textarea::placeholder {
    color: #94a3b8;
}

.quote-field input:focus,
.quote-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 163, 255, 0.15);
}

.quote-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Quote Buttons */
.quote-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.quote-buttons .btn {
    flex: 1;
    text-align: center;
}

.quote-next,
.quote-submit {
    width: 100%;
    margin-top: 20px;
}

.quote-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Quote Progress */
.quote-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.progress-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 163, 255, 0.3);
}

.progress-step.completed {
    background: #10b981;
    color: white;
}

.progress-line {
    width: 40px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
}

/* Quote Success */
.quote-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    margin-bottom: 20px;
}

.quote-success h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}

.quote-success p {
    color: #475569;
    margin-bottom: 25px;
}

/* Quote Modal Responsive */
@media (max-width: 600px) {
    .quote-modal {
        padding: 10px;
    }

    .quote-modal-content {
        padding: 30px 20px;
        max-height: 95vh;
        border-radius: 24px;
    }

    .service-options {
        grid-template-columns: 1fr;
    }

    .timeline-options {
        flex-direction: column;
    }

    .quote-buttons {
        flex-direction: column;
    }

    .quick-quote-btn {
        bottom: 90px;
        right: 15px;
        padding: 12px 18px;
        font-size: 0.85rem;
    }

    .quick-quote-btn span {
        display: none;
    }

    .quick-quote-btn svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 400px) {
    .quote-modal-content {
        padding: 25px 15px;
    }

    .quote-modal-header h3 {
        font-size: 1.5rem;
    }

    .quote-modal-header p {
        font-size: 0.9rem;
    }

    .service-card {
        padding: 15px 10px;
    }

    .service-card svg {
        width: 28px;
        height: 28px;
    }

    .budget-card {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .quote-progress {
        gap: 8px;
    }

    .progress-step {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .progress-line {
        width: 25px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .about-content {
        padding: 40px 25px;
    }

    .experience-highlights {
        gap: 30px;
    }

    .highlight-number {
        font-size: 2.5rem;
    }

    .contact-content {
        padding: 40px 25px;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        width: 100%;
        max-width: 280px;
    }

    .links {
        display: none;
    }

    .cloudflare-badge {
        font-size: 0.8rem;
        padding: 8px 15px;
    }

    /* Skills carousel mobile */
    .skills {
        padding: 60px 0;
    }

    .skill-card {
        width: 120px;
        height: 120px;
        margin: 0 8px;
    }

    .skill-card img,
    .skill-card svg {
        width: 40px;
        height: 40px;
    }

    .skill-card span {
        font-size: 0.8rem;
    }

    .skills-track {
        width: calc(136px * 28);
        animation: scroll-mobile 40s linear infinite;
    }

    @keyframes scroll-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-136px * 14));
        }
    }

    .skills-slider::before,
    .skills-slider::after {
        width: 50px;
    }

    /* Tooltip en móvil */
    .skill-card[data-tooltip]::after {
        font-size: 0.8rem;
        padding: 10px 15px;
        max-width: 200px;
    }

    /* Form en móvil */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-form {
        padding: 0 10px;
    }

    /* Gallery en móvil */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(7),
    .gallery-item:nth-child(10),
    .gallery-item:nth-child(13) {
        grid-column: span 1;
    }

    .gallery-subtitle {
        margin-top: -30px;
        font-size: 1rem;
    }

    /* Lightbox en móvil */
    .lightbox-prev,
    .lightbox-next {
        padding: 15px;
        font-size: 1.5rem;
    }

    .lightbox-close {
        font-size: 2rem;
        top: 10px;
        right: 15px;
    }
}

/* Tools Section Carousel */
.tools-section {
    padding: 100px 20px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.tools-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -40px;
    margin-bottom: 50px;
}

.tools-carousel-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.tools-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.tools-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.tools-nav:hover svg {
    stroke: white;
}

.tools-nav svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-main);
}

.tools-carousel {
    flex: 1;
    overflow: hidden;
}

.tools-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.tool-slide {
    min-width: calc(33.333% - 14px);
    padding: 30px 25px;
    border-radius: 24px;
    text-decoration: none;
    color: var(--text-main);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tool-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 163, 255, 0.15);
}

.tool-slide-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tool-slide-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
}

.tool-slide h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tool-slide p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.tools-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tools-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s;
}

.tools-indicators .indicator.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

.tools-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1024px) {
    .tool-slide {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .tools-section {
        padding: 60px 20px;
    }

    .tools-subtitle {
        margin-top: -30px;
        margin-bottom: 40px;
    }

    .tools-nav {
        display: none;
    }

    .tool-slide {
        min-width: calc(85%);
    }

    .tools-carousel {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tools-carousel::-webkit-scrollbar {
        display: none;
    }

    .tool-slide {
        scroll-snap-align: center;
    }
}

/* FAQ Section */
.faq-section {
    padding: 100px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-section .container {
    width: 100%;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 163, 255, 0.1);
}

.faq-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    padding: 20px 25px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-item h3::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active h3::after {
    transform: rotate(45deg);
}

.faq-item h3:hover {
    color: var(--primary);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    padding: 0 25px 20px;
    margin: 0;
    display: none;
    animation: fadeInUp 0.3s ease;
}

.faq-item.active p {
    display: block;
}

.faq-item.active {
    border-color: var(--primary);
    background: rgba(0, 163, 255, 0.05);
}

@media (max-width: 768px) {
    .faq-section {
        padding: 60px 20px;
    }

    .faq-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .faq-item h3 {
        font-size: 1rem;
        padding: 18px 20px;
    }

    .faq-item p {
        padding: 0 20px 18px;
        font-size: 0.95rem;
    }
}

/* Certificaciones */
.cert-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 12px;
    margin-top: 28px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.cert-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.cert-item:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 163, 255, 0.1);
}

.cert-item--active {
    border-color: rgba(16, 185, 129, 0.35);
}

.cert-issuer {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cert-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
}

.cert-badge {
    display: inline-block;
    font-size: 0.63rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 2px 8px;
    margin-top: 3px;
    width: fit-content;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Consultoría y Seguridad Digital */
.consulting-section {
    margin-top: 64px;
    padding-top: 64px;
    border-top: 1px solid var(--glass-border);
}

.consulting-header {
    text-align: center;
    margin-bottom: 44px;
}

.consulting-title {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.consulting-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

.consulting-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.consulting-card {
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.consulting-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
}

.consulting-card--tech::before {
    background: linear-gradient(90deg, #00A3FF, #7c3aed);
}

.consulting-card--security::before {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.consulting-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.consulting-card--tech .consulting-card-icon {
    background: rgba(0, 163, 255, 0.15);
    color: #00A3FF;
}

.consulting-card--security .consulting-card-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.consulting-card-icon svg {
    width: 26px;
    height: 26px;
}

.consulting-card h4 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.consulting-card-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 22px;
}

.consulting-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.consulting-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.consulting-features li::before {
    content: '→';
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 0.85rem;
}

.consulting-card--tech .consulting-features li::before {
    color: #00A3FF;
}

.consulting-card--security .consulting-features li::before {
    color: #ef4444;
}

.consulting-cta {
    width: 100%;
    text-align: center;
    display: block;
}

/* Infraestructura tecnológica */
.infra-strip {
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.infra-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.infra-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

.infra-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 36px 48px;
}

.infra-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.infra-item img,
.infra-item svg {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.infra-item span {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
}

.infra-item small {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 768px) {
    .consulting-section {
        margin-top: 48px;
        padding-top: 48px;
    }

    .consulting-cards {
        grid-template-columns: 1fr;
    }

    .consulting-card {
        padding: 24px;
    }

    .consulting-title {
        font-size: 1.5rem;
    }

    .infra-strip {
        padding: 28px 20px;
    }

    .infra-logos {
        gap: 24px 32px;
    }

    .infra-item img,
    .infra-item svg {
        width: 36px;
        height: 36px;
    }
}

/* Pricing tagline y trust bar */
.pricing-tagline {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 auto 20px;
    max-width: 640px;
}

.pricing-tagline strong {
    color: var(--text-main);
}

.pricing-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-bottom: 48px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #10b981;
}

.trust-item svg {
    flex-shrink: 0;
    color: #10b981;
}

/* Carrusel social */
.social-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto 16px;
}

.social-carousel {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}

.social-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.social-slide {
    min-width: 100%;
}

.social-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.social-nav {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.social-nav:hover {
    background: rgba(0, 163, 255, 0.15);
    border-color: var(--primary);
}

.social-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 52px;
}

.social-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.social-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

@media (max-width: 600px) {
    .social-carousel-wrapper {
        max-width: 100%;
        gap: 8px;
    }

    .social-nav {
        width: 34px;
        height: 34px;
    }

    .pricing-tagline {
        font-size: 1rem;
    }
}

/* Presentation Popup */
.presentation-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.presentation-popup.active {
    opacity: 1;
    visibility: visible;
}

.presentation-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 20, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.presentation-popup-content {
    position: relative;
    z-index: 1;
    width: min(460px, 90vw);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.presentation-popup.active .presentation-popup-content {
    transform: translateY(0) scale(1);
}

.presentation-popup-content img {
    width: 100%;
    display: block;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.presentation-popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s, transform 0.2s;
}

.presentation-popup-close:hover {
    background: rgba(0, 163, 255, 0.2);
    transform: rotate(90deg);
}

.presentation-popup-close svg {
    width: 16px;
    height: 16px;
}

.presentation-popup-cta {
    display: block;
    text-align: center;
    margin-top: 14px;
    padding: 13px 24px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 6px 24px rgba(0, 163, 255, 0.4);
}

.presentation-popup-cta:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 170px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 11px 18px 11px 13px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s, color 0.3s;
    animation: pulse-whatsapp 2.5s infinite;
}

.whatsapp-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn.offline {
    background: var(--glass-bg);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    box-shadow: none;
    animation: none;
    cursor: not-allowed;
}

.whatsapp-btn.offline:hover {
    transform: none;
    box-shadow: none;
}

.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 7px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
}

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
    50%       { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.75); }
}

@media (max-width: 600px) {
    .whatsapp-btn {
        bottom: 165px;
        padding: 12px;
        border-radius: 50%;
    }
    .whatsapp-label {
        display: none;
    }
}

/* Glosario Técnico */
.glosario-section {
    padding: 100px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.glosario-container {
    width: 100%;
}

.glosario-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

.glosario-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
}

.glosario-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 22px 24px;
    transition: all 0.3s ease;
}

.glosario-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 163, 255, 0.1);
    border-color: var(--primary);
}

.glosario-item dt {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.glosario-tag {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(0, 163, 255, 0.12);
    border: 1px solid rgba(0, 163, 255, 0.25);
    border-radius: 20px;
    padding: 2px 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.glosario-item dd {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .glosario-section {
        padding: 60px 20px;
    }

    .glosario-list {
        grid-template-columns: 1fr;
    }

    .glosario-intro {
        font-size: 1rem;
        margin-bottom: 40px;
    }
}