/* styles.css */

/* Global Styles */
:root {
    --primary-color: #2B72B0;
    --secondary-color: #0B1F52;
    --accent-color: #f48225;
    --text-color: #333;
    --bg-color: #F5F5F5;
    --header-bg: #0B1F52;
    --footer-bg: #0B1F52;
    --card-bg: #FFF;
    --text-light: #babbc2;
    --text-white: #ffffff;
    --shadow: rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Dark mode variables removed - keeping only light theme */

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

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

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

a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    color: var(--text-white);
    padding: 0.5em 1em;
    position: relative;
    width: 100%;
    box-shadow: 0 2px 10px var(--shadow);
    transition: var(--transition);
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

header nav ul li {
    display: inline;
    margin: 0 1em;
}

header nav ul li a {
    color: #babbc2;
    text-decoration: none;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #ffffff;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5em;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #babbc2;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    header nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: #0B1F52;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    header nav ul.active {
        left: 0;
    }

    header nav ul li {
        margin: 1em 0;
    }

    header nav ul li a {
        font-size: 1.2em;
    }
}

/* Main Content Styles */
main {
    margin: 2em auto;
    max-width: 900px;
    padding: 2em;
    background-color: var(--card-bg);
    box-shadow: 0 4px 20px var(--shadow);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
}

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

main h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

main h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

main h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 500;
    line-height: 1.4;
}

main h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 1.2rem 0 0.6rem 0;
    font-weight: 500;
    line-height: 1.4;
}

main p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1rem;
}

main ul, main ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

main li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

main blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-color);
    background-color: rgba(244, 130, 37, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

main strong {
    font-weight: 600;
    color: var(--secondary-color);
}

main em {
    font-style: italic;
    color: var(--accent-color);
}

section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em 0;
}

.emphasizeed {
    font-weight: bold;
}

.emphasized {
    font-weight: bold;
    font-style: italic;
}

.underlined {
    text-decoration: underline;
}

/* CV and contact */

/* Estilo para centrar el título */
h1 {
    text-align: center;
}

.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
}

/* Estilo para la imagen */
.image-container {
    flex: 1;
    padding-right: 5px;
}
.image-container img {
    width: 225px;
    height: 320px;
    display: block;
    margin: auto;
}

/* Estilo para Blog */
.posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post {
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 1.5em;
    box-shadow: 0 4px 12px var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow);
}

.post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.post h2 {
    margin-top: 0;
    font-size: 1.3rem;
    line-height: 1.3;
}

.post time {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.post a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.post a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent-color) !important;
    font-weight: 600;
}


/* Estilo para el CV y Contacto */
.cv-contact {
    flex: 1;
    padding: 1rem;
}
.cv-contact h1 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.cv-contact h2 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.4rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

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

.cv-contact a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.cv-contact a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Estilo para Podcasts*/
.column {
    flex: 1;
    padding: 5px;
    box-sizing: border-box;
}

.column h2 {
    text-align: center;
    margin-bottom: 20px;
}

.embed {
    margin-bottom: 20px;
}


/* Footer Styles */
footer {
    background-color: var(--footer-bg);
    color: var(--text-white);
    text-align: center;
    padding: 2em 1em 1em;
    position: relative;
    width: 100%;
    margin-top: 3em;
    box-shadow: 0 -2px 10px var(--shadow);
    transition: var(--transition);
}

footer nav ul {
    list-style: none;
    margin: 0 0 1.5em 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

footer nav ul li {
    display: inline;
    margin: 0 1em;
}

footer nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

footer nav ul li a:hover {
    color: var(--text-white);
    transform: translateY(-2px);
}

footer .social-icons {
    margin-top: 1em;
}

footer .social-icons a {
    display: inline-block;
    margin: 0 0.8em;
    transition: var(--transition);
    opacity: 0.8;
}

footer .social-icons a:hover {
    opacity: 1;
    transform: scale(1.1);
}

footer .social-icons img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

footer .social-icons a:hover img {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(25deg);
}

/* Language Toggle */
.lang-toggle {
    position: absolute;
    top: 50%;
    right: 6em;
    transform: translateY(-50%);
    background: none;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    cursor: pointer;
    padding: 0.3em 0.6em;
    border-radius: 20px;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
}

.lang-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
    color: var(--text-white);
}

.lang-text {
    color: inherit;
}

/* Now Page Styles */
.now-page {
    max-width: 800px;
    margin: 0 auto;
}

.now-page .now-intro {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(244, 130, 37, 0.05);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
}

.now-page h2 {
    color: var(--primary-color);
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    font-size: 1.5rem;
}

.now-page h3 {
    color: var(--secondary-color);
    margin: 2.5rem 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.now-page p {
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

.now-page a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.now-page a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 0.5em;
    }

    .lang-toggle {
        right: 3em;
        padding: 0.2em 0.5em;
        font-size: 0.8rem;
    }

    header nav ul li,
    footer nav ul li {
        display: block;
        margin: 0.5em 0;
    }

    main {
        margin: 1em auto;
        padding: 1em;
        width: 95%;
        border-radius: 8px;
    }

    main h1 {
        font-size: 2rem;
    }

    main h2 {
        font-size: 1.5rem;
    }

    main h3 {
        font-size: 1.2rem;
    }

    .posts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container {
        flex-direction: column;
        align-items: center;
    }

    .image-container {
        margin-bottom: 2rem;
    }

    footer nav ul {
        flex-direction: column;
        align-items: center;
    }

    footer nav ul li {
        margin: 0.3em 0;
    }

    footer .social-icons a {
        margin: 0 0.5em;
    }

    /* Mobile-specific adjustments */
    .cv-contact {
        padding: 0;
    }

    .cv-contact h1 {
        font-size: 1.8rem;
    }

    .cv-contact h2 {
        font-size: 1.2rem;
    }
}

/* Random Quote Widget */
.random-quote-widget {
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 4px 12px var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.random-quote-widget::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    font-family: 'Georgia', serif;
}

.random-quote-widget blockquote {
    margin: 0;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.random-quote-widget footer {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.random-quote-widget .quote-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.random-quote-widget button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.random-quote-widget button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.random-quote-widget .view-all-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.random-quote-widget .view-all-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

@media (max-width: 480px) {
    main h1 {
        font-size: 1.8rem;
    }

    main h2 {
        font-size: 1.3rem;
    }

    .post {
        padding: 1rem;
    }

    .post img {
        height: 150px;
    }

    .random-quote-widget {
        margin: 1rem auto;
        padding: 1.5rem;
    }

    .random-quote-widget blockquote {
        font-size: 1.1rem;
        padding: 1rem;
    }

    .random-quote-widget .quote-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}
