/* ======= Layout general ======= */
body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* ======= Encabezado y navegación ======= */
header {
    background-color: #002b45;
    color: white;
    padding: 20px;
    text-align: center;
}
header h1 {
    margin: 0 0 10px;
}
nav {
    background-color: #004870;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 15px;
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    background-color: #0066a1;
    border-radius: 5px;
}
nav a:hover {
    background-color: #0084cc;
}

/* ======= Contenido principal ======= */
.contenido {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

/* ======= Galería de imágenes (CC.php) ======= */
.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}
.eintrag {
    text-align: center;
}
.eintrag img {
    width: 270px;
    height: 375px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s;
}
.eintrag img:hover {
    border-color: #333;
}
.titel {
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* ======= Redes sociales ======= */
.sociales {
    margin-top: 40px;
    text-align: center;
}
.sociales a {
    margin: 0 10px;
    font-size: 28px;
    color: #004870;
    transition: color 0.3s;
}
.sociales a:hover {
    color: #0077cc;
}

/* ======= Footer ======= */
footer {
    margin-top: 40px;
    padding: 20px;
    background-color: #eee;
    text-align: center;
    font-size: 0.9rem;
}
nav a.activo {
    background-color: #ffaa00;
    color: black;
}
.ReSpBlock {
    margin: 30px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    max-width: 800px;
    background-color: #fefefe;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.ReSpUeber {
    background-color: #004870;
    color: white;
    padding: 10px;
    margin-bottom: 10px;
    font-weight: bold;
    border-radius: 5px;
}
.buque-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.buque-item {
    width: 200px;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background-color: #f0f0f0;
    transition: transform 0.2s;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.buque-item:hover {
    transform: scale(1.03);
}

.buque-item img {
    width: 100px;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

.con-historia {
    border: 2px solid #007BFF;
    background-color: #e6f0ff;
}

.sin-historia {
    opacity: 0.5;
    font-style: italic;
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
}

.buque-nombre {
    font-weight: bold;
}

.nombre-anterior {
    font-size: 0.9em;
    color: #555;
}
.buques-tabla {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.buques-tabla th, .buques-tabla td {
    border: 1px solid #ddd;
    padding: 8px;
}

.buques-tabla th {
    background-color: #f2f2f2;
    text-align: left;
}

.buque-enlace {
    color: blue;
    font-weight: bold;
    text-decoration: none;
}

.buque-enlace:hover {
    text-decoration: underline;
}
 /* ======= Estilos para CC-revistas.php ======= */

.revistas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.revista {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.revista:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
}

.revista img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s;
}

.revista-titulo {
    padding: 10px;
    font-weight: bold;
    color: #004870;
    font-size: 1rem;
    min-height: 60px;
}

.revista a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ======= Tooltip con preview al pasar el ratón ======= */
.revista:hover .preview {
    opacity: 1;
    pointer-events: auto;
}

.preview {
    position: absolute;
    top: -5px;
    left: 105%;
    z-index: 10;
    width: 240px;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.preview img {
    width: 100%;
    height: auto;
    display: block;
}
.revista-lista {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.revista-item {
    width: 200px;
    text-align: center;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.revista-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.revista-item img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
}

.revista-item span {
    display: block;
    padding: 10px;
    font-weight: bold;
    color: #003366;
}

.destacada {
    border: 2px solid #0066cc;
    background-color: #e6f3ff;
}

.destacada span {
    color: #0066cc;
}
.link-block {
    margin: 2rem 0;
    padding: 1rem;
    border-left: 5px solid #003366;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.link-block h2 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #003366;
}

.link-block ul {
    list-style: none;
    padding-left: 0;
}

.link-block ul li {
    margin: 0.5rem 0;
}

.link-block ul li a {
    color: #004080;
    text-decoration: none;
    transition: color 0.3s;
}

.link-block ul li a:hover {
    color: #0066cc;
    text-decoration: underline;
}
.center-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style-type: none;
    padding: 0;
}

.center-links li {
    margin: 0.4em 0;
}

.center-links a {
    text-decoration: none;
    font-size: 1.1em;
    color: #003366;
}

.center-links a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.contenido-centrado {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

.link-block ul {
    list-style: none;
    padding: 0;
}

.link-block ul li {
    margin: 10px 0;
}

.link-block a {
    text-decoration: none;
    color: #003366;
    font-weight: bold;
}

.link-block a:hover {
    text-decoration: underline;
}

h1, h2 {
    margin-bottom: 15px;
}
#preview {
        position: absolute;
        display: none;
        border: 2px solid #333;
        background-color: white;
        padding: 4px;
        z-index: 100;
        max-width: 300px;
        max-height: 200px;
}        