/*!
Theme Name: ULAM Modern
Description: Modern, responsive design for ULAM website
Version: 2.0.0
*/

/* CSS Variables */
:root {
    --header-h: 60px;
}

/* Reset and base styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Container and layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: var(--header-h);
    padding: 0.25rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
}

.logo-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    height: 100%;
}

.logo {
    width: 32px;
    height: 32px;
    position: relative;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Map section styles */
.map-section {
    padding: 1rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 1rem 0;
    text-align: center;
    width: 100%;
}

.map-container {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.map-container img {
    width: 100%;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.map-container img:hover {
    opacity: 1;
}

/* Direct map image styling */
img[src="public/images/Mapa.png"] {
    display: block;
    margin: 2rem auto;
    width: 100%;
    max-width: 800px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

img[src="public/images/Mapa.png"]:hover {
    opacity: 1;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background-color: #f8f9fa;
    color: #0066cc;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #333;
    border-radius: 1px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.open span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Main content */
.site-content {
    margin-top: var(--header-h);
    min-height: calc(100vh - 200px);
}

/* Make the home page tighter */
.home {
    --header-h: 52px;
}
.home .logo {
    width: 28px;
    height: 28px;
}

.site-main {
    padding: 0;
}

/* Hero section */
.main-content {
    text-align: left;
    padding: 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin: 0 0 2rem 0;
    color: #1a1a1a;
    line-height: 1.2;
}

.main-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 3rem;
}

.main-text p {
    margin-bottom: 1.5rem;
}

/* Projects section */
.projects-section {
    padding: 1rem 2rem;
    background-color: #f8f9fa;
    margin: 1rem 0;
}

.projects-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

.projects-section ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.projects-section li {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 2rem;
}

.projects-section li:before {
    content: '•';
    color: #0066cc;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 1rem;
}

.projects-section li:last-child {
    border-bottom: none;
}

/* Blog section */
.blog-preview {
    padding: 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.blog-preview h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

.blog-post-preview {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.entry-title {
    margin-bottom: 1rem;
}

.entry-title a {
    color: #333;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

.entry-title a:hover {
    color: #0066cc;
}

.entry-content {
    margin-bottom: 1rem;
}

.read-more {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.entry-meta {
    color: #666;
    font-size: 0.875rem;
}

.blog-link {
    text-align: center;
    margin-top: 2rem;
}

.view-all-posts {
    background: #0066cc;
    color: white;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.view-all-posts:hover {
    background: #0052a3;
}

/* Side navigation */
.side-nav {
    display: none;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.social-footer {
    max-width: 600px;
    margin: 0 auto;
}

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

.social-links a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.location {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.copyright {
    color: #999;
    font-size: 0.875rem;
    margin: 0;
}

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

.os-animation {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }

    .logo-container {
        gap: 0.25rem;
    }


    .logo {
        width: 24px;
        height: 24px;
    }

    .home {
        --header-h: 56px;
    }

    .map-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    .map-container img {
        max-width: 100%;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }

    .main-navigation.open {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .container {
        padding: 0 1rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .projects-section {
        padding: 2rem 1rem;
    }

    .blog-preview {
        padding: 2rem 1rem;
    }

    .blog-post-preview {
        padding: 1.5rem;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .social-links a {
        display: block;
        text-align: center;
        min-width: 120px;
    }

    /* Individual blog post responsive styles */
    .single.article {
        padding: 1rem;
    }

    .single .entry-header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }

    .single .entry-title {
        font-size: 2rem;
    }

    .single .intro-wrap {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .single .intro-wrap .title h2 {
        font-size: 1.25rem;
    }

    .single .title h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .single .text h4 {
        font-size: 1.125rem;
        margin: 1.5rem 0 0.75rem 0;
    }

    .single .entry-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .single .social-sharing {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .single .social-sharing a {
        padding: 0.75rem 1.5rem;
    }

    .team-content,
    .research-content,
    .blog-content {
        padding: 1rem;
    }

    .team-leader {
        padding: 2rem;
    }

    .research-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .site-main {
        padding: 2rem 0;
    }

    .main-title {
        font-size: 2rem;
    }

    .main-text {
        font-size: 1rem;
    }

    .projects-section h2,
    .blog-preview h2 {
        font-size: 1.5rem;
    }

    .site-footer {
        padding: 2rem 1rem 1rem;
    }
}

/* Team page styles */
.team-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.team-leader {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.team-leader h2 {
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.position {
    color: #666;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.bio p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.bio strong {
    color: #0066cc;
}

/* Research page styles */
.research-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.research-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.research-section h3 {
    color: #0066cc;
    margin-bottom: 1rem;
}

/* Blog page styles */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-post {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.blog-post h2 {
    color: #333;
    margin-bottom: 1rem;
}

.blog-post .meta {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Individual blog post styles */
.single.article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.single .entry-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.single .entry-title {
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.single .entry-meta {
    color: #666;
    font-size: 0.875rem;
}

.single .intro-wrap {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid #e9ecef;
}

.single .intro-wrap .title h2 {
    color: #0066cc;
    font-size: 1.5rem;
    margin: 0;
    text-align: center;
}

.single section {
    margin-bottom: 3rem;
}

.single .title h3 {
    color: #0066cc;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.single .text {
    line-height: 1.7;
}

.single .text h4 {
    color: #333;
    font-size: 1.25rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.single .text p {
    margin-bottom: 1.5rem;
    color: #555;
}

.single .text strong {
    color: #0066cc;
}

.single .entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.single .share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.single .social-sharing {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.single .before-sharebutton-text {
    color: #666;
    font-weight: 500;
}

.single .social-sharing a {
    color: #0066cc;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #0066cc;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.single .social-sharing a:hover {
    background: #0066cc;
    color: white;
}

.single .next a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.single .next a:hover {
    color: #0066cc;
}

/* Page headers */
.entry-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    color: #333;
    margin: 0;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .mobile-menu-btn {
        display: none;
    }

    .site-content {
        margin-top: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Tighten space below the top bar on mobile */
@media (max-width: 768px) {
    .home .main-content {               /* was 2rem top */
        padding: 0.5rem 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .home .site-main {                  /* was 2rem top */
        padding-top: 0;
    }
    .home .main-content {               /* keep a little breathing room */
        padding-top: 0.5rem;
    }
}

/* Revert to original offset */
.home .site-content {
    margin-top: 60px;  /* back to original */
}

/* FAQ/Details accordion styles */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq details {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 0;
    margin: 0.75rem 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq details:hover {
    border-color: #0066cc;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 1.0625rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #333;
    transition: all 0.2s ease;
    user-select: none;
    text-decoration: underline;
    text-decoration-color: rgba(0, 102, 204, 0.3);
    text-underline-offset: 3px;
}

/* Hide default disclosure triangle */
.faq summary::-webkit-details-marker {
    display: none;
}

/* Custom triangle indicator */
.faq summary::before {
    content: "▸";
    color: #0066cc;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
    display: inline-block;
    flex-shrink: 0;
}

/* Rotate triangle when open */
.faq details[open] summary::before {
    transform: rotate(90deg);
}

/* Summary hover state */
.faq summary:hover {
    color: #0066cc;
    background: #f8f9fa;
    text-decoration-color: #0066cc;
}

/* Content wrapper */
.faq .faq-content {
    padding: 0 1.5rem 1.5rem 3rem;
    line-height: 1.7;
    color: #555;
}

.faq .faq-content p {
    margin: 0;
}

/* Open state styling */
.faq details[open] {
    background: white;
    border-color: #0066cc;
}

.faq details[open] summary {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .faq {
        max-width: 100%;
    }

    .faq summary {
        font-size: 0.9375rem;
        padding: 1rem 1rem;
        gap: 0.5rem;
    }

    .faq summary::before {
        font-size: 1rem;
    }

    .faq .faq-content {
        padding: 0 1rem 1rem 2.25rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .faq details {
        margin: 0.5rem 0;
    }

    .faq summary {
        padding: 0.875rem 0.875rem;
        font-size: 0.875rem;
    }

    .faq .faq-content {
        padding: 0 0.875rem 0.875rem 2rem;
        font-size: 0.875rem;
    }
}

