body {
    background-color: #f0f0f0;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

.container {
    display: grid;
    grid-template-columns: repeat(4, 150px);
    grid-template-rows: repeat(4, 100px);
    gap: 20px;
    margin: 20px auto;
    max-width: 650px;
}

.summary {
    border-radius: 10px;
    padding: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s ease; /* Transición para la sombra */
}

.summary:hover {
    box-shadow: 4px 4px 8px rgb(0 176 160 / 18%);
}

.summary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary span {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: x-large;
    transition: font-size 0.3s ease; /* Transición para el tamaño del texto */
}

.summary span:hover {
    font-size: 1.6em; /* Texto ligeramente más grande al pasar el cursor */
}

.social-icon {
    max-width: 50px;
    cursor: pointer;
    display: inline-block;
    margin: 0 5px;
}

.redes-icon {
  max-width: 42px;
  max-height: 42px;
}
.logo-popup{
	max-width: 7rem;
}

/* Posiciones de la cuadrícula para cada summary */
#logo-container {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

#vid4way-container {
    grid-column: 3 / 5;
    grid-row: 1 / 4;
}

#servicios-container {
    grid-column: 1 / 3;
    grid-row: 2 / 4;
}

#agrowarts-container {
    grid-column: 2 / 2;
    grid-row: 1 / 2;
}

#relatos-container {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
}

#bioconvivencia-container {
    grid-column: 2 / 4;
    grid-row: 4 / 5;
}

#redes-container {
    grid-column: 4 / 5;
    grid-row: 4 / 5;
}

/* Estilos para el contenedor del popup inyectado */
#popup-container .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0; /* Empieza invisible para la animación */
    visibility: hidden; /* Empieza oculto */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#popup-container .popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

#popup-container .popup-content {
    position: relative;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: scale(0.9); /* Para un efecto de aparición */
    transition: transform 0.3s ease;
}

#popup-container .popup-overlay.visible .popup-content {
    transform: scale(1);
}

/* Estilo del botón de cierre (la 'X') */
#popup-container .close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

#popup-container .close-button:hover {
    color: #333;
}

.social-live-portal{
	max-width: 11rem;
    display: inline-block;
    gap: 1rem;
	height: 3rem;
    width: 3rem;
}


/* Estilo general para la tabla */
.styled-table {
    border-collapse: collapse; /* Une los bordes de las celdas */
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    width: 100%;
}

/* Estilo para el encabezado de la tabla */
.styled-table thead tr {
    background-color: #0098a1;
    color: #ffffff;
    text-align: center;
}

/* Estilo para las celdas (th y td) */
.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

/* Estilo para las filas del cuerpo de la tabla (tbody) */
.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

/* --- COLORES INTERCALADOS --- */
/* Selecciona las filas impares (1, 3, 5) */
.styled-table tbody tr:nth-child(odd) {
    background-color: #c7fff7;
}

/* Selecciona las filas pares (2, 4, 6) */
.styled-table tbody tr:nth-child(even) {
    background-color: #9bfff6;
}

.Desktoff{
	display: none;
}

/* Estilos para tablet */
@media screen and (max-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

/* Estilos para móvil */
@media screen and (max-width: 480px) {
    body {
        min-height: auto;
        overflow: auto;
        display: block;
    }

    .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 10px;
        margin: 10px;
        max-width: 100%;
    }

    /* Definir las posiciones de la cuadrícula para cada elemento en móvil */
    #logo-container {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    #agrowarts-container {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    #vid4way-container {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
    }

    #servicios-container {
        grid-column: 1 / 3;
        grid-row: 3 / 4;
    }

    #bioconvivencia-container {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }

    #relatos-container {
        grid-column: 2 / 3;
        grid-row: 4 / 5;
    }

    #redes-container {
        grid-column: 1 / 3;
        grid-row: 5 / 6;
    }

    .summary {
        height: 130px;
    }

    .summary span {
        padding: 5px 10px;
    }

    .redes-icon {
        max-width: 60px;
        max-height: 60px;
    }
}
