/* Reset básico y configuración global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f9f9f9;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    padding: 20px;
}

/* Contenedor principal del certificado */
.certificate-container {
    max-width: 900px;
    margin: auto;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Encabezado del certificado */
.certificate-header {
    text-align: center;
    border-bottom: 2px solid #673DE6;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.certificate-header .logo {
    width: 120px;
    margin-bottom: 15px;
}

.certificate-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    letter-spacing: 2px;
    color: #333;
}

/* Secciones */
.section {
    margin-bottom: 30px;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #673DE6;
    border-bottom: 1px solid #673DE6;
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-content {
    line-height: 1.6;
    font-size: 16px;
}

/* ---- ESTILO DE LA TABLA DE DATOS DE GRABACIÓN ---- */
.section.recording-data table {
    width: 100%;
    border: 1px solid #ddd;       /* Borde exterior de la tabla */
    border-collapse: collapse;    /* Quita el espacio entre celdas */
    margin-top: 20px;
    background-color: #fff;
    font-size: 16px;
}

.section.recording-data th,
.section.recording-data td {
    border: 1px solid #ddd;       /* Bordes de cada celda */
    padding: 12px 15px;
}

/* Cabecera de la tabla */
.section.recording-data th {
    background-color: #673DE6;
    color: #fff;
    text-align: left;
    font-weight: bold;
    width: 200px; /* Ajusta el ancho de la columna de encabezado */
}

/* Filas pares con fondo alterno para mayor legibilidad */
.section.recording-data tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Botones */
.button-group {
    text-align: center;
    margin-top: 40px;
}

.btn {
    display: inline-block;
    background-color: #673DE6;
    color: #fff;
    padding: 12px 25px;
    margin: 5px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #562dcf;
}

.btn.disabled {
    background-color: #999;
    pointer-events: none;
}

/* Responsividad */
@media (max-width: 600px) {
    .certificate-container {
        padding: 20px;
    }

    .certificate-header h1 {
        font-size: 28px;
    }

    .section h2 {
        font-size: 18px;
    }

    .section-content {
        font-size: 14px;
    }

    .btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    /* Ajustar tabla para pantallas pequeñas */
    .section.recording-data th {
        width: auto;
    }
}
