* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: #0b2b4b;
    line-height: 1.6;
}

/* Paleta de colores moderna */
:root {
    --primary: #0b2b4b;
    --secondary: #1e4a6d;
    --accent: #f97316;
    --accent-light: #ffb089;
    --light: #f0f4f8;
    --white: #ffffff;
    --gray: #64748b;
    --gradient: linear-gradient(135deg, #0b2b4b 0%, #1e4a6d 100%);
}

/* Navegación sticky */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-placeholder {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: background 0.3s;
}

.menu-btn:hover span {
    background: var(--accent);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    min-width: 200px;
    overflow: hidden;
    z-index: 1001;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.85rem 1.5rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: var(--light);
    color: var(--accent);
}

.menu-wrapper {
    position: relative;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 4rem 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M0 0 L100 100 M100 0 L0 100" stroke="white" stroke-width="1"/></svg>');
    background-size: 30px 30px;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-date {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

.hero-location {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-theme {
    font-size: 1.2rem;
    background: rgba(255,255,255,0.15);
    padding: 1.5rem;
    border-radius: 16px;
    margin: 2rem 0;
    backdrop-filter: blur(5px);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 0.5rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Secciones generales */
.section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Motivación con tarjetas */
.motivation-text {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 800px;
    text-align: justify;
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-light);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Call for Papers */
.call-papers {
    background: var(--light);
    border-radius: 24px;
}

.deadline-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    border-left: 6px solid var(--accent);
}

/* Áreas temáticas */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.topic-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.3s;
    cursor: pointer;
}

.topic-card:hover {
    box-shadow: 0 10px 30px rgba(11, 43, 75, 0.1);
    transform: scale(1.02);
}

.topic-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
}

/* Programa preview */
.program-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.day-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.day-card h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.day-card p {
    color: var(--gray);
    margin: 1rem 0;
}

/* Organizadores */
.organizers {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
}

.org-logo {
    width: 150px;
    height: 80px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary);
}

.location-btn {
    display: flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: color 0.3s, background 0.2s;
}

.location-btn:hover {
    color: var(--accent);
    background: var(--light);
}

.location-btn svg {
    width: 24px;
    height: 24px;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 1;
}

/* Estilo consistente con la página sochedi2026.uct.cl */
.comites-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.comite-columna {
    width: 280px;  /* Tamaño fijo */
    min-width: 280px;
    max-width: 280px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.comite-columna:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.comite-header {
    background: #f8fafc;
    padding: 0.8rem 0;
    padding-left: 25px;  /* Padding izquierdo de 25px */
    border-bottom: 2px solid #1e40af; /* azul institucional */
  }
  
.comite-header h3 {
    margin: 0;
    font-size: 1rem;  /* Título más pequeño */
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.2px;
    text-align: left;  /* Justificado a la izquierda */
}

.comite-lista {
    padding: 0.5rem 0 0.8rem 0;
}
  
.comite-item {
    padding: 0.5rem 0;
    padding-left: 25px;  /* Padding izquierdo de 25px */
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;  /* Texto ligeramente más pequeño */
    color: #1e293b;
    text-align: left;
}

.comite-item:last-child {
    border-bottom: none;
}
  
@media (max-width: 768px) {
    .comites-container {
      justify-content: center;
    }
    .comite-columna {
      width: 280px;
      min-width: 280px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .program-preview {
        grid-template-columns: 1fr;
    }

    .hero-theme {
        font-size: 1rem;
    }

    .btn {
        display: block;
        margin: 1rem 0;
    }
}
