/* Reset */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #fff0f6;
}

/* Navbar */
nav {
    background-color: #ff99cc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 15px;
}

nav a {
    text-decoration: none;
    background-color: #ff66b2;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #ff3385;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(255, 51, 133, 0.4);
}

/* Carta */
.carta {
    display: flex;
    max-width: 70%;
    margin: 50px auto; /* Centrar horizontalmente */
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Imagen en el lado izquierdo */
.carta-img {
    flex: 1;
}

.carta-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Texto en el lado derecho */
.carta-texto {
    flex: 1.5;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.carta-texto h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #ff3385;
}

.carta-texto p {
    font-size: 18px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Botón */
.btn-carta {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ff66b2;
    color: white;
    font-size: 16px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-carta:hover {
    background-color: #ff3385;
    transform: scale(1.1);
}

/* Contenedor de la tabla más pequeño */
.tabla-container {
    max-width: 70%; /* Antes 90% */
    margin: 40px auto;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow-x: auto;
}

/* Tabla */
.tabla-equipo {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

/* Encabezados */
.tabla-equipo thead th {
    background-color: #ff66b2;
    color: white;
    padding: 10px; /* Antes 15px */
    text-align: left;
    font-size: 16px; /* Antes 18px */
}

/* Filas */
.tabla-equipo td {
    padding: 10px; /* Antes 15px */
    font-size: 14px; /* Antes 16px */
    color: #444;
    vertical-align: top;
}

/* Alternar colores de filas */
.tabla-equipo tbody tr:nth-child(even) {
    background-color: #ffe6f0;
}

/* Ajuste para definiciones largas */
.tabla-equipo td:nth-child(3) {
    max-width: 400px; /* Antes 600px */
    text-align: justify;
}

/* Responsive */
@media (max-width: 768px) {
    .tabla-container {
        max-width: 95%;
    }
    .tabla-equipo thead {
        display: none;
    }
    .tabla-equipo tbody tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #f3cce1;
        border-radius: 10px;
        padding: 8px;
    }
    .tabla-equipo td {
        display: block;
        padding: 8px;
        text-align: left;
    }
}

/* Contenedor */
.tabla-container {
    max-width: 70%;
    margin: 40px auto;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow-x: auto;
}

/* Tabla */
.tabla-integrantes {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

/* Encabezados */
.tabla-integrantes thead th {
    background-color: #ff66b2;
    color: white;
    padding: 10px;
    text-align: left;
    font-size: 16px;
}

/* Filas */
.tabla-integrantes td {
    padding: 10px;
    font-size: 14px;
    color: #444;
    text-align: left;
}

/* Foto redonda */
.foto-perfil {
    width: 50px;
    height: 50px;
    background-color: #ffe6f0; /* Color de fondo temporal */
    border-radius: 50%;
    border: 2px solid #ff66b2;
    background-size: cover;
    background-position: center;
    margin: 0 auto;
}

/* Alternar color de filas */
.tabla-integrantes tbody tr:nth-child(even) {
    background-color: #fff5fa;
}

/* Hover */
.tabla-integrantes tbody tr:hover {
    background-color: #ffe6f0;
    transition: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .tabla-container {
        max-width: 95%;
    }
    .tabla-integrantes thead {
        display: none;
    }
    .tabla-integrantes tbody tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #f3cce1;
        border-radius: 10px;
        padding: 8px;
    }
    .tabla-integrantes td {
        display: block;
        padding: 8px;
        text-align: left;
    }
}

/* Botón flotante para subir */
.btn-subir {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff66b2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: none; /* Oculto por defecto */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-subir:hover {
    background-color: #ff3385;
    transform: scale(1.1);
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 20px;
    background-color: #ff69b4;
    padding: 10px;
}

.navbar a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.3s;
}

.navbar a:hover {
    background-color: #ff85c1;
}

.navbar a.active {
    background-color: #e75480;
}
.productos {
    text-align: center;
    padding: 40px;
    background: #ffe6f0;
}

.galeria-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    border-radius: 10px;
    height: 180px;
    object-fit: cover;
}

.card h3 {
    margin: 15px 0 10px;
    color: #e91e63;
}

.card p {
    font-size: 14px;
    color: #555;
}

.btn-ver {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: #e91e63;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.btn-ver:hover {
    background: #c2185b;
}

/* Botón de cerrar sesión en navbar */
.btn-logout {
    background-color: #ff3385;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.btn-logout:hover {
    background-color: #ff66aa;
}
