/* =========================================
   HELIOS ENERGY - MASTER STYLESHEET
   ========================================= */

:root {
    /* Color Palette */
    --c-space-dark: #050a15;
    --c-deep-blue: #0B1B3D;
    --c-blue-accent: #1A3673;
    --c-star-yellow: #F9A826;
    --c-sun-orange: #F39C12;
    --c-eco-green: #2ECC71;
    --c-text-light: #F0F4F8;
    --c-text-muted: #A0B0C4;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Effects */
    --glass-bg: rgba(11, 27, 61, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(249, 168, 38, 0.4);
    
    /* Transitions */
    --trans-fast: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--c-space-dark);
    color: var(--c-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.section-padding { padding: 100px 0; }
.bg-alt { background-color: var(--c-deep-blue); }

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans-fast);
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--c-star-yellow), var(--c-sun-orange));
    color: var(--c-space-dark);
    box-shadow: 0 4px 15px rgba(249, 168, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--c-text-light);
    color: var(--c-text-light);
}

.btn-outline:hover {
    background: var(--c-text-light);
    color: var(--c-space-dark);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* Typography Highlights */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-title span {
    color: var(--c-star-yellow);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--c-text-muted);
    font-weight: 300;
    margin-bottom: 50px;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(5, 10, 21, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    gap: 4px;
    align-items: center;
}

.brand-logo {
    height: 50px;
    width: auto;
    display: block;
    transform: scale(2.5);
    transform-origin: left center;
}

.footer-brand .brand-logo {
    height: 50px;
    margin-bottom: 20px;
    transform: scale(3.5);
    transform-origin: left center;
}

.logo-helios {
    color: var(--c-star-yellow);
}

.logo-energy {
    color: var(--c-text-light);
    font-weight: 300;
}

.nav-links ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--c-star-yellow);
}

.cta-btn {
    margin-left: 10px;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../assets/hero_bg.png'); /* Set by JS/Asset */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 10, 21, 0.7), rgba(11, 27, 61, 0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    height: 100%;
}

.hero-text {
    text-align: left;
}

.hero-founders {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.founder-portrait {
    position: absolute;
    border-radius: 50%;
    border: 4px solid var(--glass-border);
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.founder-portrait:hover {
    transform: scale(1.05) !important;
    z-index: 10;
    box-shadow: 0 0 30px rgba(249, 168, 38, 0.6);
    border-color: var(--c-star-yellow);
}

.founder-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: radial-gradient(circle at top right, rgba(26,54,115,0.8), rgba(5,10,21,1));
}

.f1 {
    width: 320px;
    height: 320px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.f1:hover {
    transform: translateY(-50%) scale(1.05) !important;
}

.f2 {
    width: 240px;
    height: 240px;
    top: 50%;
    right: 10%;
    transform: translateY(0%);
    z-index: 1;
    animation: float 8s ease-in-out infinite reverse;
}

.f2:hover {
    transform: translateY(0%) scale(1.05) !important;
}

@keyframes float {
    0% { margin-top: 0px; }
    50% { margin-top: -15px; }
    100% { margin-top: 0px; }
}

.founder-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 8px 16px !important;
    border-radius: 30px !important;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-star-yellow);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 27, 61, 0.9) !important;
    border: 1px solid var(--c-star-yellow);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(46, 204, 113, 0.15);
    color: var(--c-eco-green);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 25px;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--c-text-light);
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 300;
    text-wrap: balance;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--c-text-light);
    z-index: 2;
}

.border-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Historia */
.historia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.historia-text p {
    margin-bottom: 20px;
    color: var(--c-text-muted);
    font-size: 1.1rem;
}

.historia-text strong {
    color: var(--c-text-light);
}

.historia-text em {
    color: var(--c-star-yellow);
    font-style: normal;
    font-weight: 600;
}

.features-list {
    margin-top: 30px;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.features-list i {
    color: var(--c-sun-orange);
    font-size: 1.4rem;
    width: 30px;
}

.visual-card {
    text-align: center;
    background: linear-gradient(145deg, rgba(26,54,115,0.4) 0%, rgba(11,27,61,0.8) 100%);
    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(249, 168, 38, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(249, 168, 38, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: var(--c-star-yellow);
    position: relative;
    z-index: 2;
}

.visual-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.visual-card p {
    color: var(--c-text-muted);
    position: relative;
    z-index: 2;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 20px;
    transition: var(--trans-fast);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.05);
    border-color: rgba(249, 168, 38, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.service-icon {
    font-size: 3rem;
    color: var(--c-sun-orange);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--c-text-muted);
}

/* Equipo */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    border: 1px solid var(--glass-border);
}

.team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-member:hover img {
    transform: scale(1.1);
}

.team-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 15px !important;
    text-align: center;
    border-radius: 15px !important;
    background: rgba(11, 27, 61, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-info h4 {
    font-size: 1.1rem;
    color: var(--c-star-yellow);
    margin-bottom: 5px;
}

.team-info p {
    font-size: 0.9rem;
    color: var(--c-text-light);
    margin: 0;
}

/* Beneficios */
.benefits-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255,255,255,0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--trans-fast);
}

.benefit-item:hover {
    transform: translateX(10px);
    background: rgba(255,255,255,0.06);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.benefit-icon.yellow { background: rgba(249, 168, 38, 0.1); color: var(--c-star-yellow); }
.benefit-icon.green { background: rgba(46, 204, 113, 0.1); color: var(--c-eco-green); }
.benefit-icon.blue { background: rgba(52, 152, 219, 0.1); color: #3498db; }

.benefit-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.benefit-content p {
    color: var(--c-text-muted);
}

/* Contacto */
.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 60px;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--c-text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-info ul li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--c-star-yellow);
    font-size: 1.3rem;
}

.whatsapp-card {
    background: rgba(37, 211, 102, 0.05);
    border: 1px solid rgba(37, 211, 102, 0.2);
    padding: 50px 30px;
    transition: all 0.3s ease;
}

.whatsapp-card:hover {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.15);
    transform: translateY(-5px);
}

.whatsapp-icon-large {
    font-size: 4rem;
    color: #25D366;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(37, 211, 102, 0.4));
}

.whatsapp-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.whatsapp-card p {
    color: var(--c-text-muted);
    margin-bottom: 30px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Footer */
.footer {
    background: var(--c-space-dark);
    padding: 80px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand p {
    margin: 20px 0;
    color: var(--c-text-muted);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-light);
}

.social-links a:hover {
    background: var(--c-star-yellow);
    color: var(--c-space-dark);
    transform: translateY(-3px);
}

.footer-links h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--c-star-yellow);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--c-text-muted);
}

.footer-links a:hover {
    color: var(--c-text-light);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 160px 0 80px;
    }
    .scroll-down {
        display: none;
    }
    .hero-content, .historia-grid, .form-container {
        grid-template-columns: 1fr;
    }
    .hero-content {
        gap: 30px;
        text-align: center;
        margin-top: 0;
    }
    .hero-text {
        text-align: center;
    }
    .hero-founders {
        height: 350px;
        transform: scale(0.85);
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-founders {
        height: auto;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        transform: none;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .founder-portrait {
        position: relative !important;
        animation: none !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
    }
    .f1 {
        width: 180px !important;
        height: 180px !important;
        z-index: 3 !important;
    }
    .f2 {
        width: 140px !important;
        height: 140px !important;
        margin-top: 50px;
        margin-left: -40px;
        z-index: 2 !important;
    }
    .whatsapp-card {
        padding: 30px 15px;
    }
    .whatsapp-icon-large {
        font-size: 3rem;
    }
    .whatsapp-card h3 {
        font-size: 1.5rem;
    }
    .brand-logo {
        transform: scale(2);
    }
    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
        font-size: 30px !important;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 10, 21, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: var(--trans-fast);
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links ul {
        flex-direction: column;
        gap: 20px;
    }
    .form-container {
        padding: 30px;
    }
    .section-padding {
        padding: 60px 0;
    }
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: float-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

@keyframes float-pulse {
    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); }
}
