/* Estilos generales */
body {
    margin: 0;
    padding: 0;
    color: #333;
    background: #f2f2f2;
    font-size: 1em;
    line-height: 1.5em;
    padding-top: 120px; /* Ajustado para la cabecera fija */
}

h1 {
    font-size: 2.3em;
    line-height: 1.3em;
    margin: 15px 0;
    text-align: center;
    font-weight: 300;
}

p {
    margin: 0 0 1.5em 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Cabecera */
#main-header {
    background:  #003731;  /*#003731*/
    color: white;
    height: 120px;
    width: 100%;
    left: 0;
    top: 0;
    position: fixed;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

#main-header a {
    color: white;
}

.header-logo{
    padding: -10px 0 0 0px;
}

#logo-header {
    float: left;
    padding: 10px 0 0 -10px;
    text-decoration: none;
}

#logo-header:hover {
    color: #0b76a6;
}

#logo-header img {
    max-width: 380px;
    height: auto;
    display: block;
}

nav {
    float: right;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    padding-right: 20px;
    display: flex;
    align-items: center;
}

nav ul li {
    display: inline-block;
    line-height: 80px;
    margin-right: 15px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    display: block;
    padding: 0 10px;
    text-decoration: none;
}

nav ul li a:hover {
    background: #00594d;
}

/* Botones con iconos */
.icon-button {
    width: 25px;
    height: 25px;
    background-size: cover;
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
    background-color: transparent;
}

/* Iconos de redes sociales */
.facebook-icon {
    background-image: url('../imagenes/iconos/facebook.png');
}

.instagram-icon {
    background-image: url('../imagenes/iconos/instagram.png');
}

.x-icon {
    background-image: url('../imagenes/iconos/x.png');
}

.menu-icon {
    background-image: url('../imagenes/iconos/menu.png');
}

.panel-app {
    display: none;
    position: absolute;
    background-color: #00594d; /*#00493f;*/
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: max-height 0.5s ease, opacity 0.5s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 999;
    width: 210px; /* Tamaño fijo para el ancho del panel */
    height: 250px; /* Tamaño fijo para el alto del panel */

}


/* Mostrar panel con transición */
.panel-app.show {
    display: block;
    max-height: 250px; /* Ajustar según el tamaño */
    opacity: 1;
}

/* Imagen del panel */
.panel-image {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
}

/* Botones de redes sociales */
.header-buttons-redes {
    background-color: #003731;  /*#003731*/
    text-align: right;
}

.header-buttons-redes a {
    margin: 2px;
    display: inline-block;
}

.btn-descargar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: white;
    background-color:  #00594d; /*#00493f;*/
    border: 2px solid white;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-descargar:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-descargar img {
    margin-right: 8px;
    width: 24px;
    height: 24px;
}

.panel-app p {
    text-align: center;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .panel-app {
        /* Sin cambios en el ancho para que se ajuste al contenedor */
        height: auto; /* Altura automática en pantallas pequeñas */
        display: flex; /* Flexbox para alinear los botones horizontalmente */
        flex-direction: column; /* Colocar los botones en columna */
        align-items: center; /* Centrar los elementos en el panel */
    }
    
    .panel-app p {
        display: none; /* Ocultar el texto cuando la pantalla es pequeña */
    }
    
    .btn-descargar {
        margin: 5px 0; /* Espaciado vertical entre botones */
        width: auto; /* Ajustar el ancho del botón para el contenido */
    }

    #logo-header img {
        max-width: 220px; /* Ajustar el tamaño del logo */
    }

    nav ul {
        padding-right: 10px;
    }

    .btn-descargar img {
        width: 20px; /* Ajustar el tamaño del icono en el botón */
        height: 20px;
    }
}
