
/* Estilos generales */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon img {
    width: 50px;  /* ajusta según tu preferencia */
    height: auto; /* mantiene proporción */
    margin-right: 15px;
}


.logo-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin: 0;
    color: #1E3A8A;;
}

.logo-text span {
    font-size: 0.8rem;
    color: #666;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #1E3A8A;
    font-weight: 500;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 5px;
}

nav ul li a.active {
    color: #1E3A8A;;
    font-weight: 600;
}

.admin-btn {
    background-color: #1E3A8A;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.admin-btn i {
    margin-right: 5px;
}

/* Hero Section */
.hero {
    background-color: #1E3A8A;;
    color: white;
    padding: 120px 0 60px;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
}

.hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Sección de noticias */
.section-title {
    font-family: 'Montserrat', sans-serif;
    color: #1E3A8A;
    margin: 50px 0 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #1E3A8A;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-info {
    padding: 20px;
}

.news-info h3 {
    margin: 0 0 10px;
    font-family: 'Montserrat', sans-serif;
    color: #1E3A8A;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 15px;
    display: flex;
    align-items: center;
}

.news-date i {
    margin-right: 5px;
}

.news-excerpt {
    margin: 0 0 20px;
    color: #555;
}

.read-more {
    background-color: rgb(73, 61, 247);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color:#1E3A8A;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.admin-modal-content {
    width: 90%;
    max-width: 900px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    color: #000000;
}

.modal-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
    border-radius: 5px;
}

.modal-text {
    line-height: 1.8;
}

/* Panel de administración */
.admin-panel {
    padding: 20px;
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: all 0.3s;
}

.tab-btn.active {
    color:  #1E3A8A;
    border-bottom-color:  #1E3A8A;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.admin-news-list {
    max-height: 400px;
    overflow-y: auto;
}

.admin-news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.admin-news-item:last-child {
    border-bottom: none;
}

.admin-news-item h4 {
    margin: 0;
    flex: 1;
}

.admin-news-actions {
    display: flex;
    gap: 10px;
}

.notification {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.notification.info {
    background-color: #e7f4ff;
    color:  #1E3A8A;
}

.notification.success {
    background-color: #e8f8ef;
    color: #27ae60;
}

.notification.error {
    background-color: #fdecea;
    color: #e74c3c;
}

.notification.hidden {
    display: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
}

.form-group label i {
    margin-right: 8px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color:  #1E3A8A;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.file-input-btn {
    display: inline-block;
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.file-input-btn:hover {
    background-color: #eee;
}

.file-input-btn i {
    margin-right: 8px;
}

input[type="file"] {
    display: none;
}

.image-preview {
    height: 200px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.image-preview .placeholder {
    text-align: center;
    color: #999;
}

.image-preview .placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.user-controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn i {
    margin-right: 8px;
}

.btn-admin {
    background-color:  #1E3A8A;
    color: white;
}

.btn-admin:hover {
    background-color:  #1E3A8A;
}

.btn-logout {
    background-color: #e74c3c;
    color: white;
}

.btn-logout:hover {
    background-color: #c0392b;
}

.btn-cancel {
    background-color: #95a5a6;
    color: white;
}

.btn-cancel:hover {
    background-color: #7f8c8d;
}

.hidden {
    display: none;
}

/* Modal de confirmación */
.confirmation-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.confirmation-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
}

.confirmation-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Acciones de administrador */
.edit-btn, .delete-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.edit-btn i, .delete-btn i {
    margin-right: 5px;
}

.edit-btn {
    background-color:   #1E3A8A;
    color: white;
}

.edit-btn:hover {
    background-color:   #1E3A8A;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background-color: #c0392b;
}

/* Protección contra clic derecho */
.protection-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 9999;
    text-align: center;
}

.protection-message i {
    font-size: 2em;
    color: #e74c3c;
    margin-bottom: 10px;
}

.protection-message h3 {
    margin: 0 0 10px;
    color:  #1E3A8A;
}

.protection-message p {
    margin: 0 0 15px;
    color: #555;
}

.protection-message button {
    background-color:   #1E3A8A;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* Footer */
footer {
    background-color:  #1E3A8A;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-family: 'Montserrat', sans-serif;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color:#1857cc;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.footer-links a:hover {
    color:  #2769e4;
}

.footer-links i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid  #1857cc;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero {
        padding: 100px 0 40px;
        text-align: center;
    }
    
    .modal-content {
        width: 90%;
        margin: 20px auto;
        padding: 20px;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
    }
    
    .tab-btn.active {
        border-bottom: none;
        border-left-color:  #1857cc;
    }
    
    .form-actions, .user-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .admin-news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .admin-news-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ==== Sección de Material de Estudio ==== */
.books-section {
    padding: 60px 20px;
    background: #f9fcff;
    text-align: center;
}

.books-section .section-title {
    font-size: 2.2rem;
    color:  #1857cc;
    margin-bottom: 40px;
    font-weight: bold;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

.book-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.book-card img {
    width: 80%;
    height: auto;
    display: block;
    margin: 20px auto 0 auto;
}


.book-info {
    padding: 15px;
}

.book-info h3 {
    font-size: 1.2rem;
    color: #383232;
    margin-bottom: 8px;
}

.book-info p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 5px;
}

.book-info span {
    font-size: 0.9rem;
    color: #777;
}


/* === Docentes === */
.docentes-grid {
  display: grid;
  grid-template-columns: repeat(2, 220px);
  justify-content: center;
  gap: 24px;
  margin: 32px auto;
}

.docente {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.docente img {
  width: 110px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.docente h3 {
  font-size: 15px;
  margin-bottom: 4px;
}
 
.docente p {
  font-size: 0.9rem;
  color: #666;
}
.docente:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.titulo-docentes {
  text-align: center;
  margin-bottom: 24px;
  color:  #1857cc;
  

}


@media (max-width: 600px) {
  .docentes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}




/* === BOTÓN WHATSAPP FLOTANTE === */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  background-color: #25D366; /* Verde oficial WhatsApp */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  text-decoration: none;
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Efecto hover: más grande y verde más oscuro */
.wa-float:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  background-color: #20ba5a;
}

.wa-icon {
  width: 34px;
  height: 34px;
  fill: white;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 480px) {
  .wa-float {
    width: 56px;
    height: 56px;
    bottom: 15px;
    right: 15px;
  }
  .wa-icon {
    width: 30px;
    height: 30px;
  }
}
  





