/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #FFFFFF;
    --blue: #2563EB;
    --light-blue: #3B82F6;
    --gray-light: #F3F4F6;
    --gray-medium: #9CA3AF;
    --gray-dark: #374151;
    --gray-darker: #1F2937;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-darker);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gray-darker);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--gray-medium);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--blue);
}

.btn-nav {
    background-color: var(--blue);
    color: var(--white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    transition: background-color 0.3s;
}

.btn-nav:hover {
    background-color: var(--light-blue);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 120px;
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--blue);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-medium);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: var(--blue);
    color: var(--white);
}

.tech-illustration {
    position: relative;
    height: 300px;
    width: 100%;
}

.circle {
    position: absolute;
    border-radius: 50%;
}

.circle.blue {
    width: 200px;
    height: 200px;
    background-color: var(--blue);
    opacity: 0.1;
    top: 20px;
    right: 0;
}

.circle.light-blue {
    width: 150px;
    height: 150px;
    background-color: var(--light-blue);
    opacity: 0.1;
    bottom: 0;
    left: 0;
}

.icon {
    position: absolute;
    background-color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    font-size: 1.5rem;
    color: var(--blue);
}

.icon:nth-child(3) {
    top: 40px;
    left: 40px;
}

.icon:nth-child(4) {
    top: 120px;
    right: 80px;
}

.icon:nth-child(5) {
    bottom: 60px;
    right: 40px;
}

/* Tools Section */
.tools {
    background-color: var(--white);
}

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

.tool-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--gray-light);
}

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

.tool-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--blue);
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-darker);
}

.tool-card p {
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
}

.tool-features {
    list-style: none;
}

.tool-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-dark);
}

.tool-features i {
    color: var(--blue);
    font-size: 0.875rem;
}

/* Projects Section */
.projects {
    background-color: var(--gray-light);
}

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

.project-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.5rem;
    color: var(--gray-darker);
}

.project-tag {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.project-card p {
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
}

.project-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-dark);
    font-size: 0.875rem;
}

.project-features i {
    color: var(--blue);
}

.demo-note {
    background-color: rgba(37, 99, 235, 0.05);
    border-left: 4px solid var(--blue);
    padding: 1rem 1.5rem;
    margin-top: 3rem;
    border-radius: var(--radius);
}

.demo-note p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-dark);
}

.demo-note i {
    color: var(--blue);
    font-size: 1.25rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
    font-size: 1.125rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.skill-category h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--gray-darker);
}

.skill-category i {
    color: var(--blue);
}

.skill-category ul {
    list-style: none;
}

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

.skill-category li:before {
    content: "•";
    color: var(--blue);
    position: absolute;
    left: 0;
}

.philosophy {
    background-color: var(--gray-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 2rem;
    font-style: italic;
    color: var(--gray-darker);
    border-left: 4px solid var(--blue);
}

.philosophy i:first-child {
    color: var(--blue);
    margin-right: 0.5rem;
}

.philosophy i:last-child {
    color: var(--blue);
    margin-left: 0.5rem;
}

.profile-placeholder {
    background: linear-gradient(135deg, var(--blue), var(--light-blue));
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.initials {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
}

.profile-dots {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--blue);
    border-radius: 50%;
    opacity: 0.3;
}

.dot:nth-child(2) {
    opacity: 0.5;
}

.dot:nth-child(3) {
    opacity: 0.7;
}

.dot:nth-child(4) {
    opacity: 0.9;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

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

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--blue);
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--gray-darker);
}

.contact-item p {
    color: var(--gray-dark);
    margin-bottom: 0.25rem;
}

.contact-item small {
    color: var(--gray-medium);
    font-size: 0.875rem;
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-darker);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.form-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-note i {
    color: var(--blue);
}

/* Footer */
.footer {
    background-color: var(--gray-darker);
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--gray-medium);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copyright {
    color: var(--gray-medium);
    font-size: 0.875rem;
}

.footer-built {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .tools-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero, .tools, .projects, .about, .contact {
    animation: fadeIn 0.8s ease-out;
}


/* SAP Tools Links */
.sap-tools-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.sap-tool-link {
    display: inline-block;
    padding: 8px 15px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sap-tool-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.sap-tool-link:nth-child(2) {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

/* WhatsApp Contact - Item de contacto */
.contact-whatsapp-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.contact-whatsapp-link:hover {
    transform: translateX(4px);
}

.whatsapp-icon-bg {
    background-color: rgba(37, 211, 102, 0.15) !important;
    color: #25D366 !important;
}
