@tailwind base;
@tailwind components;
@tailwind utilities;

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;@tailwind base;
@tailwind components;
@tailwind utilities;

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
  text-decoration: none; /* Elimina subrayado si lo hay */
  color: inherit;         /* Mantiene el color original del texto o imagen */
}

a:focus,
a:active {
  outline: none;          /* Quita el borde del foco */
  background: none;       /* Elimina el fondo azul */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Variables CSS para colores del tema solar */
@layer base {
  :root {
    /* Colores principales del tema solar */
    --primary: 38 92% 50%;
    --primary-dark: 36 84% 43%;
    --primary-foreground: 0 0% 100%;
    --primary-glow: 45 93% 70%;
    
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    
    --accent: 199 89% 48%;
    --accent-dark: 200 98% 39%;
    --accent-foreground: 0 0% 100%;
    
    --success: 142 76% 36%;
    --warning: 38 92% 50%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    
    --background: 210 40% 98%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 38 92% 50%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    
    --radius: 0.5rem;
    
    /* Gradientes solares */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    --gradient-accent: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--accent-dark)));
    --gradient-hero: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
    --gradient-success: linear-gradient(135deg, hsl(var(--success)), hsl(142 76% 30%));
    --gradient-warning: linear-gradient(135deg, hsl(var(--warning)), hsl(var(--primary-dark)));
    
    /* Sombras solares */
    --shadow-solar: 0 4px 6px -1px rgba(245, 158, 11, 0.1), 0 2px 4px -1px rgba(245, 158, 11, 0.06);
    --shadow-solar-lg: 0 10px 15px -3px rgba(245, 158, 11, 0.1), 0 4px 6px -2px rgba(245, 158, 11, 0.05);
    --shadow-solar-hover: 0 20px 25px -5px rgba(245, 158, 11, 0.2), 0 10px 10px -5px rgba(245, 158, 11, 0.1);
    --shadow-glow: 0 0 40px rgba(251, 191, 36, 0.4);
    
    /* Transiciones suaves */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Sidebar variables */
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}

/* ====================================
   HERO SECTION
   ==================================== */
.wp-hero {
    position: relative;
    background: var(--gradient-hero);
    color: white;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
}

.wp-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('src/assets/solar-hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.wp-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 20px 20px;
}

.wp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.25rem;
    animation: fadeIn 0.8s ease-out;
}

.hero-logo {
    width: 120px;
    height: auto;
    background-color: white;
    padding: 4px;
    border-radius: 6px;
}

.hero-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.hero-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    cursor: pointer;
}

.hero-icon {
    font-size: 4rem;
    color: hsl(var(--primary-glow));
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.hero-stat:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
/* ====================================
   LAYOUT PRINCIPAL
   ==================================== */

.wp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.wp-main-content {
    padding: 5rem 0;
}

.wp-section-header {
    text-align: center;
    margin-bottom: 3.75rem;
    animation: fadeIn 0.8s ease-out;
}

.wp-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1.25rem;
}

.wp-gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wp-section-description {
    font-size: 1.1rem;
    color: hsl(var(--muted-foreground));
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ====================================
   TARJETAS DE CATEGORÍAS
   ==================================== */

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

.wp-category-card {
    background: hsl(var(--card));
    border-radius: 1rem;
    box-shadow: var(--shadow-solar-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid hsl(var(--border));
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.wp-category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-solar-hover);
}

/* Variantes de color para categorías */
.wp-category-card.wp-calculadoras {
    --card-color: var(--primary);
    --card-gradient: var(--gradient-primary);
}

.wp-category-card.wp-utilidades {
    --card-color: var(--accent);
    --card-gradient: var(--gradient-accent);
}

.wp-category-card.wp-blog {
    --card-color: var(--success);
    --card-gradient: var(--gradient-success);
}

.wp-category-card.wp-instaladores {
    --card-color: var(--warning);
    --card-gradient: var(--gradient-warning);
}

.wp-category-card.wp-materiales {
    --card-color: var(--destructive);
    --card-gradient: var(--gradient-warning);
}

.wp-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.wp-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    background: var(--card-gradient);
    color: hsl(var(--primary-foreground));
    font-size: 1.5rem;
}

.wp-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

.wp-card-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.95rem;
    line-height: 1.6;
}

.wp-card-content {
    padding: 1.5rem;
}

.wp-card-features {
    margin-bottom: 1.5rem;
}

.wp-features-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.wp-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

.wp-features-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: hsl(var(--primary));
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.wp-card-button {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--card-gradient);
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.wp-card-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-solar-hover);
}

.wp-card-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ====================================
   SECCIÓN DE BENEFICIOS
   ==================================== */

.wp-benefits-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, hsl(var(--background)) 0%, #e2e8f0 100%);
}

.wp-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3.75rem;
}

.wp-benefit-item {
    text-align: center;
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.wp-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.wp-benefit-icon:hover {
    transform: scale(1.1);
}

.wp-benefit-icon i {
    font-size: 2rem;
    color: white;
}

.wp-benefit-icon.wp-primary { background: var(--gradient-primary); }
.wp-benefit-icon.wp-accent { background: var(--gradient-accent); }
.wp-benefit-icon.wp-success { background: var(--gradient-success); }
.wp-benefit-icon.wp-warning { background: var(--gradient-warning); }

.wp-benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

.wp-benefit-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ====================================
   COMPONENTES AUXILIARES
   ==================================== */

.wp-coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid hsl(var(--border));
    border-radius: 50px;
    padding: 1rem 1.5rem;
    margin: 3.75rem auto 0;
    box-shadow: var(--shadow-solar);
    color: hsl(var(--foreground));
    font-weight: 500;
}

.wp-coming-soon-badge i {
    color: hsl(var(--primary));
}

.wp-info-card {
    background: #e0f2fe;
    border: 1px solid hsl(var(--accent));
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    animation: fadeIn 0.8s ease-out;
}

.wp-info-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: hsl(var(--accent));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.wp-info-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
}

.wp-info-content p {
    color: #0c4a6e;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ====================================
   FOOTER
   ==================================== */

.footer {
    background: hsl(var(--foreground));
    color: white;
    padding: 3.75rem 0;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-icon {
    font-size: 2rem;
    color: hsl(var(--primary-glow));
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.875rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 1.875rem 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ====================================
   NOTIFICACIONES TOAST
   ==================================== */

.wp-toast {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    background: hsl(var(--card));
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-solar-lg);
    border-left: 4px solid hsl(var(--accent));
    max-width: 400px;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: var(--transition-smooth);
}

.wp-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.wp-toast-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.wp-toast-icon {
    color: hsl(var(--accent));
    font-size: 1.25rem;
    margin-top: 2px;
}

.wp-toast-text {
    flex: 1;
}

.wp-toast-title {
    color: hsl(var(--foreground));
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.wp-toast-message {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.wp-toast-close {
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    margin-left: 0.5rem;
}

.wp-toast-close:hover {
    color: hsl(var(--foreground));
}


/* ====================================
   ANIMACIONES
   ==================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px hsl(var(--primary-glow)), 0 0 10px hsl(var(--primary-glow));
    }
    to {
        text-shadow: 0 0 10px hsl(var(--primary-glow)), 0 0 20px hsl(var(--primary-glow)), 0 0 30px hsl(var(--primary-glow));
    }
}

/* Delays de animación para efectos escalonados */
.wp-category-card:nth-child(1) { animation-delay: 0s; }
.wp-category-card:nth-child(2) { animation-delay: 0.1s; }
.wp-category-card:nth-child(3) { animation-delay: 0.2s; }
.wp-category-card:nth-child(4) { animation-delay: 0.3s; }
.wp-category-card:nth-child(5) { animation-delay: 0.4s; }

.wp-benefit-item:nth-child(1) { animation-delay: 0s; }
.wp-benefit-item:nth-child(2) { animation-delay: 0.1s; }
.wp-benefit-item:nth-child(3) { animation-delay: 0.2s; }
.wp-benefit-item:nth-child(4) { animation-delay: 0.3s; }

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 768px) {
    
    
    /* Hero optimizado para móvil */
    .wp-hero {
        padding: 3.75rem 0;
    }
    
    .wp-hero-content {
        /* Ajuste mejorado para alineación con el menú */
        margin-top: 1rem;
        padding-top: 0.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-icon {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
   
    
    /* Ajustes generales para móvil */
    .wp-section-title {
        font-size: 2rem;
    }
    
    .wp-main-content,
    .wp-benefits-section {
        padding: 3.75rem 0;
    }
    
    .wp-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .wp-benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.875rem;
    }
    
    .wp-info-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .wp-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .wp-hero-content {
        /* Mejor alineación en pantallas muy pequeñas */
        margin-top: 1.5rem;
    }
    
    .wp-card-header,
    .wp-card-content {
        padding: 1.25rem;
    }
    
    .wp-coming-soon-badge {
        margin-top: 2.5rem;
        padding: 0.75rem 1.25rem;
    }
}
    color: #1e293b;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Variables CSS para colores del tema solar */
@layer base {
  :root {
    /* Colores principales del tema solar */
    --primary: 38 92% 50%;
    --primary-dark: 36 84% 43%;
    --primary-foreground: 0 0% 100%;
    --primary-glow: 45 93% 70%;
    
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    
    --accent: 199 89% 48%;
    --accent-dark: 200 98% 39%;
    --accent-foreground: 0 0% 100%;
    
    --success: 142 76% 36%;
    --warning: 38 92% 50%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    
    --background: 210 40% 98%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 38 92% 50%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    
    --radius: 0.5rem;
    
    /* Gradientes solares */
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    --gradient-accent: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--accent-dark)));
    --gradient-hero: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
    --gradient-success: linear-gradient(135deg, hsl(var(--success)), hsl(142 76% 30%));
    --gradient-warning: linear-gradient(135deg, hsl(var(--warning)), hsl(var(--primary-dark)));
    
    /* Sombras solares */
    --shadow-solar: 0 4px 6px -1px rgba(245, 158, 11, 0.1), 0 2px 4px -1px rgba(245, 158, 11, 0.06);
    --shadow-solar-lg: 0 10px 15px -3px rgba(245, 158, 11, 0.1), 0 4px 6px -2px rgba(245, 158, 11, 0.05);
    --shadow-solar-hover: 0 20px 25px -5px rgba(245, 158, 11, 0.2), 0 10px 10px -5px rgba(245, 158, 11, 0.1);
    --shadow-glow: 0 0 40px rgba(251, 191, 36, 0.4);
    
    /* Transiciones suaves */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Sidebar variables */
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}

/* ====================================
   HERO SECTION
   ==================================== */

.wp-hero {
    position: relative;
    background: var(--gradient-hero);
    color: white;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
}

.wp-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('src/assets/solar-hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.wp-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 20px 20px;
}

.wp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.25rem;
    animation: fadeIn 0.8s ease-out;
}

.hero-logo {
    width: 120px;
    height: auto;
    background-color: white;
    padding: 4px;
    border-radius: 6px;
}

.hero-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.hero-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    cursor: pointer;
}

.hero-icon {
    font-size: 4rem;
    color: hsl(var(--primary-glow));
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

/* ====================================
   LAYOUT PRINCIPAL
   ==================================== */

.wp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.wp-main-content {
    padding: 5rem 0;
}

.wp-section-header {
    text-align: center;
    margin-bottom: 3.75rem;
    animation: fadeIn 0.8s ease-out;
}

.wp-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1.25rem;
}

.wp-gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wp-section-description {
    font-size: 1.1rem;
    color: hsl(var(--muted-foreground));
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ====================================
   TARJETAS DE CATEGORÍAS
   ==================================== */

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

.wp-category-card {
    background: hsl(var(--card));
    border-radius: 1rem;
    box-shadow: var(--shadow-solar-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid hsl(var(--border));
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.wp-category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-solar-hover);
}

/* Variantes de color para categorías */
.wp-category-card.wp-calculadoras {
    --card-color: var(--primary);
    --card-gradient: var(--gradient-primary);
}

.wp-category-card.wp-utilidades {
    --card-color: var(--accent);
    --card-gradient: var(--gradient-accent);
}

.wp-category-card.wp-blog {
    --card-color: var(--success);
    --card-gradient: var(--gradient-success);
}

.wp-category-card.wp-instaladores {
    --card-color: var(--warning);
    --card-gradient: var(--gradient-warning);
}

.wp-category-card.wp-materiales {
    --card-color: var(--destructive);
    --card-gradient: var(--gradient-warning);
}

.wp-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
}

.wp-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    background: var(--card-gradient);
    color: hsl(var(--primary-foreground));
    font-size: 1.5rem;
}

.wp-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

.wp-card-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.95rem;
    line-height: 1.6;
}

.wp-card-content {
    padding: 1.5rem;
}

.wp-card-features {
    margin-bottom: 1.5rem;
}

.wp-features-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.wp-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

.wp-features-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: hsl(var(--primary));
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.wp-card-button {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--card-gradient);
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.wp-card-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-solar-hover);
}

.wp-card-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ====================================
   SECCIÓN DE BENEFICIOS
   ==================================== */

.wp-benefits-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, hsl(var(--background)) 0%, #e2e8f0 100%);
}

.wp-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3.75rem;
}

.wp-benefit-item {
    text-align: center;
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.wp-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.wp-benefit-icon:hover {
    transform: scale(1.1);
}

.wp-benefit-icon i {
    font-size: 2rem;
    color: white;
}

.wp-benefit-icon.wp-primary { background: var(--gradient-primary); }
.wp-benefit-icon.wp-accent { background: var(--gradient-accent); }
.wp-benefit-icon.wp-success { background: var(--gradient-success); }
.wp-benefit-icon.wp-warning { background: var(--gradient-warning); }

.wp-benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
}

.wp-benefit-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ====================================
   COMPONENTES AUXILIARES
   ==================================== */

.wp-coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid hsl(var(--border));
    border-radius: 50px;
    padding: 1rem 1.5rem;
    margin: 3.75rem auto 0;
    box-shadow: var(--shadow-solar);
    color: hsl(var(--foreground));
    font-weight: 500;
}

.wp-coming-soon-badge i {
    color: hsl(var(--primary));
}

.wp-info-card {
    background: #e0f2fe;
    border: 1px solid hsl(var(--accent));
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    animation: fadeIn 0.8s ease-out;
}

.wp-info-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: hsl(var(--accent));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.wp-info-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
}

.wp-info-content p {
    color: #0c4a6e;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ====================================
   FOOTER
   ==================================== */

.footer {
    background: hsl(var(--foreground));
    color: white;
    padding: 3.75rem 0;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-icon {
    font-size: 2rem;
    color: hsl(var(--primary-glow));
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.875rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 1.875rem 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ====================================
   NOTIFICACIONES TOAST
   ==================================== */

.wp-toast {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    background: hsl(var(--card));
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-solar-lg);
    border-left: 4px solid hsl(var(--accent));
    max-width: 400px;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: var(--transition-smooth);
}

.wp-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.wp-toast-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.wp-toast-icon {
    color: hsl(var(--accent));
    font-size: 1.25rem;
    margin-top: 2px;
}

.wp-toast-text {
    flex: 1;
}

.wp-toast-title {
    color: hsl(var(--foreground));
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.wp-toast-message {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.wp-toast-close {
    background: none;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    margin-left: 0.5rem;
}

.wp-toast-close:hover {
    color: hsl(var(--foreground));
}

/* ====================================
   ANIMACIONES
   ==================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px hsl(var(--primary-glow)), 0 0 10px hsl(var(--primary-glow));
    }
    to {
        text-shadow: 0 0 10px hsl(var(--primary-glow)), 0 0 20px hsl(var(--primary-glow)), 0 0 30px hsl(var(--primary-glow));
    }
}

/* Delays de animación para efectos escalonados */
.wp-category-card:nth-child(1) { animation-delay: 0s; }
.wp-category-card:nth-child(2) { animation-delay: 0.1s; }
.wp-category-card:nth-child(3) { animation-delay: 0.2s; }
.wp-category-card:nth-child(4) { animation-delay: 0.3s; }
.wp-category-card:nth-child(5) { animation-delay: 0.4s; }

.wp-benefit-item:nth-child(1) { animation-delay: 0s; }
.wp-benefit-item:nth-child(2) { animation-delay: 0.1s; }
.wp-benefit-item:nth-child(3) { animation-delay: 0.2s; }
.wp-benefit-item:nth-child(4) { animation-delay: 0.3s; }

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 768px) {
    
    
    /* Hero optimizado para móvil */
    .wp-hero {
        padding: 3.75rem 0;
    }
    
    .wp-hero-content {
        /* Ajuste mejorado para alineación con el menú */
        margin-top: 1rem;
        padding-top: 0.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-icon {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
   
    
    /* Ajustes generales para móvil */
    .wp-section-title {
        font-size: 2rem;
    }
    
    .wp-main-content,
    .wp-benefits-section {
        padding: 3.75rem 0;
    }
    
    .wp-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .wp-benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.875rem;
    }
    
    .wp-info-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .wp-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .wp-hero-content {
        /* Mejor alineación en pantallas muy pequeñas */
        margin-top: 1.5rem;
    }
    
    .wp-card-header,
    .wp-card-content {
        padding: 1.25rem;
    }
    
    .wp-coming-soon-badge {
        margin-top: 2.5rem;
        padding: 0.75rem 1.25rem;
    }
}