/*
Theme Name: Polsweb Vacio
Theme URI: https://ejemplo.com/polsweb-vacio
Author: Tu nombre
Author URI: https://ejemplo.com
Description: Tema minimalista sin cabecera ni pie de página, optimizado para SEO. Body 0, padding 0, compatible con Elementor.
Version: 2.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: polsweb-vacio
*/

/* Reset completo - Body 0, Padding 0, Ancho completo */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #2271b1;
  --color-primary-dark: #135e96;
  --color-light-bg: #ffffff;
  --color-dark-bg: #1a1a1a;
  --color-text: #333333;
  --color-text-light: #777777;
  --color-dark-text: #f0f0f0;

  --transition: all 0.3s ease;
}

/* Body con ancho completo del navegador */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-light-bg);
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Modo oscuro */
body.dark-mode {
  background-color: var(--color-dark-bg);
  color: var(--color-dark-text);
}

body.dark-mode a {
  color: #8ab4f8;
}

body.dark-mode .site-footer {
  background-color: #2a2a2a;
  color: #e0e0e0;
}

/* Contenido principal - Ancho completo */
.site-main {
  width: 100%;
  min-height: 80vh;
  padding: 20px;
}

/* Navegación */
.main-navigation {
  width: 100%;
  background-color: var(--color-primary);
  padding: 15px 20px;
}

.primary-menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

.primary-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.primary-menu a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  width: 100%;
  background-color: #f5f5f5;
  padding: 30px 20px;
  text-align: center;
  margin-top: 40px;
}

.footer-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-menu a {
  color: var(--color-text);
  text-decoration: none;
}

.footer-menu a:hover {
  text-decoration: underline;
}

/* Botones de interfaz */
.mode-toggle,
.back-to-top {
  position: fixed;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.mode-toggle {
  top: 20px;
  right: 20px;
}

.back-to-top {
  bottom: 20px;
  right: 20px;
  display: none;
}

.back-to-top.show {
  display: flex;
}

.mode-toggle:hover,
.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: scale(1.1);
}

/* Elementor compatibility */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 100% !important;
  padding: 0 20px;
}

.elementor-section {
  width: 100% !important;
}

/* Responsive */
@media (max-width: 768px) {
  .site-main {
    padding: 15px;
  }

  .primary-menu {
    flex-direction: column;
    gap: 10px;
  }

  .mode-toggle {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }

  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }

  .elementor-section.elementor-section-boxed > .elementor-container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .site-main {
    padding: 10px;
  }

  .main-navigation {
    padding: 10px 15px;
  }

  .mode-toggle {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .back-to-top {
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .elementor-section.elementor-section-boxed > .elementor-container {
    padding: 0 10px;
  }
}
