/* ============================================================
   CSS - Expo Hubbell 2026
   Basado en Brand Guidelines de Hubbell
   ============================================================ */

/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&display=swap');

/* COLORES DEL BRANDING */
:root {
    --hubbell-yellow: #FFD700;
    --hubbell-dark: #202621;
    --hubbell-gray-dark: #646660;
    --hubbell-gray: #919490;
    --hubbell-gray-light: #f7f7f6;
    --white: #FFFFFF;
    
    /* Colores adicionales */
    --accent: #FFD700;
    --text-dark: #202621;
    --text-light: #646660;
    --border-color: #E7E6E4;
    --shadow: 0 2px 8px rgba(32, 38, 33, 0.1);
    --shadow-lg: 0 8px 24px rgba(32, 38, 33, 0.15);
}

/* RESET Y ESTILOS GLOBALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 
                 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* TIPOGRAFÍA */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Michroma', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hubbell-yellow);
}

/* CONTENEDOR */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   HEADER / NAVEGACIÓN
   ============================================================ */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.logo img {
    height: 50px;
    width: auto;
}

.tagline {
    background: linear-gradient(135deg, var(--hubbell-yellow), #FFC700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--hubbell-yellow);
}

.cta-button {
    background-color: var(--hubbell-yellow);
    color: var(--text-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* RESPONSIVE NAV */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    color: var(--white);
    padding: 6rem 100px;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(32, 38, 33, 0.5);
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 3.5rem;
}

.hero-subtitle {
    color: var(--hubbell-yellow);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-description {
    color: #d0d0d0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: none;
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 20px;
        min-height: 500px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--hubbell-yellow), transparent);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ============================================================
   SECCIÓN INFORMACIÓN
   ============================================================ */
.informacion {
    background-color: var(--white);
}

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

.info-card {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-bottom: 4px solid var(--hubbell-yellow);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.info-card:hover {
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.1);
    transform: translateY(-4px);
}

.info-icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-light);
}

.event-description {
    background: linear-gradient(135deg, var(--hubbell-dark), #3a4239);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-bottom: 4px solid var(--hubbell-yellow);
}

.event-description h3 {
    color: var(--hubbell-yellow);
    margin-bottom: 1rem;
}

.event-text {
    color: var(--hubbell-gray-light);
}

/* ============================================================
   SECCIÓN TALLERES
   ============================================================ */
.talleres {
    background-color: var(--hubbell-gray-light);
}

.talleres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.taller-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border-bottom: 4px solid var(--hubbell-yellow);
}

.tallerista-foto-header {
    width: 100%;
    height: 220px;
    background-color: var(--hubbell-gray-light);
    overflow: hidden;
}

.tallerista-foto-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.taller-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.taller-header {
    background: linear-gradient(135deg, var(--hubbell-dark), #3a4239);
    color: var(--white);
    padding: 1.5rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.taller-header h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.taller-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tallerista-info {
    margin-bottom: 1rem;
}

.tallerista-nombre {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.tallerista-titulo {
    color: var(--text-light);
    font-size: 0.85rem;
}

.taller-horario {
    background-color: var(--hubbell-gray-light);
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.taller-descripcion {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: auto;
    line-height: 1.6;
}

.taller-salones {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.btn-registrar-taller {
    background-color: var(--hubbell-yellow);
    color: var(--text-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
}

.btn-registrar-taller:hover {
    background-color: #FFC700;
    transform: translateY(-2px);
}

.btn-registrar-taller:active {
    transform: translateY(0);
}

/* ============================================================
   SECCIÓN PLENARIA
   ============================================================ */
.plenaria {
    background-color: var(--white);
}

.conferencia-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: linear-gradient(135deg, var(--hubbell-gray-light), var(--white));
    padding: 2rem;
    border-radius: 8px;
    border-bottom: 4px solid var(--hubbell-yellow);
}

.conferencia-info h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.speaker-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    border-bottom: 4px solid var(--hubbell-yellow);
}

.speaker-photo {
    width: 100%;
    height: 250px;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--hubbell-gray-light);
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-card h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.speaker-title {
    color: var(--hubbell-yellow);
    font-weight: 600;
    margin-bottom: 1rem;
}

.speaker-bio {
    color: var(--text-light);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .conferencia-container {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   GALERÍA
   ============================================================ */
.galeria {
    background-color: var(--hubbell-gray-light);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.galeria-video {
    position: relative;
}

.galeria-placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--hubbell-dark), #3a4239);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.galeria-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeria-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.galeria-item.galeria-video:hover .video-overlay {
    opacity: 1;
    background-color: rgba(32, 38, 33, 0.4);
}

.video-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--hubbell-yellow);
    border: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-btn:hover {
    transform: scale(1.15);
    background-color: #FFC700;
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.video-btn.playing {
    background-color: rgba(255, 215, 0, 0.9);
}

.galeria-item.galeria-video .video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.galeria-item:hover .galeria-placeholder {
    background: linear-gradient(135deg, var(--hubbell-yellow), #FFC700);
    color: var(--text-dark);
    transform: scale(1.05);
}

/* ============================================================
   SECCIÓN REGISTRO
   ============================================================ */
.registro {
    background: linear-gradient(135deg, var(--hubbell-dark), #3a4239);
    color: var(--white);
}

.registro .section-title,
.registro .section-subtitle {
    color: var(--white);
}

.registro .section-title::after {
    background: var(--hubbell-yellow);
}

.registro-container {
    max-width: 700px;
    margin: 0 auto;
}

.formulario-registro {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--hubbell-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #dc3545;
}

.error-msg {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.error-msg.show {
    display: block;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label {
    font-weight: 400;
    margin-bottom: 0;
}

.checkbox-label a {
    color: var(--hubbell-yellow);
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    margin-top: 1rem;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mensaje-respuesta {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
    text-align: center;
}

.mensaje-respuesta.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.mensaje-respuesta.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    color: var(--text-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* ============================================================
   BOTONES GENERALES
   ============================================================ */
.btn {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--hubbell-yellow);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: #FFC700;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--text-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-section h4 {
    color: var(--hubbell-yellow);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--white);
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--hubbell-yellow);
}

.footer-section p {
    font-size: 12px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--hubbell-yellow);
    color: var(--text-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    border-bottom: 3px solid var(--hubbell-yellow);
    padding-top: 2rem;
    padding-bottom: 1rem;
    text-align: center;
    color: #d0d0d0;
    font-size: 12px;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 12px;
}

.footer-bottom a {
    color: var(--hubbell-yellow);
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--white);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--hubbell-yellow);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}