/*
Theme Name: Somos Confort
Theme URI: https://somosidle.com
Author: Somos Idle
Author URI: https://somosidle.com
Description: Tema profesional para remodelación y diseño de interiores. Incluye página de inicio, servicios, blog y más.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: somos-confort
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.2
*/

/* Importar otros estilos */
@import url('./assets/css/theme-layout.css');
@import url('./assets/css/posts.css');
@import url('./assets/css/pages.css');

:root {
  --primary: #1f3a93;
  --primary-foreground: #ffffff;
  --secondary: #f97316;
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --card: #f8fafc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

/* Botones */
.btn, button, input[type="button"], input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary, input[type="submit"] {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover, input[type="submit"]:hover {
  background-color: var(--primary);
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-foreground);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background-color: var(--background);
  border: 2px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--muted);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Enlace de salto */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Posts y páginas */
.post, .page {
  background-color: var(--background);
}

.post-featured-image {
  width: 100%;
  height: auto;
  display: block;
}

.post-title {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.post-meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.post-content {
  font-size: 1rem;
  line-height: 1.8;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content a {
  color: var(--primary);
  text-decoration: underline;
}

.post-content a:hover {
  opacity: 0.8;
}

/* Formularios */
form {
  margin: 1.5rem 0;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 58, 147, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* Menús de navegación */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-menu a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.current-menu-item {
  color: var(--primary);
}

.nav-menu .sub-menu {
  list-style: none;
  position: absolute;
  background-color: var(--background);
  border: 1px solid var(--border);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  display: none;
  flex-direction: column;
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-menu > li.menu-item-has-children:hover .sub-menu {
  display: flex;
}

.nav-menu .sub-menu a {
  padding: 0.5rem 1rem;
  display: block;
}

.nav-menu .sub-menu a:hover {
  background-color: var(--muted);
}

/* Paginación */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination .page-numbers {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  text-decoration: none;
  color: var(--foreground);
  transition: all 0.3s ease;
}

.pagination .page-numbers.current {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.pagination a:hover {
  background-color: var(--muted);
}

/* Comentarios */
.comments-area {
  margin-top: 3rem;
}

.comment-form-comment label {
  display: block;
  margin-bottom: 0.5rem;
}

.comment {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.comment-author {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comment-meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Widget */
.widget {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--card);
  border-radius: 0.5rem;
}

.widget-title {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.widget ul {
  list-style: none;
}

.widget ul li {
  margin-bottom: 0.5rem;
}

.widget ul a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget ul a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
  }

  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .container {
    padding: 0 0.75rem;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1rem; }

  .pagination {
    flex-direction: column;
    width: 100%;
  }
}
