/* IMPORTANTE: Solo títulos principales (h1, h2) tienen animación tiburonGlow 
   Los subtítulos (h3) son estáticos con gradientes fijos */

/* Variables CSS - Tema oscuro por defecto */
:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-color: #ff6b35;
    --success-color: #00c851;
    --text-primary: #ffffff;
    --text-secondary: #e1e8ed;
    --text-muted: #a0a0a0;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.1);
    --bg-card-hover: rgba(255, 255, 255, 0.15);
    --border-color: rgba(255, 255, 255, 0.2);
    --border-radius: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
}

/* Tema claro - colores mejorados */
[data-theme="light"] {
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --success-color: #1e40af;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: rgba(241, 245, 249, 0.95);
    --bg-card: rgba(37, 99, 235, 0.08);
    --bg-card-hover: rgba(37, 99, 235, 0.12);
    --border-color: rgba(37, 99, 235, 0.2);
    --gradient: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    --shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
}

/* Particles más visibles en tema claro */
[data-theme="light"] #particles-js {
    opacity: 1;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Particles.js */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Header con menú hamburguesa */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

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

.nav-brand h1 {
    background: linear-gradient(45deg, #00d4ff, #0099cc, #ff6b35, #00c851);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
    animation: tiburonGlow 8s ease-in-out infinite;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

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

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Botón de cambio de tema */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
    margin-left: 15px;
    align-self: center;
    line-height: 1;
    transform: translateY(-10%);
}

.theme-toggle:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Layout principal */
main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 20px 60px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    margin-top: 80px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #00d4ff, #0099cc, #ff6b35, #00c851);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: tiburonGlow 10s ease-in-out infinite;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--text-muted);
}

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #f09433;
}

.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.aws-link {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.aws-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

/* Secciones de contenido */
.content-section {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(45deg, #00d4ff, #0099cc, #ff6b35, #00c851);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: tiburonGlow 12s ease-in-out infinite;
}

/* Sección Temario */
.temario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.temario-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.temario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.temario-card h3 {
    background: linear-gradient(45deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.terminos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.termino {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-color);
}

.termino:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.termino-name {
    font-weight: 600;
    color: var(--text-light);
    display: block;
}

.termino-detail {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: none;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.termino-detail.show {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.termino-detail strong {
    color: var(--primary-color);
}

/* Grid de laboratorios */
.labs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.lab-module {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.lab-module:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.lab-module h3 {
    background: linear-gradient(45deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.lab-module p {
    opacity: 0.8;
    margin-bottom: 15px;
    color: var(--text-muted);
}

/* Lista de PDFs */
.pdf-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdf-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.pdf-item:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateX(5px);
}

/* Grid de servicios AWS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 280px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.service-card.expanded {
    min-height: 400px;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    text-align: center;
}

.service-card h3 {
    background: linear-gradient(45deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-size: 1.3rem;
    text-align: center;
}

.service-card .service-description {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-align: center;
}

.service-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 15px 0;
}

.type-tag {
    background: var(--gradient-accent);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.service-detail {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.service-detail.show {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.service-detail h4 {
    background: linear-gradient(45deg, var(--accent-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    font-size: 1rem;
}

.type-detail {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 3px solid var(--accent-color);
    display: none;
}

.type-detail.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

.type-detail h4 {
    color: var(--accent-color);
}

/* Sección About */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-card h3 {
    background: linear-gradient(45deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.about-card ul {
    list-style: none;
    padding-left: 0;
}

.about-card li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
    color: var(--text-muted);
}

.about-card li:before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Sección de donaciones */
.donation-section {
    margin-top: 20px;
    text-align: center;
}

.donation-btn {
    background: linear-gradient(45deg, var(--success-color), #00a844);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 200, 81, 0.3);
}

.donation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 81, 0.4);
}

/* Certificaciones Credly */
.credly-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.badge-item {
    text-align: center;
    transition: all 0.3s ease;
}

.badge-item img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.badge-item:hover img {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.badge-item p {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.target-badge {
    position: relative;
}

.target-badge img {
    opacity: 0.7;
    filter: grayscale(50%);
}

.target-badge:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

.target-label {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--gradient-accent);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.verify-badge {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.verify-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* Navegación principal */
.navigation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.nav-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.nav-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
}

.nav-card h3 {
    background: linear-gradient(45deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-align: center;
}

.nav-card p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}

.nav-arrow {
    position: absolute;
    bottom: 20px;
    right: 25px;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.nav-card:hover .nav-arrow {
    transform: translateX(5px);
}

/* Sección de progreso */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.progress-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.progress-card h3 {
    background: linear-gradient(45deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.progress-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    width: 100%;
}

/* Placeholder para PDFs */
.pdf-placeholder {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.pdf-placeholder p:first-child {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

/* Mi Historia */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.story-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.story-card h3 {
    background: linear-gradient(45deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.story-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Por Qué Comparto */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.why-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.why-card h3 {
    background: linear-gradient(45deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.why-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Responsive para nuevas secciones */
@media (max-width: 768px) {
    .story-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .why-card {
        padding: 25px;
    }
}
@media (max-width: 768px) {
    .navigation-grid,
    .progress-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-card {
        padding: 25px;
    }
}
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-secondary);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .theme-toggle {
        margin-left: 0;
        margin-top: 10px;
        border: none;
        background: none;
    }
        width: 100%;
        justify-self: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .content-section {
        padding: 25px 20px;
    }
    
    .labs-grid,
    .services-grid,
    .about-content,
    .temario-grid {
        grid-template-columns: 1fr;
    }
}

/* Animaciones */
@keyframes tiburonGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

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

/* Scroll suave */
html {
    scroll-behavior: smooth;
}
/* Estilos para tarjetas de laboratorios */
.labs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.lab-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #00d4ff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

.lab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
    border-color: #ffffff;
}

.lab-card.active {
    border-color: #00ff88;
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.3);
}

.lab-card.active:hover {
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.5);
}

.lab-card.disabled {
    border-color: #666;
    opacity: 0.6;
    cursor: not-allowed;
}

.lab-card.disabled:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(102, 102, 102, 0.2);
}

.lab-card h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.lab-card p {
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.5;
}

.pdf-count {
    display: inline-block;
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.lab-card.active .pdf-count {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.lab-card.disabled .pdf-count {
    background: rgba(102, 102, 102, 0.2);
    color: #999;
}
/* Estilos para tarjetas flip */
.flip-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 500px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #00d4ff;
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

.flip-card-front h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.pdf-preview {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card-controls button {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.card-controls button:hover {
    background: rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.card-controls button.btn-active {
    background: #00d4ff;
    color: #000;
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .flip-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .flip-card {
        height: 450px;
    }
    
    .pdf-preview {
        height: 250px;
    }
}
/* Breadcrumb moderno */
.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px 0;
}

.breadcrumb-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid #00d4ff;
    border-radius: 25px;
    color: #00d4ff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.breadcrumb-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid #00ff88;
    border-radius: 25px;
    color: #00ff88;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #666;
    font-size: 1.5em;
    font-weight: bold;
}

.breadcrumb-icon {
    font-size: 1.2em;
}

.breadcrumb-text {
    font-size: 0.95em;
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .breadcrumb-modern {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .breadcrumb-separator {
        display: none;
    }
    
    .breadcrumb-btn,
    .breadcrumb-current {
        justify-content: center;
        text-align: center;
    }
}
/* Placeholder para PDFs */
.pdf-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 2px dashed #666;
    color: #999;
}

.placeholder-icon {
    font-size: 3em;
    margin-bottom: 10px;
    opacity: 0.5;
}

.pdf-placeholder p {
    margin: 0;
    font-size: 0.9em;
}

/* Botón Ver Completo */
.btn-full {
    background: rgba(0, 255, 136, 0.2) !important;
    color: #00ff88 !important;
    border: 1px solid #00ff88 !important;
    font-weight: bold;
}

.btn-full:hover {
    background: rgba(0, 255, 136, 0.4) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

/* Ajustar controles para 4 botones */
.card-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 15px;
}

@media (max-width: 480px) {
    .card-controls {
        grid-template-columns: 1fr;
    }
}
