/* ============================================
   REFINED INSTITUTIONAL DESIGN STYLES
   Derecho & IA - Versión Final
   ============================================ */

/* Color Variables */
:root {
    --primary-green: #10b981;
    --primary-blue: #0f4c5c;
    --navy-blue: #1e3a5f;
    --light-gray: #f8fafc;
    --dark-gray: #64748b;
    --text-dark: #1e293b;
    --accent-cyan: #22d3ee;
}

/* Body padding for fixed header */
body {
    padding-top: 160px;
}

/* ============================================
   INTRO SECTION - Buttons + Text
   ============================================ */
.intro-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4f8 100%);
    border-bottom: 2px solid rgba(16, 185, 129, 0.2);
}

.intro-content-centered {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.intro-content-centered h1 {
    font-size: 2.8rem;
    color: var(--navy-blue);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.intro-content-centered p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION - SIMPLIFIED
   ============================================ */
.about-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
}

.profile-photo-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-photo-about {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.linkedin-badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.linkedin-badge-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 280px;
    width: 100%;
}

.linkedin-badge-custom:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #0077b5;
}

.badge-header {
    flex-shrink: 0;
}

.linkedin-logo {
    width: 32px;
    height: 32px;
}

.badge-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000000;
    line-height: 1.2;
}

.badge-title {
    font-size: 0.75rem;
    color: #0077b5;
    font-weight: 500;
}

.profile-photo-about img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-photo-about:hover img {
    transform: scale(1.05);
}

.profile-info-about h3 {
    font-size: 2rem;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
}

.profile-title {
    font-size: 1.1rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.profile-bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.social-links-about h4 {
    font-size: 1.1rem;
    color: var(--navy-blue);
    margin: 2rem 0 1rem 0;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    text-decoration: none;
    color: var(--navy-blue);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icons a:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Stats Line - Decorative and Discrete */
.stats-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-top: 2rem;
}

.stat-item strong {
    color: var(--primary-green);
    font-size: 1.1rem;
}

.stat-separator {
    color: var(--primary-green);
    font-weight: bold;
}

/* ============================================
   TOOLS SECTION
   ============================================ */
.tools {
    padding: 80px 0;
    background: var(--light-gray);
}

.tools h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.tools-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.tool-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.tool-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.tool-card h3 {
    font-size: 1.4rem;
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.tool-card p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-tool {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-tool:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* ============================================
   CONTACT SECTION - SIMPLIFIED
   ============================================ */
.contact-simple {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-simple h3 {
    font-size: 1.8rem;
    color: var(--navy-blue);
    margin-bottom: 2rem;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2.5rem;
    background: var(--light-gray);
    border-radius: 15px;
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.contact-email i {
    font-size: 1.5rem;
    color: var(--primary-green);
}

.contact-email a {
    color: var(--navy-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.social-title {
    font-size: 1.3rem;
    color: var(--navy-blue);
    margin-bottom: 1.5rem;
}

.social-grid-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.social-link-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--light-gray);
    border-radius: 12px;
    text-decoration: none;
    color: var(--navy-blue);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link-contact:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.social-link-contact i {
    font-size: 1.5rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    body {
        padding-top: 120px;
    }
    
    .intro-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .intro-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-intro {
        flex: 1;
        min-width: 150px;
    }
    
    .intro-content {
        text-align: center;
    }
    
    .intro-content h1 {
        font-size: 2rem;
    }
    
    .about-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-photo-section {
        margin: 0 auto;
    }
    
    .profile-photo-about {
        margin: 0 auto;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .stats-line {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-separator {
        display: none;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 100px;
    }
    
    .intro-section {
        padding: 2rem 0;
    }
    
    .intro-content h1 {
        font-size: 1.75rem;
    }
    
    .intro-content p {
        font-size: 1rem;
    }
    
    .profile-photo-about {
        width: 250px;
        height: 250px;
    }
    
    .social-grid-contact {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-intro {
        width: 100%;
    }
}

/* ============================================
   HEADER OVERRIDE - ALWAYS DARK
   ============================================ */
.header,
header.header,
.header[style] {
    background: #0a1929 !important;
    background-color: #0a1929 !important;
}
