/* ===================================
   ESTILOS GLOBALES PREMIUM
   =================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

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

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

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

ul {
    list-style: none;
}

/* ===================================
   UTILIDADES GENERALES
   =================================== */

.section-padding {
    padding: var(--section-padding);
}

.section-badge {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
    position: relative;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 750px;
    margin: 0 auto 4rem;
    line-height: 1.7;
}

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

/* ===================================
   BOTONES PREMIUM
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-purple);
    color: var(--white);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.35);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.45);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
    color: var(--white);
}

.btn-lg {
    padding: 18px 42px;
    font-size: 1.125rem;
}

/* Remove icons from buttons */
.btn i {
    display: none;
}

/* ===================================
   CARDS PREMIUM
   =================================== */

.card-premium {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-purple);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

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

.card-premium:hover::before {
    transform: scaleX(1);
}

/* ===================================
   SCROLL TO TOP
   =================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: var(--gradient-purple);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   ANIMACIONES PERSONALIZADAS
   =================================== */

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.8s ease-out;
}

/* ===================================
   IMAGE OVERLAYS
   =================================== */

.image-overlay {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.image-overlay:hover::before {
    opacity: 0.85;
}

.image-overlay img {
    transition: transform var(--transition-slow);
}

.image-overlay:hover img {
    transform: scale(1.1);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 991px) {
    .section-subtitle {
        font-size: 1.125rem;
    }
}

@media (max-width: 767px) {
    .btn {
        padding: 14px 28px;
        font-size: 0.9375rem;
    }
    
    .btn-lg {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    .card-premium {
        padding: 2rem;
    }
}
