/* ========================================
   Variables y Reset
   ======================================== */
:root {
    --primary-color: #022d49;
    --secondary-color: #fec70b;
    --accent-color: #ffde59;
    --light-gray: #e6e6e6;
    --lighter-gray: #edf0f0;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #022d49 0%, #024a7a 100%);
    --gradient-2: linear-gradient(135deg, #fec70b 0%, #ffde59 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #edf0f0;
    color: var(--primary-color);
    overflow-x: hidden;
    overflow-y: scroll;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ========================================
   Background Canvas
   ======================================== */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.08;
}

/* ========================================
   Container Principal
   ======================================== */
.container {
    position: relative;
    z-index: 100;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
}

/* ========================================
   Logo y Brand
   ======================================== */
.logo-container {
    text-align: center;
    margin-bottom: 60px;
    will-change: transform, opacity;
}

.logo-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 15px rgba(2, 45, 73, 0.2));
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(2, 45, 73, 0.1);
    word-break: break-word;
    overflow-wrap: break-word;
    will-change: transform, opacity, scale;
}

.brand-name span {
    display: block;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

/* ========================================
   Content Principal
   ======================================== */
.content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 100;
    background: transparent;
    box-sizing: border-box;
}

.title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    will-change: transform, opacity;
}

.subtitle {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 50px;
    line-height: 1.7;
    font-weight: 400;
}

/* ========================================
   Progress Bar
   ======================================== */
.progress-container {
    margin: 50px 0;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--lighter-gray);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--light-gray);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* ========================================
   Feature Cards
   ======================================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 60px 0;
    position: relative;
    z-index: 100;
    width: 100%;
    opacity: 1;
    visibility: visible;
    will-change: transform, opacity;
}

.feature-card {
    background: #ffffff;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px 30px;
    border: 2px solid var(--light-gray);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(2, 45, 73, 0.08);
    position: relative;
    z-index: 100;
    opacity: 1;
    visibility: visible;
    will-change: transform, opacity, box-shadow;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--lighter-gray);
    box-shadow: 0 15px 40px rgba(2, 45, 73, 0.15);
    border-color: var(--secondary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lighter-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-icon svg {
    width: 35px;
    height: 35px;
}

.feature-card:hover .feature-icon {
    background: var(--secondary-color);
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #022d49;
    font-weight: 600;
}

.feature-card p {
    color: #333333;
    font-size: 0.95rem;
    font-weight: 400;
}

/* ========================================
   Contact Info
   ======================================== */
.contact-info {
    margin: 50px 0 30px;
}

.contact-info {
    position: relative;
    z-index: 100;
    margin: 50px 0 30px;
    will-change: transform, opacity;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333333;
    font-weight: 500;
}

.phone-info {
    margin-top: 20px;
}

.phone-info p {
    font-size: 1rem;
    margin: 8px 0;
    color: #333333;
}

.phone-info strong {
    color: #022d49;
    font-weight: 700;
    margin-right: 5px;
}

.phone-info a {
    color: #022d49;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.phone-info a:hover {
    color: #fec70b;
    border-bottom-color: #fec70b;
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    border-bottom: 2px solid transparent;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.email-link:hover::after {
    width: 100%;
}

.email-link:hover {
    color: var(--secondary-color);
}

/* ========================================
   Social Links
   ======================================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    position: relative;
    z-index: 100;
    opacity: 1;
    visibility: visible;
    will-change: transform, opacity;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    color: #022d49;
    transition: all 0.3s ease;
    border: 2px solid var(--light-gray);
    position: relative;
    z-index: 100;
    opacity: 1;
    visibility: visible;
    will-change: transform, opacity, background, box-shadow;
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-icon:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(254, 199, 11, 0.3);
    border-color: var(--secondary-color);
}

/* ========================================
   Paint Splashes (Decorative)
   ======================================== */
.paint-splash {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.06;
    pointer-events: none;
    z-index: -1;
    display: none;
}

.splash-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: 10%;
    left: -10%;
    animation: float 20s ease-in-out infinite;
}

.splash-2 {
    width: 350px;
    height: 350px;
    background: var(--secondary-color);
    top: 60%;
    right: -5%;
    animation: float 15s ease-in-out infinite reverse;
}

.splash-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    bottom: 10%;
    left: 50%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(30px, -30px);
    }
    66% {
        transform: translate(-20px, 20px);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .container {
        padding: 30px 20px;
    }

    .features {
        gap: 25px;
    }
    
    .paint-splash {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 25px 15px;
        margin: 0;
    }
    
    .content {
        width: 100%;
    }

    .logo-container {
        margin-bottom: 40px;
    }

    .brand-name {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .brand-name span {
        font-size: 1.4rem;
    }

    .logo-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .title {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
        margin-bottom: 15px;
    }

    .subtitle {
        font-size: 0.95rem;
        padding: 0 5px;
        margin-bottom: 35px;
    }

    .progress-container {
        margin: 35px 0;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 35px 0;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-card h3 {
        font-size: 1.15rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .feature-icon svg {
        width: 28px;
        height: 28px;
    }

    .contact-info {
        margin: 35px 0 20px;
    }

    .contact-info p {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .email-link {
        font-size: 1rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .phone-info {
        margin-top: 15px;
    }
    
    .phone-info p {
        font-size: 0.9rem;
        margin: 5px 0;
    }
    
    .phone-info a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 15px 12px;
        min-height: auto;
        margin: 0;
        width: 100%;
    }
    
    .content {
        width: 100%;
    }

    .logo-container {
        margin-bottom: 30px;
    }

    .brand-name {
        font-size: 1.4rem;
        letter-spacing: 0.5px;
        line-height: 1.3;
    }

    .brand-name span {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }

    .title {
        font-size: 1.2rem;
        letter-spacing: 0px;
        margin-bottom: 12px;
    }

    .subtitle {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 30px;
        padding: 0 5px;
    }

    .progress-container {
        margin: 30px 0;
    }
    
    .progress-bar {
        height: 8px;
    }
    
    .progress-text {
        font-size: 0.9rem;
    }

    .features {
        margin: 25px 0;
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 18px 15px;
    }

    .feature-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .feature-card p {
        font-size: 0.8rem;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .contact-info {
        margin: 30px 0 15px;
        padding: 0 5px;
    }

    .contact-info p {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .email-link {
        font-size: 0.85rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .phone-info {
        margin-top: 12px;
    }
    
    .phone-info p {
        font-size: 0.8rem;
        margin: 4px 0;
    }
    
    .phone-info strong {
        display: inline;
    }
    
    .phone-info a {
        font-size: 0.8rem;
    }

    .social-icon {
        width: 38px;
        height: 38px;
    }

    .social-icon svg {
        width: 18px;
        height: 18px;
    }

    .social-links {
        gap: 12px;
        margin-top: 30px;
    }
}
