/* 1.- Variables y fuentes */
:root {
    --primary-color: hsl(60, 100%, 50%);
    --dark-bg: #121212;
    --darker-bg: #050505;
    --card-bg: #1e1e1e;
    --light-text: #ffffff;
    --gray-text: #b3b3b3;
    
    --status-success: #00ff88;
    --status-warning: #ffff00;
    --status-danger: #ff3333;

    --header-height: 80px;
}

.header-center, 
.hero h1, 
.services h2, 
.card h3 {
    font-family: 'Impact', 'Arial Narrow', sans-serif; 
    letter-spacing: 1px;
    font-weight: normal;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* 2.- Fondos */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('Media/1440925.jpg') center/cover no-repeat;
    z-index: -10;
}

.scroll-fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--darker-bg);
    opacity: 0;
    z-index: -9;
    pointer-events: none;
    transition: opacity 0.1s linear;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 3.- Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--header-height);
    background-color: rgba(0, 0, 0, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Logo + Nombre */
.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.badge-icon {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.5));
    transition: transform 0.3s;
}

.brand-container:hover .badge-icon {
    transform: rotate(10deg) scale(1.1);
}

.brand-text {
    font-family: 'Teko', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
}
.navbar {
    display: flex;
    gap: 30px;
}

.navbar a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.navbar a:hover {
    color: var(--primary-color);
}

.navbar a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.navbar a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

/* 4.- Sección Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Teko', sans-serif;
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 2px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 25px var(--primary-color);
}

/*5.- Servicios */
.services {
    padding: 100px 5%;
    text-align: center;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.services h2, 
.calculator-section h2 {
    font-family: 'Teko', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    padding: 40px 30px;
    border: 1px solid #333;
    border-radius: 5px;
    transition: 0.3s;
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-family: 'Teko', sans-serif;
    color: #fff;
}

/* 6.- Calculadora IMC*/
.calculator-section {
    padding: 100px 20px;
    background-color: var(--darker-bg);
    text-align: center;
    border-top: 1px solid #333;
    z-index: 1;
}

.calc-container {
    max-width: 600px;
    margin: 0 auto;
    background: #151515;
    padding: 50px 30px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.7);
    border: 1px solid #222;
}

.input-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.input-wrapper {
    flex: 1;
    min-width: 200px;
}

input {
    width: 100%;
    padding: 15px;
    background: #222;
    border: 2px solid #444;
    color: #fff;
    font-size: 1.1rem;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--primary-color);
}

.result-box {
    margin-top: 30px;
    padding: 20px;
    border: 3px solid var(--primary-color);
    background: #080808;
    border-radius: 5px;
    display: none;
}

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

/* 7.- FOOTER */
footer {
    text-align: center;
    padding: 30px;
    background: #000;
    color: var(--gray-text);
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
    .header { padding: 0 20px; }
    .brand-text { font-size: 1.8rem; }

    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .navbar {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: rgba(0,0,0,0.98);
        width: 100%;
        height: calc(100vh - var(--header-height));
        align-items: center;
        justify-content: center;
        transition: 0.3s ease-in-out;
        gap: 50px;
        border-top: 1px solid #333;
    }

    .navbar.active {
        left: 0;
    }

    .navbar a {
        font-size: 1.5rem;
    }
}