body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: rgb(0, 134, 252);
}

header {
    background-color: rgb(0, 134, 252);
    color: white;
    padding: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
}

header h1 {
    margin: 0;
    font-size: 1.5em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1em;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #222;
}

.hero {
    position: relative;
    background-image: url("img/fondo-negocio.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2em;
    flex-wrap: wrap;
    background-color: #ffffff70;
    color: white;
    min-height: 100vh;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.text-container {
    width: 40%;
    min-width: 280px;
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.form-container {
    background-color: #0000007a;
    padding: 40px;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    margin-right: 40px;
    margin-bottom: 60px; /* separación adicional para móviles */
}

.form-container h3,
.form-container h4 {
    margin-top: 0;
}

.input-group {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 8px 10px;
}

.input-group i {
    margin-right: 10px;
    color: #007bff;
}

.input-group input,
.input-group select {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
}

.form-container input,
.form-container select,
.form-container button {
    width: 100%;
    padding: 0.75em;
    margin-top: 0.5em;
    border: none;
    border-radius: 5px;
}

.form-container button {
    background-color: rgb(0, 134, 252);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-container button:hover {
    background-color: rgb(0, 134, 252);
}

.productos-destacados {
    padding: 40px 20px;
    text-align: center;
    background: #f9f9f9;
    margin-top: 40px;
}

.producto-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.producto {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 200px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.producto:hover {
    transform: scale(1.05);
    background-color: rgb(185, 222, 255);
}

.producto i {
    font-size: 30px;
    color: rgb(0, 134, 252);
}

.producto h3 {
    margin-top: 10px;
    color: rgb(0, 134, 252);
}

.testimonios {
    background: #fff;
    padding: 50px 20px;
    text-align: center;
    position: relative;
}

.testimonios h2 {
    color: #007bff;
    margin-bottom: 30px;
}

.testimonios .testimonio {
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
    color: #333;
    background: #f0f4ff;
    border-left: 5px solid #007bff;
    padding: 20px;
    border-radius: 10px;
    display: none;
}

.testimonios .testimonio.active {
    display: block;
}

.testimonios strong {
    display: block;
    margin-top: 15px;
    color: #007bff;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 1em;
    right: 1em;
    z-index: 1001;
}

.menu-icon {
    width: 30px;
    height: 30px;
}

.logo {
    font-size: 48px;
    font-weight: bold;
    color: #00a0f1;
}

.logo span {
    color: #32cd32;
}

.titulo {
    font-size: 40px;
    font-weight: 700;
    margin: 20px 0;
    font-family: 'Georgia', serif;
}

.descripcion {
    font-size: 18px;
    line-height: 1.6;
    color: white;
    margin-top: 20px;
    position: relative;
}

.barra {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #00a0f1;
    margin-right: 8px;
    vertical-align: middle;
}

.porque-elegirnos {
    padding: 60px 20px;
    text-align: center;
    background: #f0f8ff;
}

.porque-elegirnos h2 {
    color: #007bff;
    margin-bottom: 40px;
    font-size: 28px;
}

.beneficios-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.beneficio {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.beneficio:hover {
    transform: translateY(-5px);
}

.beneficio i {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 15px;
}

.beneficio h3 {
    color: #007bff;
    margin-bottom: 10px;
    font-size: 18px;
}

.beneficio p {
    font-size: 14px;
    color: #555;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background-color: rgb(0, 134, 252);
        position: absolute;
        top: 60px;
        right: 10px;
        width: 200px;
        padding: 1em;
        border-radius: 5px;
        z-index: 1000;
    }

    nav.active ul {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5em;
        gap: 2em;
    }

    .text-container,
    .form-container {
        width: 90%;
        margin: 0 auto;
    }

    .productos-destacados {
        padding: 20px 10px;
    }

    .producto-grid {
        flex-direction: column;
        align-items: center;
    }

    .producto {
        width: 80%;
        max-width: 300px;
    }
}

.card-producto {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 250px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.card-producto img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.card-producto h3 {
    font-size: 18px;
    color: #000;
    margin: 10px 0 5px;
}

.card-producto p {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.card-producto strong {
    display: block;
    margin: 10px 0;
    color: rgb(0, 134, 252);
    font-size: 16px;
}

.card-producto button {
    background-color: rgb(0, 134, 252);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.card-producto button:hover {
    background-color: #005bb5;
}

.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-color: #f8f9fa;
    padding: 20px;
}

.login-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-align: center;
}

.login-card h2 {
    margin-bottom: 20px;
}

.login-card .input-group {
    margin-bottom: 14px;
    text-align: left;
}

.login-card input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d9d9d9;
    outline: none;
}

.login-card input:focus {
    border-color: #007bff;
}

.login-card button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.login-card button:hover {
    background-color: #0056b3;
}

/* --- Panel admin --- */
.admin-panel {
    padding: 40px 20px;
    text-align: center;
    background: #fff;
}

.admin-actions {
    margin-top: 28px;
}

.admin-actions button {
    margin: 10px;
    padding: 12px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.admin-actions button:hover {
    background: #218838;
}

/* Pégalo aquí al final del CSS */
table {
    border-collapse: collapse;
    width: 80%;
    margin: 20px auto;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

th {
    background-color: rgb(0, 134, 252);
    color: white;
    padding: 12px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

td {
    padding: 12px;
    text-align: center;
    color: #333;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e3f2fd;
    transition: background-color 0.3s ease;
}
