/*
Theme Name: WNPower Theme
Theme URI: https://wnpower.com
Author: WNPower Team
Author URI: https://wnpower.com
Description: Tema personalizado para servicios de hosting, VPS y servidores dedicados en Argentina. Diseño moderno y optimizado con soporte para Elementor.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wnpower
Tags: hosting, business, responsive, elementor, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    --wnpower-primary: #37c6f5;
    --wnpower-secondary: #FF7E47;
    --wnpower-dark: #1a1a1a;
    --wnpower-light: #f8f9fa;
    --wnpower-gray: #6c757d;
    --wnpower-white: #ffffff;
    --wnpower-success: #28a745;
    --wnpower-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--wnpower-font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--wnpower-dark);
    background-color: var(--wnpower-white);
    overflow-x: hidden;
}

a {
    color: var(--wnpower-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--wnpower-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid {
    width: 100%;
    padding: 0 15px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--wnpower-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
}

.header-top {
    background: var(--wnpower-dark);
    color: var(--wnpower-white);
    padding: 10px 0;
    font-size: 14px;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    gap: 30px;
}

.header-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-social a {
    color: var(--wnpower-white);
    transition: color 0.3s ease;
}

.header-social a:hover {
    color: var(--wnpower-primary);
}

.header-main {
    padding: 20px 0;
    background: var(--wnpower-white);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.site-logo img {
    max-height: 50px;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--wnpower-dark);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    display: block;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--wnpower-primary);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wnpower-primary);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Submenús desplegables */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--wnpower-white);
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: block;
    flex-direction: column;
    gap: 0;
}

.main-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li {
    display: block;
    width: 100%;
}

.main-navigation .sub-menu a {
    padding: 12px 20px;
    color: var(--wnpower-dark);
    font-weight: 400;
    white-space: nowrap;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.main-navigation .sub-menu a:hover {
    background: var(--wnpower-light);
    border-left-color: var(--wnpower-primary);
    color: var(--wnpower-primary);
    padding-left: 25px;
}

.main-navigation .sub-menu a::after {
    display: none;
}

/* Indicador de submenú */
.main-navigation .menu-item-has-children > a::before {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 12px;
}

/* Submenús de tercer nivel */
.main-navigation .sub-menu .sub-menu {
    left: 100%;
    top: 0;
    margin-top: 0;
    margin-left: 5px;
}

.main-navigation .sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================================
   HERO SECTION - ESTILO WNPOWER
   ============================================ */
.hero-section-wnpower {
    background: #1e2a3a;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 60%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.planet {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #8b9dc3, #3e4a5c);
}

.planet-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 20%;
    opacity: 0.6;
}

.planet-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    right: 15%;
    opacity: 0.4;
}

.astronaut-illustration {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    height: 350px;
}

.astronaut {
    position: relative;
    width: 100%;
    height: 100%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.helmet {
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 40% 40%, #ffffff, #d0d0d0);
    border-radius: 50%;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid #2a3f5f;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.3);
}

.helmet::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 80px;
    background: rgba(100, 150, 200, 0.3);
    border-radius: 50%;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
}

.body {
    position: absolute;
    width: 140px;
    height: 160px;
    background: #f5f5f5;
    border-radius: 20px;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid #2a3f5f;
}

.body::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 80px;
    background: #2a3f5f;
    border-radius: 10px;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
}

.hero-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-content-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 50px 40px;
    border-radius: 10px;
    max-width: 550px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-title-main {
    font-size: 28px;
    font-weight: 700;
    color: #1e2a3a;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-description {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-experience {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-wnpower {
    background: #7cb342;
    color: white;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.btn-wnpower:hover {
    background: #689f38;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 179, 66, 0.4);
    color: white;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--wnpower-primary);
    color: var(--wnpower-white);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--wnpower-primary);
    color: var(--wnpower-primary);
}

.btn-secondary {
    background: var(--wnpower-secondary);
    color: var(--wnpower-white);
}

.btn-secondary:hover {
    background: transparent;
    border-color: var(--wnpower-secondary);
    color: var(--wnpower-secondary);
}

.btn-outline {
    background: transparent;
    border-color: var(--wnpower-white);
    color: var(--wnpower-white);
}

.btn-outline:hover {
    background: var(--wnpower-white);
    color: var(--wnpower-primary);
}

/* ============================================
   SECCIONES DE SERVICIOS
   ============================================ */
.services-section {
    padding: 80px 0;
    background: var(--wnpower-light);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--wnpower-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--wnpower-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 60px;
    color: var(--wnpower-primary);
    margin-bottom: 20px;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--wnpower-dark);
}

.service-description {
    color: var(--wnpower-gray);
    margin-bottom: 20px;
}

/* ============================================
   PRICING TABLES
   ============================================ */
.pricing-section {
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: var(--wnpower-white);
    border: 2px solid var(--wnpower-light);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover,
.pricing-card.featured {
    border-color: var(--wnpower-primary);
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(55, 198, 245, 0.2);
}

.pricing-card.featured {
    background: linear-gradient(135deg, var(--wnpower-primary) 0%, var(--wnpower-secondary) 100%);
    color: var(--wnpower-white);
}

.pricing-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
}

.pricing-period {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--wnpower-dark);
    color: var(--wnpower-white);
    padding: 60px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--wnpower-primary);
    margin-bottom: 20px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: var(--wnpower-white);
    opacity: 0.8;
}

.footer-widget a:hover {
    opacity: 1;
    color: var(--wnpower-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ============================================
   TELÉFONO DESTACADO
   ============================================ */
.telefono {
    color: var(--wnpower-primary);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center;
    line-height: 35px;
    margin-bottom: 30px;
}

.shadowcabecera {
    text-shadow: 2px 2px 2px #000;
}

.transparente {
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .astronaut-illustration {
        left: 5%;
        width: 250px;
        height: 250px;
    }
    
    .hero-content-box {
        max-width: 480px;
        padding: 40px 30px;
    }
    
    .hero-title-main {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .hero-section-wnpower {
        min-height: 500px;
        padding: 60px 0;
    }
    
    .astronaut-illustration {
        display: none;
    }
    
    .hero-container {
        justify-content: center;
    }
    
    .hero-content-box {
        max-width: 100%;
        padding: 35px 25px;
    }
    
    .hero-title-main {
        font-size: 22px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .planet-1 {
        width: 80px;
        height: 80px;
    }
    
    .planet-2 {
        width: 40px;
        height: 40px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .services-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ELEMENTOR COMPATIBILITY
   ============================================ */
.elementor-page {
    padding: 0;
}

.elementor-page .container {
    max-width: 100%;
    padding: 0;
}

.elementor-page .entry-content {
    width: 100%;
}

/* Asegurar que Elementor tenga ancho completo */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
}

/* Estilos para widgets de Elementor */
.elementor-widget-container {
    width: 100%;
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-50 {
    margin-top: 50px;
}

.mb-50 {
    margin-bottom: 50px;
}

.py-80 {
    padding: 80px 0;
}
