/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* Fondo dinámico */
.background, .background-next {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.background.active {
    opacity: 1;
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: #F47621;
    z-index: 1000;
    height: 70px;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    margin-left: auto;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0 10px;
    line-height: 70px;
}

.nav-links a:hover {
    color: #81c784;
}

/* Menú hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px;
    border-radius: 5px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-color: rgba(76, 175, 80, 0.9);
    background-image: url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #172418;
}

.hero-content h1 {
    font-size: 4rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin: 20px 0;
}

.btn-cta {
    padding: 10px 20px;
    background-color: #ffeb3b;
    color: #333;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    background-color: #fdd835;
}

/* Sección de ¿Qué es Green Motorbike? */
.about-section {
    padding: 50px 20px;
    margin-bottom: 100px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-section .description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #666;
}

.about-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* Tarjetas */
.card {
    background-color: white;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    margin: 10px;
    border-radius: 10px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 1rem;
}

.card:nth-child(1) {
    background-color: #ffffff;
    border-left: 5px solid #4caf50;
}

.card:nth-child(2) {
    background-color: #81c784;
    color: rgb(0, 71, 0);
}

.card:nth-child(3) {
    background-color: #e0f2f1;
    border-left: 5px solid #00897b;
}

.card:hover {
    transform: translateY(-10px);
    background-color: #f1f8e9;
}

/* Sección PRINCIPIOS QUE NOS GUÍAN */
.about-section#principios {
    margin-top: 100px;
    margin-bottom: 100px;
    background-color: rgba(0, 150, 136, 0.85);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.about-section#principios h2 {
    color: white;
}

.about-section#principios .card {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-left: none;
}

/* Sección Media Milla y Última Milla */
.logistica-section {
    padding: 70px 30px;
    margin-bottom: 100px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

.logistica-section h2 {
    font-size: 3rem;
    color: #ffeb3b;
    margin-bottom: 30px;
}

.logistica-section .description {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #ffffff;
}

.logistica-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.logistica-cards .card {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 30px;
    width: 320px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    transition: transform 0.3s ease, background-color 0.3s;
    margin: 20px;
    color: yellow;
}

.logistica-cards .card h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.logistica-cards .card p {
    font-size: 1.7rem;
}

.logistica-cards .card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.5);
}

/* Sección de SEGURIDAD Y CONFIANZA EN CADA ENTREGA */
.seguridad-section {
    padding: 60px 30px;
    margin-bottom: 100px;
    text-align: center;
    background-color: #004d40;
    color: white;
    border-radius: 20px;
}

.seguridad-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ffeb3b;
}

.seguridad-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.seguridad-cards .card {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 20px;
    width: 300px;
    border-radius: 15px;
    transition: transform 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.seguridad-cards .card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.5);
}

.seguridad-cards .card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.seguridad-cards .card p {
    font-size: 1.2rem;
    color: #ffeb3b;
}

/* Sección COMPROMETIDOS CON NUESTRA COMUNIDAD */
.comunidad-section {
    padding: 70px 30px;
    background-color: rgba(76, 175, 80, 0.85);
    color: white;
    border-radius: 15px;
    margin-bottom: 100px;
    text-align: center;
    position: relative;
    min-height: auto; /* Ajuste dinámico según el contenido */
    height: auto; /* Altura automática para adaptarse al contenido */
}

.comunidad-section h2 {
    font-size: 3rem;
    color: #004d40;
    text-align: center;
    margin-bottom: 40px;
}

/* Estilos para los puntos */
    .comunidad-section .punto {
        font-size: 2.5rem;
        margin-bottom: 20px;
        animation: fadeInOut 1.5s ease-in-out;
        opacity: 0;
        position: absolute;
        width: 100%;
        text-align: center;
        left: 0; /* Asegura que el punto se mantenga alineado a la izquierda */
        right: 0; /* Asegura que el punto se mantenga alineado a la derecha */
        margin: 0 auto; /* Centra el punto horizontalmente */
        display: inline-block;
    }

/* Animación de entrada y salida */
@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Sección de contacto */
.contact-section {
    padding: 50px 20px;
    background-color: rgba(129, 199, 132, 0.9);
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.contact-section h2 {
    margin-bottom: 20px;
}

.contact-section form {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-section input, .contact-section textarea {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
}

.contact-section button {
    padding: 15px;
    background-color: #333;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

.contact-section button:hover {
    background-color: #555;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Responsividad */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: #333;
        width: 100%;
        text-align: center;
        z-index: 999;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .logo {
        margin-right: auto;
    }

    .navbar {
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .about-cards {
        flex-direction: column;
    }

    .card {
        width: 90%;
        max-width: 300px;
    }

    .contact-section {
        padding: 30px 10px;
    }

    .contact-section form {
        width: 100%;
    }
}