/*
Theme Name: Sitemega Pro
Author: Sitemega
Version: 2.1
Description: Tema premium compatible con Elementor — identidad azul y verde
Tags: elementor, custom-colors, custom-logo, full-width-template, sticky-post
*/

/* ══════════════════════════════════
   COMPATIBILIDAD ELEMENTOR
══════════════════════════════════ */

/* Permitir que Elementor ocupe el ancho completo */
.elementor-section.elementor-section-stretched {
  left: 0 !important;
  width: 100% !important;
}

/* Eliminar padding del main cuando Elementor toma control */
#main-content:has(.elementor) {
  padding: 0;
  margin: 0;
}

/* Evitar que estilos del tema rompan widgets de Elementor */
.elementor * {
  box-sizing: border-box;
}

.elementor ul,
.elementor ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Footer del tema */
.main-footer {
  background: #0f4c81;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

.main-footer p { margin: 0; font-size: 14px; opacity: 0.85; }

:root {
  --azul-sitemega: #1E72B8;
  --azul-oscuro: #0f4c81;
  --verde-sitemega: #95C123;
  --morado-sitemega: #941F81;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f5f7fa;
  color: #333;
}

/* HEADER */
.main-header {
  background: var(--azul-sitemega);
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
}

.menu li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

.menu li a:hover {
  color: var(--verde-sitemega);
}

/* HERO */
.hero {
  height: 100vh;
  background: #1E72B8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero > div {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  animation: fadeUp 1s ease forwards;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  animation: fadeUp 1.5s ease forwards;
}

.btn-sitemega {
  background: var(--verde-sitemega);
  color: white;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(149,193,35,0.4);
  transition: 0.3s ease;
  animation: fadeUp 2s ease forwards;
}

.btn-sitemega:hover {
  background: var(--azul-oscuro);
  transform: scale(1.05);
}

/* Sections */
.section {
  padding: 100px 20px;
  text-align: center;
}

.cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  width: 280px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: 0.4s ease;
  border-top: 4px solid var(--verde-sitemega);
}

.card:hover {
  transform: translateY(-10px);
}

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