/* ==========================================================================
   ZONA FIT 507 - MAIN STYLESHEET
   ========================================================================== */

:root {
    --primary-color: #FFC107; /* Yellow/Orange from mockup */
    --primary-hover: #e0a800;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --bg-white: #ffffff;
    --bg-light: #f5f7fa;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 15px 40px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%; /* Use percentage for better responsive breathing room */
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0; /* Reduced vertical padding */
}

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

.logo-area img {
    height: 70px; /* Adjust based on actual logo */
}

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    text-transform: uppercase;
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-dark {
    background-color: var(--text-main);
    color: var(--bg-white);
}

.btn-dark:hover {
    background-color: #000;
    transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* The split background effect from the mockup */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: url('../img/gym-bg.jpg') center/cover no-repeat;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../img/food-bg.jpg') center/cover no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    background: rgba(0, 0, 0, 0.7);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 800px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-title {
    color: var(--bg-white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    color: #e0e0e0;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 500;
    text-transform: none;
}

.hero-subtitle strong {
    color: var(--primary-color);
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
    margin-top: -50px; /* Pull up slightly over hero */
    position: relative;
    z-index: 4;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-strong);
    transition: transform 0.3s ease;
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--primary-color);
}

.feature-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* You can replace this with actual images from mockup later */
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-desc {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   SECTION TITLES
   ========================================================================== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-main);
}

/* ==========================================================================
   INTERNAL PAGES (SEO PAGES)
   ========================================================================== */
.page-header {
    background: var(--text-main);
    color: var(--bg-white);
    padding: 6rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-content {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--bg-white);
    padding: 3rem 0 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 80px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-weight: 700;
}

.social-link i {
    font-size: 1.2rem;
}

.social-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   WHATSAPP FLOAT - HEARTBEAT + CTA URGENCIA
   ========================================================================== */
.whatsapp-float-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.whatsapp-float {
    background-color: #25d366;
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    animation: heartbeat 1.5s ease-in-out infinite;
    transition: transform 0.3s ease;
    position: relative;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: heartbeat-ring 1.5s ease-in-out infinite;
    z-index: -1;
}

.whatsapp-float:hover {
    color: white;
    transform: scale(1.15);
    animation: none;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:hover::before {
    animation: none;
    opacity: 0;
}

@keyframes heartbeat {
    0%   { transform: scale(1); }
    14%  { transform: scale(1.15); }
    28%  { transform: scale(1); }
    42%  { transform: scale(1.10); }
    56%  { transform: scale(1); }
    100% { transform: scale(1); }
}

@keyframes heartbeat-ring {
    0%   { transform: scale(1); opacity: 0.6; }
    14%  { transform: scale(1.35); opacity: 0.3; }
    28%  { transform: scale(1); opacity: 0.6; }
    42%  { transform: scale(1.25); opacity: 0.3; }
    56%  { transform: scale(1); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* CTA Flotante de Urgencia */
.whatsapp-cta {
    background: rgba(26, 26, 26, 0.92);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    max-width: 280px;
    font-size: 0.85rem;
    line-height: 1.45;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #FFC107;
    position: relative;
    opacity: 0;
    transform: translateY(15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    backdrop-filter: blur(8px);
}

.whatsapp-cta.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.whatsapp-cta p {
    margin: 0;
}

.whatsapp-cta strong {
    color: #FFC107;
}

.cta-close {
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.2s ease;
}

.cta-close:hover {
    color: #fff;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1005;
    }

    .main-nav.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1002;
    }

    .hero::before, .hero::after {
        width: 100%;
        height: 50%;
    }
    
    .hero::after {
        top: 50%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-content {
        padding: 2rem 1.5rem;
        margin: 0 15px;
    }
    .features-section {
        margin-top: 0;
        padding: 3rem 0;
    }
    .whatsapp-cta {
        max-width: 240px;
        font-size: 0.8rem;
        padding: 12px 14px;
    }
    .whatsapp-float-wrapper {
        bottom: 20px;
        right: 20px;
    }
}

