/* -------------------------------------------
   ESTILOS GENERALES DE LA PÁGINA
-------------------------------------------- */
body {
    font-family: Arial, sans-serif;     /* Fuente principal */
    background: #fafafa;                /* Color de fondo general */
    color: #222;                        /* Color de texto general */
    margin: 20px;                       /* Margen externo de la página */
}

h1 {
    text-align: center;                /* Centrado del título principal */
    margin-bottom: 15px;              /* Espacio debajo del título */
}

/* -------------------------------------------
   CONTENEDOR DE FILTROS (tónica y tipo de acorde)
-------------------------------------------- */
.filtros {
    width: 700px;                      /* Ancho del contenedor */
    margin: 0 auto 20px auto;          /* Centrado horizontal + espacio inferior */
    padding: 10px 20px;                /* Relleno interno */
    background: #eee;                  /* Color de fondo */
    border-radius: 8px;                /* Bordes redondeados */
    display: flex;                     /* Diseño en línea flexible */
    justify-content: center;          /* Centrado de los elementos internos */
    gap: 15px;                         /* Separación entre filtros */
}

.filtros label {
    font-weight: bold;                 /* Etiquetas en negrita */
}

.filtros select {
    padding: 5px;                      /* Espaciado interno */
    font-size: 14px;                   /* Tamaño de fuente */
    border-radius: 5px;                /* Bordes redondeados */
    border: 1px solid #ccc;            /* Borde gris claro */
}

/* -------------------------------------------
   DIAPASÓN PRINCIPAL (vista horizontal con trastes)
-------------------------------------------- */
.diapason {
    width: 100%;                       /* Ocupa todo el ancho disponible */
    height: 300px;                     /* Altura del diapasón */
    margin: 15px auto;                 /* Separación exterior */
    background: #fff;                  /* Fondo blanco */
    border: 1px solid #aaa;            /* Borde gris medio */
    border-radius: 6px;                /* Bordes redondeados */
    position: relative;                /* Posicionamiento relativo para elementos hijos */
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1); /* Sombra ligera */
    overflow: hidden;                  /* Oculta desbordes */
}

/* Borde especial azul para el diapasón principal */
.diapason-principal {
    box-shadow: 0 0 12px #2980b9;      /* Brillo azul */
    border: 2px solid #2980b9;         /* Borde azul */
}

/* -------------------------------------------
   MINI DIAPASONES (vista compacta para grados III y V)
-------------------------------------------- */
.mini {
    width: 320px;                      /* Ancho fijo */
    height: 100px;                     /* Altura más baja */
    margin: 15px auto;                 /* Centrado con separación */
    background: #fff;                  /* Fondo blanco */
    border: 1px solid #ccc;            /* Borde gris claro */
    border-radius: 8px;                /* Bordes redondeados */
    position: relative;                /* Para posicionar notas o cuerdas dentro */
    box-shadow: 1px 1px 6px rgba(0,0,0,0.15); /* Sombra leve */
}

/* -------------------------------------------
   CUERDAS DE LA GUITARRA (líneas horizontales)
-------------------------------------------- */
.cuerda {
    display: flex;                     /* Diseño flexible para los trastes */
    justify-content: space-between;   /* Espaciado uniforme entre trastes */
    margin: 6px 0;                     /* Separación vertical entre cuerdas */
    height: 14px;                      /* Altura base de la cuerda */
    position: relative;               /* Posicionamiento relativo para círculos */
    border-radius: 10px;              /* Bordes suavizados */
}

/* Estilos individuales por cuerda (color y grosor) */
.cuerda-0 { background: #e70909; height: 3.5px; }  /* 1ª cuerda (mi agudo) */
.cuerda-1 { background: #a0522d; height: 3px; }    /* 2ª cuerda (si) */
.cuerda-2 { background: #0a9c2a; height: 2.5px; }  /* 3ª cuerda (sol) */
.cuerda-3 { background: #cd853f; height: 2.3px; }  /* 4ª cuerda (re) */
.cuerda-4 { background: #deb887; height: 2px; }    /* 5ª cuerda (la) */
.cuerda-5 { background: #0e0901; height: 1.7px; }  /* 6ª cuerda (mi grave) */

/* -------------------------------------------
   TRASTES (líneas verticales dentro de cada cuerda)
-------------------------------------------- */
.traste {
    flex: 1;                          /* Cada traste ocupa el mismo ancho */
    border-left: 1px solid #ccc;     /* Línea divisoria izquierda */
    position: relative;              /* Para ubicar notas en su interior */
    display: flex;                   /* Permite centrar contenido */
    justify-content: center;        /* Centrado horizontal */
    align-items: center;            /* Centrado vertical */
}

.traste:first-child {
    border-left: none;              /* El primer traste no tiene línea izquierda */
}

/* -------------------------------------------
   PUNTOS (INLAYS) EN TRASTES 3, 5, 7, 9, 12, etc.
-------------------------------------------- */
.inlay {
    background: #bbb;                /* Color gris claro */
    border-radius: 50%;             /* Forma circular */
    width: 8px; height: 8px;        /* Tamaño del punto */
    position: absolute;
    left: 50%; top: 50%;            /* Centro del traste */
    transform: translate(-50%, -50%);
}

/* Doble punto (por ejemplo en traste 12) */
.inlay-double {
    background: #bbb;
    border-radius: 50%;
    width: 12px; height: 12px;
    position: absolute;
    left: 33%; top: 50%;
    transform: translate(-50%, -50%);
}

.inlay-double::after {
    content: '';
    position: absolute;
    background: #bbb;
    border-radius: 50%;
    width: 12px; height: 12px;
    left: 67%; top: 50%;
    transform: translate(-50%, -50%);
}

/* -------------------------------------------
   CÍRCULOS QUE INDICAN NOTAS SOBRE EL DIAPASÓN
-------------------------------------------- */
.nota {
    position: relative;
    width: 20px; height: 20px;
    border-radius: 50%;            /* Forma redonda */
    color: #fff;                   /* Letra blanca */
    font-size: 12px;
    text-align: center;
    line-height: 20px;             /* Centra verticalmente el texto */
    font-weight: bold;
    box-shadow: 0 0 4px rgba(0,0,0,0.3); /* Sombra */
    cursor: default;
    user-select: none;
    z-index: 5;
    transition: transform 0.2s ease; /* Animación al hacer hover */
}

.nota:hover {
    transform: scale(1.1);         /* Efecto zoom al pasar el mouse */
}

/* Colores por nota (do, do#, re, etc.) */
.nota-C { background: #e74c3c; }
.nota-Cs { background: #c0392b; }
.nota-D { background: #f39c12; }
.nota-Ds { background: #d35400; }
.nota-E { background: #f1c40f; color: #222; }  /* Texto negro por contraste */
.nota-F { background: #2ecc71; }
.nota-Fs { background: #27ae60; }
.nota-G { background: #3498db; }
.nota-Gs { background: #2980b9; }
.nota-A { background: #9b59b6; }
.nota-As { background: #8e44ad; }
.nota-B { background: #34495e; }

/* -------------------------------------------
   NÚMEROS DE TRASTE
-------------------------------------------- */
.traste-numero {
    display: inline-block;
    width: 30px;
    text-align: center;
    font-size: 12px;
    color: #555;
    margin: 0 2px;
}

/* -------------------------------------------
   SECCIÓN DE ACORDES RELACIONADOS (III y V)
-------------------------------------------- */
.relacionados {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.relacion {
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.relacion a {
    text-decoration: none;
    color: inherit;
}

.relacion a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* -------------------------------------------
   FORMULARIO PARA SELECCIONAR ACORDE
-------------------------------------------- */
.formulario-acorde {
    text-align: center;
    margin: 30px auto;
}

.formulario-acorde form {
    display: inline-block;
    background: #fdfdfd;
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    font-family: sans-serif;
}

.formulario-acorde label {
    margin: 0 8px;
    font-weight: bold;
    color: #333;
}

.formulario-acorde select {
    padding: 6px 10px;
    margin: 0 10px;
    border: 1px solid #aaa;
    border-radius: 6px;
    background-color: #fff8f0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border 0.3s, box-shadow 0.3s;
}

.formulario-acorde select:focus {
    border-color: #c4823d;
    box-shadow: 0 0 5px rgba(196, 130, 61, 0.5);
    outline: none;
}

.formulario-acorde button {
    padding: 8px 16px;
    margin-left: 10px;
    background-color: #c4823d;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.formulario-acorde button:hover {
    background-color: #a5652a;
    transform: scale(1.03);
}

/* -------------------------------------------
   TÍTULO QUE MUESTRA EL ACORDE ACTUAL
-------------------------------------------- */
.titulo-acorde {
    text-align: center;
    font-size: 24px;
    margin-top: 30px;
    color: #333;
    font-family: sans-serif;
}

/* -------------------------------------------
   BOTÓN PARA CERRAR LA VISUALIZACIÓN
-------------------------------------------- */
.btn-cerrar {
    background-color: #ff5252;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(255, 82, 82, 0.4);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-cerrar:hover {
    background-color: #ff7979;
    box-shadow: 0 6px 12px rgba(255, 121, 121, 0.6);
}

/* Centrado del botón de cerrar */
.centrar-boton {
    text-align: center;
    margin-top: 20px;
}
.grado-tonica {
    border: 3px solid #00aaff;
    background-color: #e6f7ff;
    border-radius: 10px;
    padding: 8px;
}
.grado-tonica div.titulo {
    color: #0077cc;
    font-weight: bold;
}
/* estilos del archivo ingrGuitarra.php*/

    .container {
      text-align: center;
    }
    .button-container {
      display: flex;
      gap: 20px;
      justify-content: center;
      margin-top: 20px;
      
    }
    .button {
      background-color: #4CAF50;
      border: none;
      color: white;
      padding: 20px;
      text-align: center;
      text-decoration: none;
      display: inline-block;
      font-size: 18px;
      border-radius: 10px;
      cursor: pointer;
      width: 200px;
      transition: transform 0.2s;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .button:hover {
      transform: scale(1.05);
    }
    .button img {
      display: block;
      margin: 0 auto 10px;
      width: 100px;
      height: 100px;
    }