* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    animation: fadeIn 1s ease-in-out;
}

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

h1 { font-size: 36px; font-weight: 700; }
h2 { font-size: 26px; font-weight: 600; }
h3 { font-size: 21px; font-weight: 600; }
p, body { font-size: 17px; font-weight: 400; }
nav a, .btn, button { font-size: 15.5px; font-weight: 500; }
small, .nota, .fecha-publicacion, footer { font-size: 13.5px; font-weight: 400; }

header {
    color: #e0e0e0;
    background-color: #c50000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo-header { width: 55px; height: 55px; }

nav {
    background-color: #000;
    box-shadow: inset 0 -2px 5px rgba(255,255,255,0.1);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li { margin: 0; }

nav a {
    display: block;
    color: #e0e0e0;
    padding: 16px 22px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
}

nav a:hover, nav a:focus {
    background-color: #ff0000;
    color: #fff;
    outline: none;
}

main, section, article {
    padding: 25px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

footer {
    background-color: #000;
    color: #aaa;
    text-align: center;
    padding: 20px 30px;
    font-size: 0.9rem;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.footer-description {
    color: #ccc;
    font-size: 1rem;
    margin: 5px 0 0 0;
}

.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
}

.slider-container {
    position: relative;
    margin: -20px -30px 30px -30px;
    width: calc(100% + 60px);
    height: 400px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    background-color: #000;
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #000;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.prev { left: 10px; }
.next { right: 10px; }

.btn:hover { background-color: rgba(255,0,0,0.8); }

#titulo-informes, #titulo-administracion {
    background-color: #000;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    margin: -25px 0 25px 0;
    padding: 5px 0;
}

#titulo-informes h2, #titulo-administracion h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    padding: 10px 0;
}

#form-informe {
    background-color: #f7f7f7;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-color: #c50000;
    outline: none;
}

.btn-guardar {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-guardar:hover { background-color: #c50000; }

.informe {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.informe h3 {
    color: #c50000;
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.informe p.fecha-publicacion {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-eliminar {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s;
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.btn-eliminar:hover { background-color: #c82333; }

.login-main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.login-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    width: 300px;
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #003366;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-container button:hover { background-color: #ff0000; }

.error-msg { color: red; display: none; margin-top: 10px; }

.contact-section { padding: 25px; margin-bottom: 30px; }

.contact-info { padding-left: 10px; }

.campo-form { margin-bottom: 15px; }

.campo-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.campo-form input, .campo-form select, .campo-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.map-container { margin-bottom: 20px; }

.map-container iframe { width: 100%; height: 300px; border: 0; }

.progress-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
    margin: 20px 0;
    text-align: center;
}

.progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    color: #000;
    background: conic-gradient(#c50000 calc(var(--value)*1%), #e0e0e0 0);
    --value: 0;
    animation: fillProgress 1.8s ease forwards;
}

.progress-circle::before { content: attr(data-progress) "%"; position: absolute; }

@keyframes fillProgress { to { --value: var(--target); } }

.timeline, .timeline-v2 {
    width: 90%;
    max-width: 900px;
    margin: 50px auto;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid #c50000;
}

.timeline-item, .timeline-item-v2 {
    margin: 30px 0;
    position: relative;
    padding-left: 25px;
    opacity: 0;
    transform: translateX(-10px);
    animation: fadeInTimeline .8s ease forwards;
}

.timeline-item-v2:nth-child(even) { animation-delay: .2s; }
.timeline-item-v2:nth-child(odd) { animation-delay: .4s; }

.timeline-dot, .timeline-item-v2 .timeline-dot {
    width: 15px;
    height: 15px;
    background-color: #c50000;
    border-radius: 50%;
    position: absolute;
    left: -11px;
    top: 5px;
}

.timeline-item-v2.destacado .timeline-dot {
    width: 20px;
    height: 20px;
    background-color: #000;
    border: 3px solid #c50000;
    left: -15px;
}

.timeline-item-v2.destacado p strong { color: #c50000; }

.timeline-year { font-weight: bold; font-size: 18px; color: #c50000; margin-bottom: 5px; display: block; }

.timeline-item::before {
    content: "";
    position: absolute;
    left: -13px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #c50000;
    box-shadow: 0 0 10px rgba(197,0,0,0.6);
}

.timeline-content {
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #c50000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.14);
}

.jubilados-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 40px auto;
    max-width: 900px;
}

.jubi-card {
    background: #111;
    border-radius: 15px;
    padding: 25px;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: 0.4s ease;
    border: 1px solid #222;
}

.jubi-card h3 { margin-bottom: 10px; color: #c50000; font-size: 1.4rem; }
.jubi-card p { font-size: 1rem; line-height: 1.4; }

.jubi-card::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: linear-gradient(0deg, transparent, transparent 40%, rgba(197,0,0,0.35));
    transform: rotate(-45deg);
    opacity: 0;
    transition: 0.5s ease;
}

.jubi-card:hover { transform: scale(1.03); box-shadow: 0 0 20px rgba(197,0,0,0.45); }
.jubi-card:hover::before { opacity: 1; transform: rotate(-45deg) translateY(100%); }

.holo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; padding: 40px 0; }

.holographic-card {
    background: #111;
    border: 2px solid #c50000;
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    box-shadow: 0 0 10px rgba(197,0,0,0.3);
}

.holographic-card h2 { color: #fff; font-size: 1.8rem; position: relative; z-index: 2; }

.holographic-card::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -60%;
    left: -60%;
    background: linear-gradient(90deg, transparent, rgba(255,0,0,0.25), transparent);
    transform: rotate(-40deg);
    opacity: 0;
    transition: 0.4s;
}

.holographic-card:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(197,0,0,0.6); }
.holographic-card:hover::before { opacity: 1; transform: rotate(-40deg) translateY(60%); }

.actividad-card { width: 350px; height: 220px; perspective: 1000px; position: relative; }
.actividad-inner { width: 100%; height: 100%; position: absolute; transition: transform 0.8s; transform-style: preserve-3d; }

.actividad-card:hover .actividad-inner { transform: rotateY(180deg); }

.actividad-front, .actividad-back {
    color: #fff;
    border-radius: 15px;
    padding: 25px 0 0 0;
    backface-visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.actividad-front { background: linear-gradient(135deg, #FFB84D, #FF8C00); box-shadow: 0 0 15px rgba(255,165,50,0.5); }
.actividad-back { background: linear-gradient(135deg, #6FB8FF, #337AFF); transform: rotateY(180deg); box-shadow: 0 0 15px rgba(50,120,255,0.5); }

.actividad-front h3, .actividad-back h3 { font-size: 1.3rem; margin-top: 0; margin-bottom: 8px; }
.actividad-front p, .actividad-back p { font-size: 1rem; line-height: 1.4; margin-top: 2px; }

.grupos-front { background: linear-gradient(135deg, #fdd14c, #fcbc2c); box-shadow: 0 0 15px rgba(253,209,76,0.5); }
.grupos-back { background: linear-gradient(135deg, #3fee9b, #2bcf7e); box-shadow: 0 0 15px rgba(63,238,155,0.5); }

.actividades-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: nowrap;
}

.video-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.video-card {
    width: 90%;
    max-width: 900px;
    background: #111;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #222;
    box-shadow: 0 0 15px rgba(197,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover { transform: scale(1.02); box-shadow: 0 0 25px rgba(197,0,0,0.45); }

.video-card iframe { width: 100%; height: 450px; border-radius: 10px; border: none; }

@keyframes fadeInTimeline {
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    header { flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 10px; }
    nav ul { flex-direction: column; align-items: center; }
    nav a { padding: 10px 12px; font-size: 14px; }
    main, section, article { padding: 15px 20px; }
    h1 { font-size: 32px; } h2 { font-size: 24px; } h3 { font-size: 20px; }
    p, body { font-size: 16px; } small, .nota, .fecha-publicacion, footer { font-size: 13px; }
    .btn, button, .btn-guardar, .btn-eliminar { font-size: 14px; padding: 8px 12px; }

    .slider-container { width: 100%; height: 250px; margin-left: 0; margin-right: 0; }

    .video-card iframe { height: 240px; }

    .timeline, .timeline-v2 { padding-left: 15px; border-left-width: 3px; }
    .timeline-dot, .timeline-item-v2 .timeline-dot { width: 12px; height: 12px; left: -8px; }

    .actividades-row { flex-wrap: wrap; gap: 20px; }
    .actividad-card { width: 90%; max-width: 350px; margin: 15px auto; }

    .jubilados-grid, .holo-grid { grid-template-columns: 1fr; gap: 15px; padding: 0 10px; }
    .jubi-card, .holographic-card, .video-card { width: 90%; max-width: 350px; margin: 10px auto; }

    #form-informe, .login-container { padding: 20px; }
}

@media (max-width: 500px) {
    h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 18px; }
    nav a { font-size: 13px; padding: 8px 10px; }
    .btn, .btn-guardar, .btn-eliminar { font-size: 13px; padding: 6px 10px; }
    main, section, article { padding: 10px 15px; }
    .slider-container { height: 200px; }
    .video-card iframe { height: 180px; }
}
footer {
    background-color: #000;
    color: #fff;
    padding: 25px 20px;
}
footer a {
    color: #ffffff;        
    text-decoration: none;
    transition: 0.2s ease;
}

footer a:hover {
    color: #ff0000;
    text-decoration: underline;       
}

.footer-contenido {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}


.footer-left,
.footer-center,
.footer-right {
    flex: 1;
}


.footer-center {
    text-align: center;
}


.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
}


footer h3 {
    margin: 0 0 8px;
    font-size: 16px;
}


footer p,
footer a {
    margin: 3px 0;
    font-size: 14px;
}


.footer-copy {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 12px;
}
.ig-icon i {
    font-size: 32px;
    color: #ffffff;
    transition: 0.3s ease;
}

.ig-icon:hover i {
    background: linear-gradient(45deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.seccion-instagram {
    display: flex;
    justify-content: flex-start; 
    align-items: center;   
    padding: 0;
}

.icono-ig-centro i {
    font-size: 60px;
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: 0.3s ease;
}

.icono-ig-centro i:hover {
    transform: scale(1.15);
}
.boton-centro-section {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.boton-centro {
    display: flex;
    align-items: center;
    gap: 15px; 
    background: #1877f2;
    color: white;
    padding: 18px 35px;
    font-size: 22px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0px 6px 18px rgba(0,0,0,0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.boton-centro i {
    font-size: 32px;
}

.boton-centro:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0px 10px 25px rgba(0,0,0,0.28);
    background: #0f63c4;
}


