:root {
    --red: #ff001e;
    --dark-grey: #33363d;
    --light-grey: #f4f4f4;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
}

/* Header & Nav */
.top-bar {
    background: #000;
    color: white;
    padding: 5px 10%;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

nav {
    background: var(--red);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

/* Hero */
.hero {
    height: 400px;
    background-image: url('img/bannerfitclub.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: start;
    padding-left: 20%;
    padding-top: 0%;
}

.btn-primary {
    background: var(--red);
    color: var(--light-grey);
    border: none;
    padding: 10px 40px;
    cursor: pointer;
    font-weight: bold;
}

/* About */
.about {
    display: flex;
    padding: 50px 10%;
}

.about-text {
    flex: 1;
    padding-right: 50px;
}

.about-image {
    flex: 1;
    background: #777; /* Placeholder color */
    height: 300px;
}

.locations {
    padding: 50px 10%;
}

.shipping {
    padding: 50px 10%;
}
/* Cards & Grids */
.grid, .grid-shipping {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 10%;
}

.card {
    background: white;
    padding-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    flex: 1;
}

.img-placeholder {
    background: var(--dark-grey);
    height: 150px;
    margin-bottom: 15px;
}

.btn-contact {
    background: var(--red);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

/* Shipping Cards */
.ship-card {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    text-align: center;
}

.ship-card img {
    width: 100%;
    height: 100%;
    display: block;
}


.main-footer {
    background: var(--red);
    color: var(--light-grey);
    padding: 60px 0 20px 0;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

/* Columna de Logo */
.footer-logo img {
    width: 200px;
    padding: 5px;
    margin-bottom: 15px;
}

.branding p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 250px;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
}

.social-icons img {
    width: 30px;
    height: 30px;
}

/* Listas de enlaces */
.footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-col ul li a:hover {
    text-decoration: underline;
}

/* Newsletter */
.newsletter p {
    font-size: 14px;
    margin-bottom: 15px;
}

.newsletter input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
}

.btn-join {
    width: 100%;
    padding: 12px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

/* Bottom Bar */
.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 10% 0 10%;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: white;
}

.legal-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
}

/* Íconos sociales */
.social-icons { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }

.icon-content { position: relative; }

.icon-content a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #d90707;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: 60px;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.icon-content:hover .tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Colores oficiales redes sociales */
.icon-content[data-social="facebook"] a:hover { background: #1877f2; }
.icon-content[data-social="instagram"] a:hover { background: #e4405f; }
.icon-content[data-social="youtube"] a:hover { background: #ff0000; }
.icon-content[data-social="linkedin"] a:hover { background: #0a66c2; }
/* Estilos del Botón Flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000; /* Para que siempre esté por encima de todo */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}

/* Animación de pulso */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Ajuste para móviles (para que no tape contenido importante) */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}
/* ==========================================
   RESPONSIVIDAD (Media Queries)
   ========================================== */

/* TABLETS (Pantallas menores a 992px) */
@media (max-width: 992px) {
    .about {
        flex-direction: column; /* Texto arriba, imagen abajo */
        padding: 40px 5%;
    }

    .about-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .grid, .grid-shipping {
        flex-wrap: wrap; /* Permite que las tarjetas bajen si no caben */
        justify-content: center;
    }

    .card, .ship-card {
        flex: 0 0 45%; /* Dos columnas en tablets */
    }
}

/* MÓVILES (Pantallas menores a 768px) */
@media (max-width: 768px) {
    /* Ajustes de Navegación */
    .top-bar {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    nav {
        flex-direction: column;
        padding: 15px 5%;
    }

    nav ul {
        padding: 0;
        margin-top: 15px;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero Section */
    .hero {
        background-image: url('img/bannermoviles.png');
        height: 250px;
        justify-content: center;
        padding-left: 0;
        text-align: center;
    }

    /* Grillas a una sola columna */
    .grid, .grid-shipping {
        flex-direction: column;
        align-items: center;
        padding: 20px 5%;
    }

    .card, .ship-card {
        width: 100%; /* Una columna completa */
        max-width: 350px;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 40px;
    }

    .branding p {
        margin: 0 auto 20px auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px 5%;
    }

    .legal-links a {
        margin: 0 10px;
    }

    /* Ajuste de títulos */
    h2 {
        font-size: 24px;
        text-align: center;
    }
}

/* MÓVILES MUY PEQUEÑOS (Menos de 480px) */
@media (max-width: 480px) {
    nav ul li a {
        font-size: 12px;
    }
    
    .btn-primary {
        display: none;
        width: 80%;
    }
}