/* =========================================
   VARIABLES DE DISEÑO - FG SISTEMAS
   ========================================= */
:root {
    --bg-dark: #21212E; 
    --bg-section: #1A1A25; 
    --card-bg: #2B2B3B; 
    --navbar-bg: rgba(33, 33, 46, 0.95);
    --primary: #FFFFFF;
    --accent: #5AE4A9; /* Verde tecnológico */
    --text-muted: #9494A3; 
    --border-color: #36364A;
    --whatsapp: #25D366; /* Verde oficial WhatsApp */
}

/* =========================================
   RESETEO Y BASES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--primary);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   NAVEGACIÓN (NAVBAR)
   ========================================= */
.navbar {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: var(--primary);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent);
}

/* =========================================
   BOTÓN WHATSAPP FLOTANTE
   ========================================= */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    z-index: 2000;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   SECCIÓN HERO (INICIO)
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Imagen de fondo con overlay oscuro para legibilidad */
    background: linear-gradient(rgba(33, 33, 46, 0.75), rgba(33, 33, 46, 0.75)), 
                url('solarhome.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 750px;
    padding: 40px 0;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.3rem;
    color: #cbd5e0;
    margin-bottom: 45px;
    max-width: 600px;
}

/* =========================================
   BOTONES GENERALES
   ========================================= */
.btn {
    padding: 16px 38px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--primary);
    margin-left: 15px;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(90, 228, 169, 0.05);
}

/* =========================================
   SECCIÓN SERVICIOS (GRID)
   ========================================= */
.services {
    padding: 120px 0;
    background: var(--bg-section);
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    font-size: 2.8rem;
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 45px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-12px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(90, 228, 169, 0.1);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    color: var(--accent);
    transition: all 0.3s ease;
}

.card:hover .icon-wrapper {
    background: var(--accent);
    color: var(--bg-dark);
}

.hero-icon {
    width: 32px;
    height: 32px;
}

.card h3 {
    margin-bottom: 18px;
    font-size: 1.4rem;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   SECCIÓN CONTACTO
   ========================================= */
.contact {
    padding: 120px 0;
}

/* =========================================
   CASOS REALES
   ========================================= */
.cases {
    padding: 110px 0;
    background: var(--bg-dark);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.case-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px;
}

.case-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(90, 228, 169, 0.12);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.case-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.case-text {
    color: var(--text-muted);
    margin-bottom: 14px;
}

.case-results {
    margin-left: 18px;
    color: #cbd5e0;
}

.case-results li {
    margin: 6px 0;
}

.cases-cta {
    margin-top: 30px;
    text-align: center;
}

/* =========================================
   SECCIONES DE CONFIANZA Y FAQ
   ========================================= */
.trust {
    padding: 110px 0;
    background: var(--bg-dark);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

.trust-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 28px;
}

.trust-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.trust-card p {
    color: var(--text-muted);
}

.faq {
    padding: 110px 0;
    background: var(--bg-section);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 18px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-muted);
    margin-top: 10px;
}

.contact-box {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.contact-box h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-box p {
    color: var(--text-muted);
    margin-bottom: 45px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

input, textarea {
    padding: 18px;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    color: var(--primary);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-status {
    margin-top: 6px;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.45;
}

.form-status--success {
    color: var(--accent);
}

.form-status--error {
    color: #f87171;
}

.contact-box .btn-primary:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    padding: 70px 0;
    background: var(--bg-section);
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

/* =========================================
   PÁGINAS LEGALES
   ========================================= */
.legal-page {
    padding: 140px 0 90px;
    background: var(--bg-dark);
    min-height: 100vh;
}

.legal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 45px;
}

.legal-card h1 {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.legal-updated {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.legal-section + .legal-section {
    margin-top: 26px;
    padding-top: 26px;
    border-top: 1px solid var(--border-color);
}

.legal-section h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.legal-section p {
    color: #cbd5e0;
    margin-bottom: 12px;
}

.legal-section ul {
    margin-left: 18px;
    color: #cbd5e0;
}

.legal-section li {
    margin: 6px 0;
}

.legal-actions {
    margin-top: 34px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: 0.25s ease;
}

.footer-links a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.footer-company {
    margin-top: 8px;
}

.footer-inline-link {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: 0.25s ease;
}

.footer-inline-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.footer-copy {
    margin-top: 14px;
    font-size: 0.9rem;
}

/* =========================================
   ADAPTABILIDAD (RESPONSIVE)
   ========================================= */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.8rem; }
    .hero { 
        text-align: center; 
        background-attachment: scroll; /* Mejor rendimiento en móviles */
    }
    .hero-content p { font-size: 1.1rem; }
    .btn-outline { margin-left: 0; margin-top: 15px; width: 100%; }
    .btn-primary { width: 100%; }
    nav { display: none; } /* Ocultar menú simple en móvil */
    .section-title { font-size: 2.2rem; }
    .legal-card { padding: 26px; }
    .cases, .trust, .faq, .contact, .services { padding: 90px 0; }
}
