/* ========================================
   ARCHIVO: css/styles.css
   Estilos para Landing Page Taller de Endoscopia
   ======================================== */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e6e9ef 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER - Logos superiores
   ======================================== */
.header {
    background: white;
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logos-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* ========================================
   HERO SECTION - Banner principal
   ======================================== */
.hero {
    background: linear-gradient(135deg, #5a8f7b 0%, #3d6355 100%);
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.banner-container {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.hero-banner {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.amcico-logo-container {
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.amcico-logo {
    height: 120px;
    width: auto;
}

.event-date {
    background: rgba(255,255,255,0.95);
    color: #3d6355;
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

/* ========================================
   DESCRIPCIÓN
   ======================================== */
.description {
    background: white;
    padding: 60px 0;
    text-align: center;
}

.description h3 {
    color: #5a8f7b;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.description p {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* ========================================
   PROFESORES SECTION
   ======================================== */
.professors {
    background: #f8f9fa;
    padding: 60px 0;
}

.professors h2 {
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #7fa99b 0%, #5a8f7b 100%);
    padding: 20px 40px;
    border-radius: 50px;
    margin-bottom: 50px;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 2px;
    box-shadow: 0 5px 20px rgba(90, 143, 123, 0.3);
}

.professors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.professor-card {
    text-align: center;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.professor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.professor-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 4px solid #f0f0f0;
    transition: border-color 0.3s ease;
}

.professor-card:hover .professor-img {
    border-color: #5a8f7b;
}

.professor-name {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ========================================
   PROGRAMA ACADÉMICO
   ======================================== */
.program {
    background: white;
    padding: 60px 0;
}

.program h2 {
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #7fa99b 0%, #5a8f7b 100%);
    padding: 20px 40px;
    border-radius: 50px;
    margin-bottom: 50px;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 2px;
    box-shadow: 0 5px 20px rgba(90, 143, 123, 0.3);
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.schedule-table thead {
    background: linear-gradient(135deg, #5a8f7b 0%, #4a7f6b 100%);
    color: white;
}

.schedule-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.schedule-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.2s ease;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-table tbody tr:hover {
    background: #f9f9f9;
}

.section-header td {
    background: linear-gradient(135deg, #e8f5f0 0%, #d4ede3 100%);
    font-weight: 700;
    text-align: center;
    font-size: 1.2rem;
    color: #5a8f7b;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.time-break td {
    background: #fff9e6;
    text-align: center;
    font-style: italic;
    color: #856404;
    font-weight: 500;
}

/* ========================================
   INFO SECTION
   ======================================== */
.info-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    position: relative;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.info-card {
    background: rgba(255,255,255,0.15);
    padding: 35px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-card p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.info-card small {
    opacity: 0.9;
    font-size: 0.9rem;
}

.icon {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.2rem;
}

/* ========================================
   VENUE SECTION
   ======================================== */
.venue {
    background: white;
    padding: 60px 0;
    text-align: center;
}

.venue h2 {
    color: #5a8f7b;
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.venue-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 650px;
    margin: 0 auto;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.venue-info h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.venue-info p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.venue-info strong {
    color: #5a8f7b;
    font-weight: 600;
}

.isube-logo-container {
    margin-top: 40px;
}

.isube-logo {
    height: 220px;
    width: auto;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
    font-size: 1rem;
    opacity: 0.9;
}

.footer p:last-child {
    margin-bottom: 0;
    opacity: 0.7;
}

/* ========================================
   ANIMACIONES ADICIONALES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 20px 0;
    }
    
    .logos-container {
        gap: 20px;
    }
    
    .logo {
        height: 45px;
    }
    
    /* Hero */
    .hero {
        padding: 30px 0;
    }
    
    .banner-container {
        padding: 0 15px;
    }
    
    .hero-banner {
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    }
    
    .event-date {
        font-size: 1.1rem;
        padding: 12px 30px;
        margin: 20px 15px;
    }
    
    /* Descriptions */
    .description h3 {
        font-size: 1.4rem;
    }
    
    /* Professors */
    .professors-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .professor-img {
        width: 100px;
        height: 100px;
    }
    
    .professor-name {
        font-size: 1rem;
    }
    
    /* Program Table */
    .schedule-table {
        font-size: 0.9rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 12px 10px;
    }
    
    .program h2,
    .professors h2 {
        font-size: 1.6rem;
        padding: 15px 25px;
    }
    
    /* Info Cards */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .info-card {
        padding: 25px;
    }
    
    /* Venue Section */
    .venue {
        padding: 40px 0;
    }
    
    .venue h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .venue-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .venue-info {
        padding: 30px 20px;
        order: 2;
    }
    
    .venue-info h3 {
        font-size: 1.5rem;
    }
    
    .venue-subtitle {
        font-size: 1rem;
    }
    
    .venue-actions {
        flex-direction: column;
    }
    
    .btn-directions,
    .btn-website {
        width: 100%;
        text-align: center;
    }
    
    .map-container {
        order: 1;
        min-height: 300px;
    }
    
    .map-overlay {
        bottom: 10px;
        left: 10px;
    }
    
    .btn-expand-map {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    /* Mobile specific adjustments */
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .description h3 {
        font-size: 1.2rem;
        padding: 0 10px;
    }
    
    .professors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Hacer la tabla scrollable horizontalmente en móvil */
    .schedule-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .schedule-table th,
    .schedule-table td {
        font-size: 0.85rem;
    }
}

/* ========================================
   UTILIDADES
   ======================================== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print styles */
@media print {
    .header {
        position: relative;
    }
    
    .hero::before {
        display: none;
    }
    
    .info-section::before {
        display: none;
    }
    
    .professor-card:hover {
        transform: none;
        box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    }
}