/* Reset y Variables */
:root {
    --primary-color: #D4AF37;
    --secondary-color: #B8860B;
    --accent-color: #FFD700;
    --dark-color: #1a1a1a;
    --light-color: #FAFAFA;
    --text-color: #2d2d2d;
    --text-light: #666666;
    --gradient: linear-gradient(135deg, #D4AF37, #FFD700, #B8860B);
    --shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
    --shadow-lg: 0 20px 60px rgba(212, 175, 55, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
    min-height: 100vh;
    transition: background 0.4s ease, color 0.3s ease;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s cubic-bezier(.2,.9,.2,1), transform 0.9s cubic-bezier(.2,.9,.2,1);
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Logo animated gradient */
.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Buttons refinados */
.btn-primary {
    background: linear-gradient(90deg, #D4AF37 0%, #FFD700 100%);
    color: #111;
    padding: 0.95rem 1.75rem;
    border-radius: 999px;
    box-shadow: 0 8px 30px rgba(212,175,55,0.12);
    border: 1px solid rgba(255,215,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 50px rgba(212,175,55,0.18);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(212,175,55,0.8);
}
.btn-secondary:hover {
    background: rgba(212,175,55,0.95);
    color: #111;
}

/* Hero styles polish */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #000000 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(212,175,55,0.35));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -500px 0; }
    100% { background-position: 500px 0; }
}

/* Hero microinteractions */
.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(.2,.9,.2,1), opacity 0.6s ease;
}
.reveal.in-view .hero-description {
    transform: translateY(0);
    opacity: 1;
}

.hero-buttons .btn {
    position: relative;
    overflow: hidden;
    will-change: transform;
}
.hero-buttons .btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.06), transparent 30%);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.hero-buttons .btn:hover::after { opacity: 1; transform: scale(1.05); }

/* Focus styles for accessibility */
a:focus, .btn:focus {
    outline: 3px solid rgba(212,175,55,0.2);
    outline-offset: 4px;
}

/* Make hero layout friendlier on small screens */
@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; gap: 2rem; }
    .hero-text { text-align: center; }
    .hero-image { display: flex; justify-content: center; }
    .hero-card { margin-top: 1.5rem; }
}

/* Hero card refinements */
.hero-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    border: 1px solid rgba(212,175,55,0.12);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 2px 12px rgba(212,175,55,0.06);
}

/* Navigation improvements */
.nav-menu a {
    color: rgba(255,255,255,0.9);
    padding: 0.25rem 0.15rem;
}
.nav-menu a.active,
.nav-menu a:hover {
    color: #FFD700;
}

.hamburger {
    display: none;
}

/* Hamburguesa animada */
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile overlay nav */
.nav-menu {
    transition: transform 0.35s cubic-bezier(.2,.9,.2,1);
}
.nav-menu.active {
    transform: translateX(0) !important;
}

/* Small screens polish */
@media (max-width: 968px) {
    .hamburger { display: flex; }
    .logo span { font-size: 1.1rem; }
    .nav-menu { left: -100%; transform: translateX(-100%); }
    .hero h1 { font-size: 2.5rem; }
}

/* Cursor Personalizado */
.custom-cursor {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, background 0.2s ease;
    transform: translate(-50%, -50%);
    opacity: 0.7;
    will-change: transform;
}

.custom-cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: none;
    transform: translate(-50%, -50%);
    will-change: transform;
}

.custom-cursor.expand {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(212, 175, 55, 0.1);
}

/* Canvas de Partículas */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 12px;
    }
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 1.1rem;
    }
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    -webkit-text-fill-color: initial;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .logo-img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 600px) {
    .logo-img {
        width: 35px;
        height: 35px;
    }
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.5));
}

.logo i {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

@media (max-width: 968px) {
    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .nav-menu {
        gap: 1rem;
        flex-direction: column;
    }
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .nav-menu a {
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .nav-menu a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #000000 100%);
    overflow: hidden;
    padding-top: 80px;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px 0;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 60px 0 30px 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    justify-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-content {
        gap: 0.75rem;
    }
}

@media (max-width: 600px) {
    .hero-content {
        gap: 0.5rem;
    }
}

.hero-text {
    color: white;
    width: 100%;
    text-align: center;
    animation: fadeInUp 1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-logo-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    order: -1;
}

@media (max-width: 768px) {
    .hero-logo-container {
        margin-bottom: 1rem;
        order: -1;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-logo-container {
        margin-bottom: 0.75rem;
        order: -1;
        max-width: 100%;
    }
}

.hero-logo {
    display: block;
    width: min(92vw, 1000px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(212, 175, 55, 0.5));
    animation: pulse 1s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero-logo {
        width: min(85vw, 500px);
        filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.4));
    }
}

@media (max-width: 600px) {
    .hero-logo {
        width: min(75vw, 250px);
        filter: drop-shadow(0 3px 10px rgba(212, 175, 55, 0.3));
    }
}

/* Carrusel de imágenes */
.carousel {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 1080px;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: unset;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.9);
    color: white;
    border: 2px solid rgba(212, 175, 55, 0.5);
    padding: 0;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.carousel-btn:hover,
.carousel-btn:focus {
    background: rgba(212, 175, 55, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    border-color: rgba(212, 175, 55, 1);
    outline: none;
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.15);
}

.carousel-dot.active {
    background: rgba(212, 175, 55, 1);
    width: 28px;
    border-radius: 6px;
    border-color: rgba(212, 175, 55, 1);
}

@media (max-width: 1024px) {
    .carousel {
        width: 100vw;
        max-width: 100vw;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .carousel {
        width: 100vw;
        max-width: 100vw;
        height: 60vh;
        border-radius: 0;
        box-shadow: none;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-btn:hover {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    }
    
    .carousel-prev {
        left: 0.8rem;
    }
    
    .carousel-next {
        right: 0.8rem;
    }
    
    .carousel-indicators {
        bottom: 1rem;
        gap: 0.4rem;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-dot.active {
        width: 24px;
    }
}

@media (max-width: 600px) {
    .carousel {
        border-radius: 0;
        box-shadow: none;
        height: 50vh;
    }
    
    .carousel-inner {
        min-height: unset;
    }
    
    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
        background: rgba(212, 175, 55, 0.95);
        border: 2px solid rgba(212, 175, 55, 0.6);
    }
    
    .carousel-btn:hover {
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
    }
    
    .carousel-prev {
        left: 0.6rem;
    }
    
    .carousel-next {
        right: 0.6rem;
    }
    
    .carousel-indicators {
        bottom: 0.8rem;
        gap: 0.35rem;
    }
    
    .carousel-dot {
        width: 9px;
        height: 9px;
    }
    
    .carousel-dot.active {
        width: 20px;
    }
}

.subtitle {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

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

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-description {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 600px) {
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        display: none;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.25rem;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        gap: 0.4rem;
        margin-top: 0.25rem;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .btn {
        padding: 0.65rem 1.1rem;
        font-size: 0.85rem;
    }
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-block {
    width: 100%;
    justify-content: center;
}

.hero-image {
    animation: fadeInRight 1s ease;
}

.hero-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-card i {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
}

.hero-card h3 {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
}

.hero-card p {
    color: white;
    font-size: 1.1rem;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@media (max-width: 600px) {
    .scroll-indicator {
        bottom: 0.75rem;
        font-size: 0.9rem;
    }
}

.scroll-indicator i {
    color: white;
    font-size: 2rem;
}

/* Estadísticas */
.stats {
    padding: 4rem 0;
    background: white;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-item i {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
}

/* Secciones */
section {
    padding: 6rem 0;
}

@media (max-width: 968px) {
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 600px) {
    section {
        padding: 2.5rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 600px) {
    .section-header {
        margin-bottom: 2rem;
    }
}

.section-subtitle {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .section-header h2 {
        font-size: 1.5rem;
    }
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .section-description {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .section-description {
        font-size: 0.95rem;
    }
}

/* Sobre Mí */
.about {
    background: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.about-text .lead {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .about-text .lead {
        font-size: 1.15rem;
    }
}

@media (max-width: 600px) {
    .about-text .lead {
        font-size: 1rem;
    }
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

.skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

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

@media (max-width: 600px) {
    .skills {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.skill-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(212, 175, 55, 0.2);
    transition: all 0.5s ease;
    overflow: hidden;
}

.about-logo-img {
    width: 280px;
    height: 280px;
    object-fit: contain;
    transition: all 0.5s ease;
    filter: drop-shadow(0 10px 30px rgba(212, 175, 55, 0.3));
}

.image-placeholder:hover .about-logo-img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 15px 40px rgba(212, 175, 55, 0.5));
}

.image-placeholder i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Servicios */
.services {
    background: white;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    animation: float 20s infinite;
}

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

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.service-card {
    padding: 2.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f5f5f5;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .service-card {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .service-card {
        padding: 1.5rem;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transition: all 0.5s ease;
    z-index: 0;
}

.service-card:hover::before {
    top: 0;
}

.service-card:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: var(--shadow-lg);
}

.service-card:hover .service-icon,
.service-card:hover h3,
.service-card:hover p {
    position: relative;
    z-index: 1;
}

.service-card:hover h3,
.service-card:hover p {
    color: white;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    background: white;
    transform: rotateY(360deg) scale(1.1);
}

.service-card:hover .service-icon i {
    color: var(--primary-color);
}

.service-icon i {
    font-size: 2rem;
    color: white;
    transition: all 0.5s ease;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .service-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .service-card h3 {
        font-size: 1.1rem;
    }
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Proyectos/Clientes */
.projects {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.projects .section-subtitle,
.projects .section-header h2,
.projects .section-description {
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .project-card {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .project-card {
        padding: 1.25rem;
    }
}

.project-card {
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(255, 215, 0, 0.9));
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 0;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
}

.project-card:hover .project-icon {
    transform: rotate(360deg) scale(1.2);
    background: rgba(255, 255, 255, 0.3);
}

.project-icon i {
    font-size: 2.5rem;
    color: white;
}

.project-content {
    position: relative;
    z-index: 1;
}

.project-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-content > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.project-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.project-stats i {
    font-size: 1rem;
}

.project-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: all 0.5s ease;
    z-index: 2;
}

.project-card:hover .project-hover {
    transform: translateY(0);
}

.project-hover p {
    color: white;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.more-projects {
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.more-projects:hover {
    background: rgba(255, 255, 255, 0.25);
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 15s infinite ease-in-out;
}

.floating-particles::before {
    top: 10%;
    left: 10%;
    animation-delay: -5s;
}

.floating-particles::after {
    bottom: 10%;
    right: 10%;
    animation-delay: -10s;
}

/* Experiencia */
.experience {
    background: var(--light-color);
}

.experience-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.experience-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .experience-highlights {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .experience-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.highlight-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .highlight-card {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .highlight-card {
        padding: 1.25rem;
    }
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.highlight-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.highlight-card h4 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.highlight-card p {
    color: var(--text-light);
}

.clients-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.clients-section h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: center;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.sector-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.sector-tag:hover {
    background: var(--gradient);
    transform: translateY(-5px);
}

.sector-tag i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Planes y Precios */
.plans-section {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.75rem;
        margin: 2rem 0;
    }
}

@media (max-width: 600px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
}

/* Para 3 planes en desktop, asegurar 3 columnas */
@media (min-width: 1100px) {
    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .plan-premium {
        transform: scale(1.02);
    }
}

.plan-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    color: white;
}

@media (max-width: 768px) {
    .plan-card {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .plan-card {
        padding: 1.5rem;
    }
}

.plan-card:hover {
    transform: translateY(-15px);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 30px 60px rgba(212, 175, 55, 0.2);
}

.plan-featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.1);
    transform: scale(1.05);
}

.plan-featured:hover {
    box-shadow: 0 30px 80px rgba(212, 175, 55, 0.3);
}

.plan-premium {
    background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%), 
                linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(255, 215, 0, 0.02));
    border: 2px solid var(--primary-color) !important;
    position: relative;
}

.plan-premium::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.plan-premium .plan-features li {
    color: #e8e8e8;
}

.plan-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-color);
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    width: fit-content;
}

.plan-badge-premium {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(255, 215, 0, 0.15));
    border: 1px solid var(--primary-color);
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 1rem 0;
}

.plan-price .currency {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.plan-price .amount {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-frequency {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.plan-discount {
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    color: var(--accent-color);
}

.plan-features {
    list-style: none;
    margin: 2rem 0;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.8rem 0;
    color: #e0e0e0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

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

.plan-features i {
    color: var(--primary-color);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.plan-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.plan-slogan {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.6;
}

.plan-footer .btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
}

.plans-note {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    margin-top: 3rem;
    text-align: center;
    color: white;
}

.plans-note p {
    margin: 0;
}

/* Responsive Planes */
@media (max-width: 968px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .plan-featured {
        transform: scale(1);
    }
    
    .plan-premium {
        transform: scale(1);
    }

    .plan-price .amount {
        font-size: 2.8rem;
    }
}

 /* Marca de agua personal */
        .watermark {
            position: fixed;
            bottom: 8px;
            right: 12px;
            font-size: 0.7rem;
            color: #999;
            opacity: 0.5;
            pointer-events: none;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            letter-spacing: 0.5px;
            z-index: 10;
        }
.sector-tag:hover i {
    color: white;
}

.sector-tag span {
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.sector-tag:hover span {
    color: white;
}

/* Testimonios */
.testimonials {
    background: white;
}

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

.testimonial-card {
    padding: 2.5rem;
    background: var(--light-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.stars {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.stars i {
    color: #FFD700;
    font-size: 1.2rem;
}

.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--dark-color);
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Contacto */
.contact {
    background: var(--light-color);
}

/* Sección Diana Bedoya */
.diana-section {
    background: linear-gradient(180deg, #111111 0%, #1a1a1a 60%, #0d0d0d 100%);
    position: relative;
    overflow: hidden;
}

.diana-section .section-header h2,
.diana-section .section-description {
    color: #ffffff;
}

.diana-value-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.diana-value-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.diana-value-card p {
    color: #f5f5f5;
    font-size: 1.05rem;
    line-height: 1.8;
}

.diana-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.5rem;
}

.diana-service-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(212, 175, 55, 0.16);
}

/* Evitar pérdida de contraste en hover dentro de la sección Diana */
.diana-service-card::before {
    display: none !important;
}

.diana-service-card:hover {
    background: linear-gradient(180deg, rgba(32, 32, 32, 0.95), rgba(18, 18, 18, 0.95)) !important;
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 175, 55, 0.15) inset;
    transform: translateY(-10px);
}

.diana-service-card:hover h3,
.diana-service-card:hover p,
.diana-service-card:hover li,
.diana-service-card:hover .diana-subtitle,
.diana-service-card:hover .diana-result {
    color: #ffffff !important;
}

.diana-service-card:hover .service-icon {
    background: rgba(212, 175, 55, 0.2) !important;
}

.diana-service-card:hover .service-icon i {
    color: #FFD700 !important;
}

.diana-service-card h3 {
    color: #ffffff;
    font-size: 1.15rem;
}

.diana-service-card ul {
    margin: 0.75rem 0 0;
    padding-left: 1.1rem;
}

.diana-service-card li {
    color: #f1f1f1;
    margin-bottom: 0.5rem;
    line-height: 1.55;
}

.diana-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 0.25rem;
}

.diana-result {
    margin-top: 1rem;
    color: var(--accent-color) !important;
    font-weight: 700;
}

.diana-differential {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
}

.diana-differential h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.diana-differential-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 0.75rem;
}

.diana-differential-grid p {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.08);
    color: #f5f5f5;
    border: 1px solid rgba(212, 175, 55, 0.18);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.5rem;
}

.contact-details h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-details a,
.contact-details p {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .contact-form {
        padding: 1.5rem;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

@media (max-width: 600px) {
    .form-group input,
    .form-group textarea {
        padding: 0.85rem;
        font-size: 0.95rem;
    }
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.footer-social h4 {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

/* Chatbot de IA */
.ai-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-float-btn i {
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s ease;
}

.ai-float-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 35px rgba(212, 175, 55, 0.7);
}

.ai-float-btn:hover i {
    animation: pulse 0.5s ease;
}

.ai-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #D4AF37;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.ai-chat-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 400px;
    max-width: calc(100vw - 60px);
    height: 600px;
    max-height: calc(100vh - 150px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    z-index: 998;
    display: flex;
    flex-direction: column;
    transform: scale(0) translateY(20px);
    opacity: 0;
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Botón separado para enviar por WhatsApp desde el chat */
#aiWhatsAppBtn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(90deg, #D4AF37 0%, #B8860B 100%);
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#aiWhatsAppBtn i {
    color: white;
    font-size: 1.1rem;
}

#aiWhatsAppBtn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(212,175,55,0.22);
}

.ai-chat-container.active {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.ai-chat-header {
    background: var(--gradient);
    padding: 1.25rem 1.5rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.ai-chat-title i {
    font-size: 1.8rem;
}

.ai-chat-title h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.ai-status {
    font-size: 0.8rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ai-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #FFD700;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.ai-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-close-btn i {
    color: white;
    font-size: 1.2rem;
}

.ai-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.ai-message {
    display: flex;
    gap: 0.75rem;
    animation: fadeInUp 0.4s ease;
}

.ai-message-user {
    flex-direction: row-reverse;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-avatar i {
    color: white;
    font-size: 1.2rem;
}

.ai-message-user .ai-avatar {
    background: #f5f5f5;
}

.ai-message-user .ai-avatar i {
    color: var(--primary-color);
}

.ai-message-content {
    max-width: 75%;
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ai-message-user .ai-message-content {
    background: var(--gradient);
    color: white;
}

.ai-message-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ai-message-content p:last-child {
    margin-bottom: 0;
}

.ai-message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.ai-message-content li {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.ai-quick-questions {
    padding: 0.75rem 1rem;
    background: white;
    border-top: 1px solid #e5e5e5;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-question-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.quick-question-btn:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-2px);
}

.ai-chat-input {
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 0 0 20px 20px;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: center;
    border-top: 1px solid #e5e5e5;
}

.ai-chat-input input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.ai-chat-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

#aiSendBtn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#aiSendBtn i {
    color: white;
    font-size: 1.1rem;
}

#aiSendBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.ai-typing {
    display: flex;
    gap: 0.3rem;
    padding: 0.5rem;
}

.ai-typing span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.ai-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

@keyframes rotate3d {
    0% {
        transform: rotate3d(0, 1, 0, 0deg);
    }
    100% {
        transform: rotate3d(0, 1, 0, 360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes glowing {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary-color),
                    0 0 10px var(--primary-color),
                    0 0 15px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 10px var(--primary-color),
                    0 0 20px var(--primary-color),
                    0 0 30px var(--primary-color),
                    0 0 40px var(--primary-color);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animaciones aplicadas */
.stat-item {
    animation: fadeInUp 0.8s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.service-card {
    animation: slideInFromLeft 0.8s ease forwards;
    opacity: 0;
}

.service-card:nth-child(odd) {
    animation: slideInFromLeft 0.8s ease forwards;
}

.service-card:nth-child(even) {
    animation: slideInFromRight 0.8s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.project-card {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }

.hero-card {
    animation: pulse 3s ease-in-out infinite;
}

.logo {
    transition: all 0.3s ease;
}

.logo:hover {
    animation: pulse 0.5s ease;
}

/* Efecto de brillo en botones */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Efecto de ondas/ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    animation: rippleEffect 1s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: translate(-50%, -50%) scale(10);
        opacity: 0;
    }
}

/* Efectos de glassmorphism mejorados */
.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Efectos de hover mejorados con transformaciones 3D */
.stat-item {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.stat-item:hover {
    transform: translateY(-10px) rotateY(10deg);
}

.stat-item:hover i {
    animation: rotate3d 1s ease;
}

/* Efectos de text glow */
.hero h1 {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3),
                 0 0 40px rgba(255, 255, 255, 0.2);
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    animation: shimmer 2s infinite;
}

/* Scroll indicator mejorado */
.scroll-indicator {
    animation: bounce 2s infinite, pulse 2s infinite;
}

/* Efecto de zoom en im\u00e1genes */
.image-placeholder {
    transition: all 0.5s ease;
}

.image-placeholder:hover {
    transform: scale(1.05) rotate(5deg);
}

.image-placeholder i {
    transition: all 0.5s ease;
}

.image-placeholder:hover i {
    transform: scale(1.2) rotate(-5deg);
    animation: pulse 1s infinite;
}

/* Efectos en testimonios */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-card:hover .stars i {
    animation: pulse 0.5s ease;
}

/* Efectos en sectores */
.sector-tag {
    transform-style: preserve-3d;
}

.sector-tag:hover {
    animation: float 2s ease-in-out;
}

/* Efectos de contacto */
.contact-item {
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-item:hover .contact-icon {
    animation: pulse 0.5s ease;
}

/* Efecto de focus en inputs */
.form-group input:focus,
.form-group textarea:focus {
    animation: glowing 2s ease-in-out infinite;
}

/* Navbar con efecto glassmorphism */
.navbar {
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
}

/* Footer con efecto de gradient animado */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: shimmer 3s infinite;
}

/* Responsive */
@media (max-width: 968px) {
    .custom-cursor,
    .custom-cursor-dot {
        display: none;
    }
    
    body {
        cursor: auto;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .skills {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .diana-services-grid,
    .diana-differential-grid {
        grid-template-columns: 1fr;
    }

    .diana-value-card,
    .diana-differential {
        padding: 1.2rem;
    }
    
    .ai-chat-container {
        bottom: calc(100px + env(safe-area-inset-bottom));
        right: 10px;
        width: calc(100vw - 20px);
        height: calc(100dvh - 120px);
        max-height: calc(100dvh - 120px);
    }
    
    .ai-float-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .ai-float-btn i {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .stats .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ai-quick-questions {
        flex-direction: column;
    }
    
    .quick-question-btn {
        width: 100%;
        justify-content: center;
    }

    .ai-chat-input {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .ai-chat-input input {
        padding: 0.65rem 0.9rem;
        font-size: 0.9rem;
    }

    #aiWhatsAppBtn,
    #aiSendBtn {
        width: 40px;
        height: 40px;
    }

    #aiWhatsAppBtn i,
    #aiSendBtn i {
        font-size: 1rem;
    }

    .ai-chat-container {
        bottom: calc(82px + env(safe-area-inset-bottom));
        right: 8px;
        width: calc(100vw - 16px);
        height: calc(100dvh - 95px);
        max-height: calc(100dvh - 95px);
        border-radius: 16px;
    }

    .ai-chat-header {
        padding: 1rem;
        border-radius: 16px 16px 0 0;
    }

    .ai-chat-messages {
        padding: 1rem;
    }

    .ai-chat-input {
        padding: 0.65rem 0.65rem calc(0.65rem + env(safe-area-inset-bottom));
    }

    .diana-service-card h3 {
        font-size: 1.05rem;
    }
}

/* Ajuste fino exclusivo iPhone (notch + barra inferior) */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 430px) {
        .ai-chat-container {
            bottom: calc(78px + env(safe-area-inset-bottom));
            right: 6px;
            width: calc(100vw - 12px);
            height: calc(100dvh - 88px);
            max-height: calc(100dvh - 88px);
        }

        .ai-chat-input {
            padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
        }

        #aiWhatsAppBtn,
        #aiSendBtn {
            width: 38px;
            height: 38px;
        }
    }
}

/* Modal de confirmación WhatsApp */
.wa-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.wa-modal[aria-hidden="false"] { display: flex; }
.wa-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
}
.wa-modal-content {
    position: relative;
    width: 90%;
    max-width: 520px;
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
    border: 1px solid rgba(212,175,55,0.12);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 6px 18px rgba(212,175,55,0.06);
    color: #fff;
    z-index: 2001;
}
.wa-modal-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}
.wa-modal-preview {
    background: rgba(255,255,255,0.03);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    max-height: 220px;
    overflow-y: auto;
    color: #f5f5f5;
    margin-bottom: 1rem;
}
.wa-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

@media (max-width: 420px) {
    .wa-modal-content { padding: 1rem; }
    .wa-modal-actions { flex-direction: column-reverse; }
}

/* ==========================================================================
   Nuevas secciones: Reveal de imagen (GSAP), Videos, Testimonios en video,
   Test de diagnóstico Instagram
   ========================================================================== */

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Reveal de imagen con scroll (GSAP + ScrollTrigger) --- */
.image-reveal-section {
    position: relative;
    height: 250vh;
    background: #0f0f0f;
}

.image-reveal-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-reveal-text {
    position: absolute;
    z-index: 3;
    text-align: center;
    max-width: 700px;
    padding: 0 1.5rem;
    color: #fff;
}

.image-reveal-text .section-subtitle {
    color: var(--primary-color);
}

.image-reveal-text h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin: 0.75rem 0 1rem;
    line-height: 1.2;
}

.image-reveal-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.7;
}

.image-reveal-media {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.image-reveal-media img {
    /* Tamaño final fijo (pantalla completa); el "chico -> grande" ahora lo hace
       transform: scale() vía GSAP, que es compositor-only (sin reflow) en vez
       de animar width/height (eso era lo que causaba el lag al hacer scroll). */
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.34, 0.55);
    transform-origin: center center;
    will-change: transform, border-radius;
}

@media (max-width: 768px) {
    .image-reveal-media img {
        transform: scale(0.65, 0.45);
    }
}

/* --- Sección de Videos --- */
.videos-section {
    background: var(--light-color);
    padding: 6rem 0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 600px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.videos-featured {
    padding-top: 4.5rem;
}

.videos-grid-featured {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1150px;
    margin: 2.2rem auto 0;
}

@media (max-width: 968px) {
    .videos-grid-featured {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .videos-grid-featured {
        gap: 1.25rem;
        margin-top: 1.5rem;
    }
}

.video-card-featured {
    border-radius: 20px;
}

.video-card-featured .video-thumb {
    aspect-ratio: 16 / 10;
}

.video-card-featured .video-card-info {
    padding: 1.25rem 1.3rem 1.4rem;
}

.video-card-featured .video-card-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.video-card-featured .video-card-info p {
    font-size: 0.98rem;
}

@media (max-width: 900px) {
    .videos-grid-featured {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-card:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

.video-thumb {
    position: relative;
    aspect-ratio: 9 / 12;
    overflow: hidden;
    background: #111;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.08);
}

.video-play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: var(--gradient);
    color: #1a1a1a;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
    pointer-events: none;
}

.video-card-info {
    padding: 1rem 1.1rem 1.25rem;
}

.video-card-info h4 {
    color: var(--dark-color);
    margin-bottom: 0.2rem;
}

.video-card-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.videos-note {
    margin-top: 1.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
}

.videos-note code {
    background: rgba(212, 175, 55, 0.12);
    color: var(--secondary-color);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* --- Testimonios con video --- */
.testimonial-video-card {
    display: flex;
    flex-direction: column;
}

.testimonial-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    cursor: pointer;
    background: #111;
}

.testimonial-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.testimonial-video-thumb:hover img {
    transform: scale(1.06);
}

.testimonial-video-thumb .video-play-btn {
    width: 52px;
    height: 52px;
    font-size: 1.05rem;
}

.testimonial-video-thumb:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* --- Modal de video (lightbox) --- */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.video-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
}

.video-modal-content video {
    width: 100%;
    max-height: 82vh;
    border-radius: 14px;
    background: #000;
    display: block;
}

.video-modal-content video[hidden] {
    display: none !important;
}

.video-modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* --- Test de diagnóstico Instagram --- */
.ig-test-section {
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
    padding: 6rem 0;
}

.ig-test-section .section-subtitle {
    color: var(--primary-color);
}

.ig-test-section .section-header h2,
.ig-test-section .section-description {
    color: #fff;
}

.ig-test-section .section-description {
    color: rgba(255, 255, 255, 0.7);
}

.ig-test-box {
    max-width: 640px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(6px);
}

.ig-test-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.4rem 0.4rem 0.4rem 1.25rem;
}

.ig-at {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.ig-test-input-row input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    padding: 0.6rem 0;
}

.ig-test-input-row input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ig-test-input-row .btn {
    white-space: nowrap;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
}

.ig-test-loading {
    text-align: center;
    padding: 2.5rem 0 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.ig-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(212, 175, 55, 0.25);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: igSpin 0.8s linear infinite;
}

@keyframes igSpin {
    to { transform: rotate(360deg); }
}

.ig-test-result {
    padding-top: 2rem;
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

.ig-result-score {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
}

.ig-score-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ig-score-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 10;
}

.ig-score-fill {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 327;
    stroke-dashoffset: 327;
    transition: stroke-dashoffset 1.2s cubic-bezier(.2,.9,.2,1);
}

.ig-score-number {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.ig-score-number span {
    font-size: 2rem;
    font-weight: 700;
}

.ig-score-percent {
    font-size: 1.2rem !important;
    font-weight: 400 !important;
}

.ig-score-number small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.ig-test-result h3 {
    color: #fff;
    margin-bottom: 0.6rem;
}

.ig-result-message {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.ig-criteria-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 2rem;
}

.ig-criterion {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ig-criterion-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.8);
}

.ig-criterion-label i {
    color: var(--primary-color);
    margin-right: 0.4rem;
}

.ig-criterion-bar {
    height: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.ig-criterion-fill {
    height: 100%;
    width: 0%;
    border-radius: 8px;
    background: var(--gradient);
    transition: width 1s cubic-bezier(.2,.9,.2,1);
}

.ig-disclaimer {
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .image-reveal-section { height: 220vh; }
    .ig-test-box { padding: 1.75rem 1.25rem; }
    .ig-test-input-row { flex-wrap: wrap; border-radius: 20px; padding: 0.8rem; }
    .ig-test-input-row .btn { width: 100%; justify-content: center; }
}

/* Aviso dentro del modal cuando el video no carga */
.video-modal-error {
    background: #151515;
    border-radius: 14px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.video-modal-error i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.video-modal-error code {
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary-color);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #20BA5F);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    z-index: 999;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 40px rgba(37, 211, 102, 0.7);
    }
}

@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
}
