/* ===== VARIABLES Y RESET ===== */
:root {
    --primary-color: #2c3e50;
    --primary-dark: #1a252f;
    --primary-light: #ecf0f1;
    --accent-color: #3498db;
    --accent-dark: #2980b9;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-white: #ffffff;
    --bg-body: #f8f9fa;
    --bg-header: #1a1f36;
    --bg-white: #ffffff;
    --bg-dark: #2c3e50;
    --bg-darker: #1a252f;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-body);
}

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

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

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.header__logo {
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.5rem;
}

.header__nav {
    display: flex;
}

.header__list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.header__link {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.header__link:hover {
    color: var(--accent-color);
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.header__link:hover::after {
    width: 100%;
}

.header__menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-white);
}

/* ===== HERO ===== */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hero__content {
    flex: 1;
}

.hero__title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero__title--highlight {
    color: var(--accent-color);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
    line-height: 1.6;
}

.hero__buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero__profile {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== PROFILE CARD ===== */
.profile-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 350px;
    width: 100%;
    transition: var(--transition);
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-card__image {
    position: relative;
    height: 200px;
    /* background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); */
    background: linear-gradient(135deg, #2c7a9e, #3498db);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.profile-card__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--bg-white);
    object-fit: cover;
    box-shadow: var(--shadow);
    background: transparent;
}

.profile-card__badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--bg-white);
    color: var(--accent-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.profile-card__content {
    padding: 30px 25px;
    text-align: center;
}

.profile-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.profile-card__role {
    color: var(--text-light);
    margin-bottom: 20px;
}

.profile-card__stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.profile-card__stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.profile-card__stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn--primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

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

.btn--secondary:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section--white {
    background-color: var(--bg-white);
}

.section--dark {
    background-color: var(--bg-dark);
    color: var(--text-white);
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.section__title--highlight {
    color: var(--accent-color);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section__subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.section__title--light,
.section__subtitle--light {
    color: var(--text-white);
}

/* ===== SKILLS ===== */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

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

.skill-card__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.skill-card__icon--odoo {
    background-color: #e8f4fd;
    color: var(--accent-color);
}

.skill-card__icon--ai {
    background-color: #e8f6f3;
    color: #1abc9c;
}

.skill-card__icon--vps {
    background-color: #e8f8f5;
    color: #27ae60;
}

.skill-card__icon--integration {
    background-color: #f4ecf7;
    color: #8e44ad;
}

.skill-card__title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.skill-card__description {
    color: var(--text-light);
    margin-bottom: 20px;
}

.skill-card__list {
    list-style: none;
    text-align: left;
}

.skill-card__list li {
    padding: 8px 0;
    color: var(--text-light);
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 20px;
}

.skill-card__list li:last-child {
    border-bottom: none;
}

.skill-card__list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ===== AI PROJECTS ===== */
.ai-projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.ai-project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.ai-project-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.ai-project-card__icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.ai-project-card__title {
    font-size: 1.3rem;
    font-weight: 600;
}

.ai-project-card__description {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.ai-project-card__features {
    list-style: none;
    margin-bottom: 25px;
}

.ai-project-card__features li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: #e2e8f0;
    gap: 10px;
}

.ai-project-card__features i {
    color: var(--accent-color);
}

.ai-project-card__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-project-card__tech span {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== WORKS ===== */
.works__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.work-card__image {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-card__image--cover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.work-card__image--crm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.work-card__image--finanzas {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.work-card__overlay {
    text-align: center;
    color: var(--text-white);
}

.work-card__name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.work-card__content {
    padding: 25px;
}

.work-card__title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.work-card__description {
    color: var(--text-light);
    margin-bottom: 15px;
}

.work-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work-card__tags span {
    background: var(--primary-light);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== CONTACT ===== */
.contact__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item__icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-item__details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-item__details p, .contact-item__details a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.contact-form__group {
    margin-bottom: 20px;
}

.contact-form__input, .contact-form__textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.contact-form__input:focus, .contact-form__textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

/* ===== FOOTER ===== */
.footer {
    background-color: var(--bg-darker);
    color: var(--text-white);
    padding: 50px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.footer__description {
    color: #94a3b8;
}

.footer__links-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer__links-list {
    list-style: none;
}

.footer__links-list li {
    margin-bottom: 10px;
}

.footer__link {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer__tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer__tech-list span {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
}

.footer__copyright {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer__social {
    display: flex;
    gap: 15px;
}

.footer__social-link {
    color: #94a3b8;
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer__social-link:hover {
    color: var(--accent-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero__container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero__title {
        font-size: 2.2rem;
    }
    
    .header__nav {
        display: none;
    }
    
    .header__nav--open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-header);
        box-shadow: var(--shadow);
    }
    
    .header__list {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .header__menu-toggle {
        display: block;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.8rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .section {
        padding: 60px 0;
    }
}

/* ===== ALERTAS PERSONALIZADAS ===== */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    padding: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.custom-alert--show {
    opacity: 1;
    transform: translateX(0);
}

.custom-alert__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 15px;
}

.custom-alert__message {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #2c3e50;
}

.custom-alert__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.custom-alert__close:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

/* Tipos de alertas */
.custom-alert--success {
    border-left: 4px solid #27ae60;
}

.custom-alert--error {
    border-left: 4px solid #e74c3c;
}

.custom-alert--warning {
    border-left: 4px solid #f39c12;
}

.custom-alert--info {
    border-left: 4px solid #3498db;
}

/* Responsive */
@media (max-width: 480px) {
    .custom-alert {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}