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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

/* Navegación */
.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.2rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: #34495e;
}

.btn-login-nav {
    background-color: #3498db;
    padding: 0.5rem 1.5rem !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Botones */
.btn-primary {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    display: inline-block;
    background-color: #95a5a6;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-edit {
    background-color: #f39c12;
    color: white;
    padding: 0.4rem 1rem;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
    display: inline-block;
    margin-right: 5px;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
    padding: 0.4rem 1rem;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
    display: inline-block;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
    padding: 0.4rem 1rem;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
    display: inline-block;
}

/* Sección de Imagen del Laboratorio */
.lab-image-section {
    padding: 4rem 0;
    background-color: #ecf0f1;
}

.lab-image-container {
    position: relative;
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.lab-image-container:hover {
    transform: scale(1.01);
}

.lab-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.lab-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
    padding: 3rem 2rem 2rem 2rem;
}

.lab-image-overlay h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.lab-image-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Features */
.features {
    padding: 4rem 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.feature-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.feature-card h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

/* Page Content */
.page-content {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.page-content h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.info-section {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

.info-section ul {
    margin-left: 2rem;
}

.info-section li {
    margin-bottom: 0.5rem;
}

/* Secciones de información con imágenes */
.info-grid-with-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-section-with-image {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.info-section-with-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.info-section-with-image.large {
    grid-column: 1 / -1;
}

.info-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.info-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.info-section-with-image:hover .info-image {
    transform: scale(1.05);
}

.info-content {
    padding: 2rem;
}

/* Estilos especiales para las secciones con íconos SVG (precios.php) */
.info-section-with-image.with-icon {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.info-section-with-image.with-icon .info-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border-radius: 50%;
    padding: 25px;
    transition: transform 0.3s ease;
}

.info-section-with-image.with-icon .info-image svg {
    width: 100%;
    height: 100%;
    stroke: white;
    stroke-width: 2;
}

.info-section-with-image.with-icon .info-content {
    flex: 1;
    padding: 0;
}

.info-content h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.info-content ul {
    margin-left: 1.5rem;
    color: #555;
}

.info-content li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.pricing-card.featured {
    border: 3px solid #3498db;
    transform: scale(1.05);
}

.pricing-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    color: #3498db;
    font-weight: bold;
    margin: 1rem 0;
}

.pricing-card ul {
    list-style: none;
    margin-top: 1.5rem;
}

.pricing-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.contact-info,
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    color: #3498db;
    display: block;
    margin-bottom: 0.5rem;
}

/* Mapa */
.map-section {
    margin-top: 3rem;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.map-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}

.map-container iframe {
    display: block;
}

.map-info {
    text-align: center;
    padding: 1rem 0;
}

.map-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.map-info .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.85), rgba(44, 62, 80, 0.85)),
                url('https://images.unsplash.com/photo-1628595351029-c2bf17511435?w=1920&h=1080&fit=crop') center/cover no-repeat;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.login-box {
    background-color: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.login-box h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.btn-login {
    width: 100%;
    background-color: #3498db;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #2980b9;
}

.back-link {
    text-align: center;
    margin-top: 1rem;
}

.back-link a {
    color: #3498db;
    text-decoration: none;
}

/* Forms */
.form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.form-container h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 20px;
    color: #7f8c8d;
    pointer-events: none;
    z-index: 1;
}

.input-with-icon input {
    padding-left: 45px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

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

.form-note {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 1rem;
}

/* Tables */
.table-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.table-container h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background-color: #3498db;
    color: white;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Dashboard */
.dashboard {
    padding: 3rem 0;
}

.dashboard h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

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

.dashboard-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.dashboard-card:hover .card-icon {
    transform: scale(1.1);
}

.card-icon svg {
    width: 45px;
    height: 45px;
    stroke: white;
}

.dashboard-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

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

.stat-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
}

.stat-card h4 {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.stat-number {
    font-size: 2.5rem;
    color: #3498db;
    font-weight: bold;
}

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

.info-item strong {
    color: #3498db;
    display: block;
    margin-bottom: 0.3rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-pagado {
    background-color: #2ecc71;
    color: white;
}

.badge-pendiente {
    background-color: #e74c3c;
    color: white;
}

.badge-aprobado {
    background-color: #2ecc71;
    color: white;
}

.badge-reprobado {
    background-color: #e74c3c;
    color: white;
}

/* Messages */
.success-message {
    background-color: #2ecc71;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.error-message {
    background-color: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

/* Promedio */
.promedio-section {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 2rem;
}

.promedio-number {
    color: #3498db;
    font-size: 2rem;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Reportes */
.reportes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.reporte-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.reporte-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.reporte-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.reporte-buttons {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.btn-excel, .btn-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-excel {
    background-color: #27ae60;
    color: white;
}

.btn-excel:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-pdf {
    background-color: #e74c3c;
    color: white;
}

.btn-pdf:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-excel span, .btn-pdf span {
    font-size: 1.2rem;
}

/* Badges adicionales */
.badge-maestro {
    background-color: #3498db;
    color: white;
}

.badge-alumno {
    background-color: #9b59b6;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .contact-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .lab-image-overlay h3 {
        font-size: 1.5rem;
    }

    .lab-image-overlay p {
        font-size: 1rem;
    }

    .lab-image-overlay {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }

    .info-grid-with-images {
        grid-template-columns: 1fr;
    }

    .info-image-container {
        height: 200px;
    }

    .info-content {
        padding: 1.5rem;
    }

    .info-content h3 {
        font-size: 1.3rem;
    }

    .map-container iframe {
        height: 300px;
    }

    .map-section h3 {
        font-size: 1.5rem;
    }

    .map-info p {
        font-size: 1rem;
    }

    .info-section-with-image {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .info-image {
        width: 100px;
        height: 100px;
        padding: 20px;
    }

    .info-content h3 {
        font-size: 1.3rem;
    }
}
