/* Modern Azure-themed styles for AzureCloudLab */
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@300;400;600;700&display=swap');

:root {
    --azure-blue: #0078d4;
    --title-color: #000819;
    --azure-dark-blue: #005a9e;
    --azure-light-blue: #40e0d0;
    --azure-bg: #f8f9fa;
    --text-dark: #323130;
    --text-light: #605e5c;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--title-color) 0%, var(--azure-dark-blue) 100%);
    --shadow: 0 4px 20px rgba(0, 120, 212, 0.15);
    --shadow-hover: 0 8px 30px rgba(0, 120, 212, 0.25);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--azure-bg);
    scroll-behavior: smooth;
}

/* Header Styles */
.header {
    background: var(--gradient);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-item a:hover {
    background-color: rgba(125, 11, 11, 0.1);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: rgb(255, 255, 255);*/
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.event-date {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    display: inline-block;
    backdrop-filter: blur(10px);
}

.cta-button {
    background: var(--white);
    color: var(--azure-blue);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--azure-blue);
}

/* Hero Logo Styles */
.hero-logo {
    height: 450px;
    width: auto;
    margin-bottom: 2rem;
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Speakers Grid */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.speaker-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid var(--azure-blue);
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.speaker-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--azure-light-blue);
}

.speaker-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.speaker-full-description {
    text-align: justify;
    line-height: 1.6; 
    margin-bottom: 1.5rem;
}

.speaker-job-title {
    color: var(--azure-dark-blue);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.speaker-title {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.speaker-bio {
    color: var(--text-light);
    line-height: 1.5;
}

/* Sessions Grid */
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.session-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.session-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.session-header {
    background: var(--gradient);
    color: var(--white);
    padding: 1.5rem;
}

.session-time {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.session-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.session-speaker {
    font-size: 0.95rem;
    opacity: 0.9;
}

.session-content {
    padding: 1.5rem;
}

.session-description {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.session-category {
    background: var(--azure-light-blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* Sponsors Section */
.sponsors {
    background: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
    margin-top: 2rem;
}

.sponsor-logo {
    max-width: 320px;
    max-height: 80px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sponsor-logo:hover {
    opacity: 1;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    margin: 1rem;
    box-shadow: var(--shadow-hover);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-dark);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-logo {
        height: 300px;
        max-width: 90%;
        margin-bottom: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .speakers-grid,
    .sessions-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        height: 200px;
        max-width: 95%;
        margin-bottom: 1rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }
}

/* Speakers Page Specific Styles */
.page-header {
    background: var(--gradient);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.speakers-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.speaker-card-full {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    border-left: 4px solid var(--azure-blue);
}

.speaker-card-full:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.speaker-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--azure-light-blue);
    flex-shrink: 0;
}

.speaker-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.speaker-bio-preview {
    color: var(--text-light);
    line-height: 1.5;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.speaker-social {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.social-link {
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-link.twitter {
    color: #1da1f2;
    background: rgba(29, 161, 242, 0.1);
}

.social-link.linkedin {
    color: #0077b5;
    background: rgba(0, 119, 181, 0.1);
}

.social-link:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.speaker-more-btn {
    background: var(--azure-blue);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.speaker-more-btn:hover {
    background: var(--azure-dark-blue);
    transform: translateY(-2px);
}

.loading-container {
    text-align: center;
    padding: 4rem 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--azure-bg);
    border-left: 4px solid var(--azure-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments for speakers page */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .speakers-grid-full {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .speaker-card-full {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .speaker-avatar-large {
        align-self: center;
    }
    
    .speaker-social {
        justify-content: center;
    }

    /* Sessions page mobile responsive */
    .sessions-page-grid {
        grid-template-columns: 1fr;
    }

    .sessions-date-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .sessions-page-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .sessions-modal-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .sessions-modal-speaker {
        flex-direction: column;
        text-align: center;
    }

    .sessions-click-hint {
        margin-left: 0;
    }
}

/* Estilos específicos para Sessions Page */
.sessions-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.sessions-date-section {
    margin-bottom: 3rem;
}

.sessions-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--azure-blue);
}

.sessions-date-title {
    color: var(--azure-blue);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    text-transform: capitalize;
}

.sessions-count {
    background: var(--azure-light-blue);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.sessions-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.sessions-page-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid var(--azure-blue);
}

.sessions-page-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.sessions-page-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.sessions-time-display {
    background: var(--azure-bg);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--azure-dark-blue);
}

.sessions-level {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.sessions-level-beginner {
    background: #e7f5e7;
    color: #2d7d2d;
}

.sessions-level-intermediate {
    background: #fff3cd;
    color: #b8860b;
}

.sessions-level-advanced {
    background: #f8d7da;
    color: #842029;
}

.sessions-page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.sessions-page-speaker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: var(--azure-bg);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sessions-page-speaker:hover {
    background: var(--azure-light-blue);
}

.sessions-speaker-icon {
    font-size: 1.2rem;
}

.sessions-speaker-name {
    font-weight: 600;
    color: var(--azure-dark-blue);
}

.sessions-page-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sessions-page-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.sessions-page-category {
    background: var(--azure-blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.sessions-meeting-link {
    color: var(--azure-blue);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid var(--azure-blue);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sessions-meeting-link:hover {
    background: var(--azure-blue);
    color: var(--white);
}

/* Session Modal Styles para Sessions Page */
.sessions-modal {
    max-width: 700px;
    max-height: 90vh;
}

.sessions-modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.sessions-modal-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.sessions-modal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.sessions-modal-time {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.sessions-modal-speaker {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--azure-bg);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sessions-modal-speaker:hover {
    background: var(--azure-light-blue);
}

.sessions-speaker-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.sessions-speaker-info-small h4 {
    margin: 0;
    color: var(--text-dark);
}

.sessions-speaker-info-small p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.sessions-click-hint {
    margin-left: auto;
    color: var(--azure-blue);
    font-size: 0.8rem;
    font-style: italic;
}

.sessions-modal-content h3 {
    color: var(--azure-blue);
    margin-bottom: 1rem;
}

.sessions-full-description {
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-dark);
    white-space: pre-wrap; /* Preserva saltos de línea y espacios */
    text-align: justify;
}

.sessions-modal-details {
    background: var(--azure-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.sessions-detail-item {
    margin-bottom: 1rem;
}

.sessions-detail-item:last-child {
    margin-bottom: 0;
}

.sessions-meeting-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--azure-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.sessions-meeting-button:hover {
    background: var(--azure-dark-blue);
    color: var(--white);
}

/* Session Modal Styles */
.session-modal {
    max-width: 700px;
    max-height: 90vh;
}

.session-modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.session-modal-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.session-modal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.session-modal-time {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.session-modal-speaker {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--azure-bg);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.session-modal-speaker:hover {
    background: var(--azure-light-blue);
}

.speaker-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.speaker-info-small h4 {
    margin: 0;
    color: var(--text-dark);
}

.speaker-info-small p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.click-hint {
    margin-left: auto;
    color: var(--azure-blue);
    font-size: 0.8rem;
    font-style: italic;
}

.session-modal-content h3 {
    color: var(--azure-blue);
    margin-bottom: 1rem;
}

.session-full-description {
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.session-modal-details {
    background: var(--azure-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.detail-item {
    margin-bottom: 1rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.meeting-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--azure-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.meeting-button:hover {
    background: var(--azure-dark-blue);
    color: var(--white);
}
