:root {
    --udec-blue: #003366;
    --ras-yellow: #FFC72C;
    --white: #ffffff;
    --bg-light: #f4f7f6;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    scroll-behavior: smooth;
}

/* Navbar */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: var(--udec-blue);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
}

.nav-logo {
    height: 40px;
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.3s;
}

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

/* Hero */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?auto=format&fit=crop&q=80') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.85);
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.ras-intl-logo {
    width: 280px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.hero h1 {
    font-family: 'Montserrat';
    font-size: 3rem;
    margin-bottom: 10px;
}

.separator {
    width: 60px;
    height: 3px;
    background: var(--ras-yellow);
    margin: 20px auto;
}

/* Botones */
.btn-main {
    background: var(--ras-yellow);
    color: var(--udec-blue);
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-sub {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    margin-left: 15px;
    display: inline-block;
    transition: 0.3s;
}

.btn-main:hover {
    background: var(--white);
    transform: scale(1.05);
}

/* Estilos Stack Tecnológico */
.tech-stack {
    background-color: var(--udec-blue);
    padding: 80px 10%;
    color: var(--white);
}

.white-text {
    color: var(--white) !important;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.tech-category h3 {
    color: var(--ras-yellow);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--ras-yellow);
    display: inline-block;
    padding-bottom: 10px;
}

.tech-list span {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 300;
}

.tech-list i {
    width: 25px;
    color: var(--ras-yellow);
}

/* Estilos Roadmap (Línea de Tiempo) */
.roadmap-section {
    position: relative;
    padding: 80px 10%;
    background-color: var(--bg-light);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--udec-blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item .content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--ras-yellow);
    border: 4px solid #fff;
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-item h3 {
    margin-bottom: 10px;
    color: var(--udec-blue);
}

/* Galería Robots */
.gallery-section {
    padding: 80px 10%;
    background-color: #fff;
    text-align: center;
}

.section-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

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

.video-card {
    position: relative;
    height: 350px;
    background-color: #000;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: 0.3s;
    z-index: 2;
}

.video-card:hover .video-overlay {
    background: rgba(0, 51, 102, 0.1);
}

.video-overlay i {
    font-size: 4rem;
    color: var(--ras-yellow);
    margin-bottom: 10px;
    transition: transform 0.3s;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.video-card:hover i {
    transform: scale(1.1);
}

.video-overlay h4 {
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Proyectos */
.projects-section {
    padding: 100px 10%;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-family: 'Montserrat';
    color: var(--udec-blue);
    margin-bottom: 40px;
    font-size: 2.2rem;
}

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

.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border-bottom: 4px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--ras-yellow);
}

.project-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 25px;
}

.badge {
    background: var(--udec-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}

/* Directiva */
.team-section {
    padding: 100px 10%;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.profile-frame {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid var(--ras-yellow);
    overflow: hidden;
}

.profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.member-card:hover img {
    transform: scale(1.1);
}

.member-social a {
    color: #0077b5;
    font-size: 1.5rem;
    transition: 0.3s;
}

.member-social a:hover {
    color: var(--udec-blue);
}

/* Advisor */
.advisor-section {
    padding: 100px 10%;
    background: var(--bg-light);
}

.advisor-card {
    background: #fff;
    display: flex;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.advisor-img-frame {
    width: 40%;
    height: 350px;
}

.advisor-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advisor-info {
    padding: 40px;
    width: 60%;
}

.advisor-info h3 {
    color: var(--udec-blue);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.advisor-info .dept {
    display: block;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

/* Patrocinadores */
.sponsors-section {
    padding: 60px 10%;
    background: #fff;
    text-align: center;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.sponsor-item img {
    height: 400px;
    opacity: 1;
    transition: 0.3s;
    object-fit: contain;
}

.sponsor-item:hover img {
    transform: scale(1.02);
}

/* Testimonios */
.testimonials-section {
    padding: 80px 10%;
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.9)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&q=80');
    background-size: cover;
    background-attachment: fixed;
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--ras-yellow);
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ras-yellow);
}

.author h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author span {
    font-size: 0.8rem;
    opacity: 0.8;
    color: var(--ras-yellow);
}

/* Recursos */
.resources-section {
    padding: 60px 10%;
    background: var(--bg-light);
    text-align: center;
}

.resources-flex {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.resource-btn {
    background: white;
    padding: 20px 40px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--udec-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    min-width: 200px;
    border: 1px solid transparent;
}

.resource-btn i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--udec-blue);
}

.resource-btn span {
    font-weight: bold;
    font-size: 1.1rem;
}

.resource-btn small {
    font-size: 0.8rem;
    color: #777;
    margin-top: 5px;
}

.resource-btn:hover {
    transform: translateY(-5px);
    border-color: var(--ras-yellow);
    background: var(--udec-blue);
}

.resource-btn:hover i,
.resource-btn:hover span,
.resource-btn:hover small {
    color: white;
}

/* Colabora */
.collab-section {
    padding: 100px 10%;
    background: var(--udec-blue);
    color: white;
    text-align: center;
}

.collab-content {
    max-width: 750px;
    margin: 0 auto;
}

.collab-content h2 {
    font-family: 'Montserrat';
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--ras-yellow);
}

.collab-content p {
    margin-bottom: 35px;
    line-height: 1.8;
    font-weight: 300;
}

/* Footer */
footer {
    padding: 60px 10%;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    align-items: center;
}

.f-logo {
    height: 50px;
}

.copy {
    font-size: 0.8rem;
    margin-top: 20px;
    opacity: 0.5;
}

/* ========================================================== 
   ESTILOS AGENDA DINÁMICA (NUEVO)
   ========================================================== */
.events-section {
    padding: 80px 10%;
    background: #f9f9f9;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.event-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--ras-yellow);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card h3 {
    color: var(--udec-blue);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.event-card .meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.event-card .meta i {
    color: var(--ras-yellow);
    margin-right: 5px;
}

.event-card p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-event {
    display: inline-block;
    padding: 8px 20px;
    background: var(--udec-blue);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-event:hover {
    background: var(--ras-yellow);
    color: var(--udec-blue);
}

/* Formulario Admin */
.admin-panel {
    background: white;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #eee;
    max-width: 800px;
    margin: 0 auto;
}

.admin-panel h3 {
    color: var(--udec-blue);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 15px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    height: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .advisor-card {
        flex-direction: column;
    }

    .advisor-img-frame,
    .advisor-info {
        width: 100%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 21px;
    }

    .form-group {
        flex-direction: column;
        gap: 0;
    }
}