/* --- 0. ROOT & ESTILOS GENERALES --- */
:root {
    --color-primary: #007BFF;
    --color-background: #0F0F0F;
    --color-surface: #1A1A1A;
    --color-text: #E0E0E0;
    --color-text-dark: #A0A0A0;
    --color-white: #FFFFFF;
    --color-border: rgba(255, 255, 255, 0.1);
    --transition-fast: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    overflow-x: hidden;
    position: relative;
}

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

/* --- 1. COMPONENTES CLAVE (HEADER, FOOTER, BUBBLES, ETC) --- */
.language-selector {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 100;
    display: flex;
    gap: 10px;
    background-color: rgba(0, 0, 0, .3);
    padding: 8px 12px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.language-selector button {
    background: none;
    border: none;
    color: var(--color-text-dark);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0 5px;
}

.language-selector button:hover {
    color: var(--color-text);
}

.language-selector button.active {
    color: var(--color-primary);
}

.bubbles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -150px;
    background-color: rgba(0, 123, 255, .1);
    border-radius: 50%;
    animation: float 25s infinite ease-in;
}

header {
    padding: 3rem 0;
    text-align: center;
    margin-top: 40px;
}

footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--color-text-dark);
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

/* --- 2. TIPOGRAFÍA Y ESTILOS COMPARTIDOS --- */
.logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: .5rem;
}

.tagline,
.hero .subtitle {
    font-size: 1.2rem;
    color: var(--color-text-dark);
    font-weight: 300;
}

.about h2,
.contact h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--color-white);
    text-align: center;
}

.cursor {
    color: var(--color-primary);
    font-weight: 800;
    animation: blink 1s step-end infinite;
}

.logo .cursor {
    margin-left: 2px;
}

/* --- 3. SECCIONES DE LA PÁGINA --- */

/* Hero */
.hero {
    padding: 4rem 0 6rem;
    text-align: center;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -3px;
    color: var(--color-white);
}

.hero .highlight {
    color: var(--color-primary);
}

/* Services */
.services-section {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.service-card {
    background-color: var(--color-surface);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: var(--transition-fast);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed for tags */
    align-items: center;
    z-index: 1;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 40px rgba(0, 123, 255, .1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-icon i {
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-white);
    letter-spacing: -1px;
}

.service-desc {
    font-size: 1rem;
    color: var(--color-text-dark);
    line-height: 1.7;
    font-weight: 400;
    flex-grow: 1; /* Allows tags to be at bottom */
}

.keywords-box {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem .75rem;
}

.keyword-tag {
    background-color: #1F1F1F; /* A shade darker than the card */
    color: var(--color-text-dark); /* Softer text color */
    padding: .4rem .8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--color-border); /* Subtle border */
    transition: all 0.3s ease;
}

.service-card:hover .keyword-tag {
    color: var(--color-primary);
    border-color: rgba(0, 123, 255, .4);
}


/* About */
.about {
    padding: 6rem 0;
    background-color: var(--color-surface);
    margin: 4rem 0;
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.about h2 {
    margin-bottom: 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem 4rem;
    align-items: flex-start;
}

.about-main-message h3 {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-main-message .main-promise {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
    letter-spacing: -2px;
}

.about-credentials h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.about-credentials ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-credentials ul li {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.final-pitch {
    grid-column: 1 / -1;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: .9rem;
    color: var(--color-text);
    line-height: 1.8;
    font-style: italic;
    font-weight: 300;
}

/* Contact */
.contact {
    padding: 4rem 0;
    text-align: center;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    cursor: pointer;
}

.contact-btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .3);
}
.contact-btn.calendar { background-color: #007BFF; color: var(--color-white); }
.contact-btn.email { background-color: #c71610; color: var(--color-white); }
.contact-btn.whatsapp { background-color: #25D366; color: var(--color-white); }
.contact-btn.linkedin { background-color: #0A66C2; color: var(--color-white); }
.contact-btn.phone { background-color: #333; color: var(--color-white); }

.pgp-link {
    margin-top: 3rem;
}

.pgp-link a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: .9rem;
    transition: color 0.3s ease;
}

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

.pgp-link i {
    margin-right: .5rem;
}

/* --- 4. ANIMACIONES --- */
@keyframes float {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100vh); opacity: 0; }
}
@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* --- 5. MEDIA QUERIES RESPONSIVE --- */
@media (max-width: 900px) {
    .services-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-grid {
        text-align: center;
    }
    .about-credentials {
        text-align: left;
    }
    .final-pitch {
        text-align: center;
        font-size: .9rem;
    }
}

@media (max-width: 768px) {
    .language-selector {
        top: 10px;
        right: 10px;
    }
    header {
        margin-top: 60px;
    }
    .hero h1 {
        font-size: 3.5rem;
        letter-spacing: -2px;
    }
    .hero .subtitle {
        font-size: 1.2rem;
    }
    .about h2,
    .contact h2 {
        font-size: 2.5rem;
    }
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    .contact-btn {
        width: 80%;
        justify-content: center;
    }
}
