/* ============================================
   FORMACIÓN IT PARA EMPLEO - MODERN IT TRAINING
   ============================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --success: #10b981;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

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

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

ul {
    list-style: none;
}

/* === HEADER === */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
}

.header__logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.header__nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header__nav-link {
    color: var(--gray);
    font-weight: 500;
    position: relative;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
    pointer-events: none;
}

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

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

.header__nav-link--active {
    color: var(--primary);
}

.header__cta {
    background: var(--gradient);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.header__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
    background: none;
    border: none;
}

.header__mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* === HERO === */
.hero {
    background: var(--gradient);
    color: var(--white);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    transform: skewX(-15deg);
    pointer-events: none;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero__content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero__cta {
    display: inline-flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-block;
}

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

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

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

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

.hero__image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero__image img {
    width: 100%;
    height: auto;
}

/* === FEATURES === */
.features {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

.section__container {
    max-width: 1200px;
    margin: 0 auto;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    pointer-events: none;
}

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

.feature-card__icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* === SERVICES === */
.services {
    padding: 5rem 2rem;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

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

.service-card__content {
    padding: 2rem;
}

.service-card__badge {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-card ul {
    margin-bottom: 1.5rem;
}

.service-card li {
    color: var(--gray);
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    pointer-events: none;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
}

.service-card__link:hover {
    gap: 0.75rem;
}

/* === TEAM === */
.team {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

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

.team-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.team-card__image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-card__content {
    padding: 1.5rem;
    text-align: center;
}

.team-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.team-card__role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.team-card p {
    color: var(--gray);
    font-size: 0.9375rem;
}

/* === BLOG === */
.blog {
    padding: 5rem 2rem;
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.blog-card__image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-card__content {
    padding: 2rem;
}

.blog-card__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.blog-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card__excerpt {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.blog-card__link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card__link:hover {
    gap: 0.75rem;
}

/* === CONTACT FORM === */
.contact {
    padding: 5rem 2rem;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__info-item {
    display: flex;
    gap: 1rem;
}

.contact__info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact__info-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.contact__info-content p {
    color: var(--gray);
}

.contact__form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 1rem;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 150px;
}

.form__submit {
    background: var(--gradient);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
}

.form__submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form__error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

/* === MAP === */
.map {
    padding: 0 2rem 5rem;
}

.map__container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

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

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer__about p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer__social-link:hover {
    background: var(--primary);
}

.footer__section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    color: #94a3b8;
}

.footer__link:hover {
    color: var(--white);
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #94a3b8;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 400px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.cookie-banner p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.cookie-banner__actions {
    display: flex;
    gap: 1rem;
}

.cookie-banner__btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-banner__btn--accept {
    background: var(--gradient);
    color: var(--white);
}

.cookie-banner__btn--accept:hover {
    transform: translateY(-2px);
}

.cookie-banner__btn--decline {
    background: var(--light-gray);
    color: var(--dark);
}

/* === ARTICLE === */
.article {
    padding: 5rem 2rem;
}

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

.article__header {
    margin-bottom: 3rem;
}

.article__meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-size: 0.9375rem;
}

.article__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.article__image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

.article__content {
    color: var(--dark);
    line-height: 1.8;
}

.article__content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    color: var(--dark);
}

.article__content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--dark);
}

.article__content p {
    margin-bottom: 1.5rem;
}

.article__content ul,
.article__content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article__content li {
    margin-bottom: 0.75rem;
}

.article__content ul li {
    list-style: disc;
}

.article__content ol li {
    list-style: decimal;
}

.article__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 1rem;
    margin-top: 3rem;
}

.article__author-name {
    font-weight: 700;
    color: var(--dark);
}

.article__author-bio {
    color: var(--gray);
    font-size: 0.9375rem;
}

/* === LEGAL PAGES === */
.legal {
    padding: 5rem 2rem;
}

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

.legal h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
}

.legal__updated {
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 0.9375rem;
}

.legal h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    color: var(--dark);
}

.legal h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--dark);
}

.legal p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--gray);
}

.legal ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal li {
    margin-bottom: 0.75rem;
    list-style: disc;
    color: var(--gray);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header__nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .header__nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .header__mobile-toggle {
        display: flex;
    }

    .hero__container {
        grid-template-columns: 1fr;
    }

    .hero__content h1 {
        font-size: 2rem;
    }

    .hero__content p {
        font-size: 1rem;
    }

    .section__title {
        font-size: 2rem;
    }

    .features__grid,
    .services__grid,
    .blog__grid {
        grid-template-columns: 1fr;
    }

    .contact__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .hero__cta {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header__container {
        padding: 1rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .features,
    .services,
    .team,
    .blog,
    .contact {
        padding: 3rem 1rem;
    }

    .cookie-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
    }
}
