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

/* Mejoras de compatibilidad para Cloudflare Pages */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Asegurar que las imágenes se carguen correctamente */
.photo-section img,
.gallery-photo {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* CV Section Styles */
.cv-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-left: 4px solid var(--accent-green);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cv-section h3 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.cv-section p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.cv-section ul {
    margin-left: 1.5rem;
}

.cv-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Education and Experience Items */
.education-item, .experience-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.education-item h4, .experience-item h4 {
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.education-item p, .experience-item p {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.education-item ul, .experience-item ul {
    margin: 0.8rem 0;
    padding-left: 1.5rem;
}

.education-item li, .experience-item li {
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    line-height: 1.5;
    position: relative;
}

.education-item li::before, .experience-item li::before {
    content: "•";
    color: var(--primary-green);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
}

/* Paleta de colores */
:root {
    --primary-green: #2d5016; /* Verde oscuro (ojos) */
    --primary-terracotta: #8b4513; /* Terracota/óxido (cabello) */
    --accent-green: #4a9b8e; /* Verde azulado brillante */
    --accent-mustard: #d4af37; /* Amarillo mostaza */
    --background: #f8f9fa; /* Blanco roto */
    --text-dark: #2c3e50;
    --text-light: #6c757d;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-terracotta));
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-title {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.site-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Contenido principal */
.main-content {
    padding: 3rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.photo-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.profile-photo {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.profile-photo:hover {
    transform: scale(1.02);
}

/* Sección de texto */
.text-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.quote {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-left: 4px solid var(--accent-green);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-green);
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: 'Georgia', serif;
}

.signature {
    text-align: right;
    margin-top: 1rem;
}

.author-name {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.author-title {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* Botones */
.buttons-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-width: 180px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: white;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-terracotta), var(--accent-mustard));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
    color: white;
    text-decoration: none;
}

/* Botón deshabilitado para espacio personal */
.btn-secondary[onclick="return false;"] {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.btn-secondary[onclick="return false;"]:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
    color: #adb5bd;
    text-decoration: none;
}

/* Language section styles */
.language-section {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.btn-language {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0077b5, #005885);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 119, 181, 0.3);
}

.btn-language:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0, 119, 181, 0.4);
    color: white;
    text-decoration: none;
}

.language-icon {
    font-size: 1.1rem;
}

/* Sección de LinkedIn en el footer */
.linkedin-section {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0d5c7;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
    position: relative;
    overflow: hidden;
    max-width: 200px;
    justify-content: center;
}

.linkedin-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.linkedin-link:hover::before {
    left: 100%;
}

.linkedin-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 119, 181, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.linkedin-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.linkedin-link:hover .linkedin-icon {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-terracotta));
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* Secciones adicionales para página personal */
.intro-section {
    text-align: center;
    margin-bottom: 3rem;
}

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

.section-title {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    border-radius: 2px;
}

.hobbies-section {
    margin: 4rem 0;
}

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

.hobby-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--accent-green);
}

.hobby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.hobby-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.gallery-section {
    margin: 4rem 0;
}

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

.gallery-photo {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-photo img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.photo-description {
    padding: 1rem;
    color: var(--text-dark);
    font-style: italic;
}

.navigation-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

/* Responsive para página personal */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .intro-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-photo {
        height: 250px;
    }
    
    .hobbies-grid {
        grid-template-columns: 1fr;
    }
    
    .navigation-section {
        flex-direction: column;
        align-items: center;
    }
    
    .linkedin-link {
        padding: 10px 20px;
        font-size: 0.9rem;
        max-width: 180px;
    }
    
    .linkedin-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .intro-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hobby-card {
        padding: 1.5rem;
    }
    
    .photo-description {
        padding: 1rem;
    }
    
    .linkedin-link {
        padding: 8px 16px;
        font-size: 0.85rem;
        max-width: 160px;
    }
    
    .linkedin-icon {
        width: 14px;
        height: 14px;
    }
    
    .profile-photo {
        max-width: 280px;
    }
}

/* Responsive para página principal */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .site-subtitle {
        font-size: 1rem;
    }
    
    .buttons-section {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .linkedin-link {
        padding: 10px 20px;
        font-size: 0.9rem;
        max-width: 180px;
    }
    
    .linkedin-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .linkedin-link {
        padding: 8px 16px;
        font-size: 0.85rem;
        max-width: 160px;
    }
    
    .linkedin-icon {
        width: 14px;
        height: 14px;
    }
    
    .profile-photo {
        max-width: 280px;
    }
}

/* Animaciones suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content > * {
    animation: fadeInUp 0.6s ease-out;
}

/* Accesibilidad */
.welcome-logo:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 4px;
}

.quick-link:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Contact Information Styles */
.contact-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-green);
    text-decoration: underline;
}

.contact-info strong {
    color: var(--primary-green);
    font-weight: 600;
}
