/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a3c34;
    padding: 1rem 2rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo a {
    color: white;
    text-decoration: none;
}

.logo span {
    color: #00b7b5;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

nav ul li a:hover {
    color: #00b7b5;
}

.login-btn {
    background-color: #d32f2f;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #b71c1c;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 450px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/image.jpg") no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    color: white;
    margin: 0 1rem 1rem;
    border-radius: 8px;
}

.hero-text {
    line-height: 2rem;
    text-align: center;
    max-width: 90%;
}

/* Tabla responsiva */
table {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-collapse: collapse;
    border: 4px solid red;
}

th, td {
    border: 1px solid black;
    padding: 0.5rem;
    text-align: center;
}

th {
    background-color: #333;
    color: white;
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    text-align: center;
    padding: 1rem;
    background-color: #e0e0e0;
    margin: 1rem;
    border-radius: 8px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    margin: 0 10px;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-section p,
.footer-section a {
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    line-height: 1.5rem;
}

.newsletter input[type="email"] {
    padding: 0.5rem;
    width: 100%;
    max-width: 250px;
}

.newsletter button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background-color: #d32f2f;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.social-icons {
    text-align: center;
    padding: 0.5rem 0;
}

.social-icons a {
    margin: 0 0.5rem;
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
}

.social-icons img {
    width: 2rem;
    height: 2rem;
    vertical-align: middle;
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 1rem;
    }

    nav {
        width: 100%;
        display: none;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .login-btn {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .hero {
        height: 300px;
        margin: 0 0.5rem 1rem;
    }

    .hero-text {
        font-size: 0.9rem;
        line-height: 1.5rem;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th, td {
        min-width: 100px;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    .login-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .hero {
        height: 200px;
    }

    .hero-text {
        font-size: 0.8rem;
    }
}