/* ==========================================================================
   Mavens Producciones - Main Stylesheet
   Sitio web sin dependencias de Mobirise
   ========================================================================== */

/* CSS Variables */
:root {
  /* Colores principales */
  --color-primary: #149dcc;
  --color-primary-hover: #0d6786;
  --color-secondary: #ff3366;
  --color-secondary-hover: #e50039;
  --color-success: #f7ed4a;
  --color-info: #82786e;
  --color-warning: #879a9f;
  --color-danger: #b1a374;
  
  /* Colores neutros */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-text: #232323;
  --color-gray-light: #eeeeee;
  
  /* Tipografía */
  --font-black: 'GTWalsheimPro-Black', sans-serif;
  --font-bold: 'GTWalsheimPro-Bold', sans-serif;
  --font-medium: 'GTWalsheimPro-Medium', sans-serif;
  --font-regular: 'GTWalsheimPro-Regular', sans-serif;
  --font-light: 'GTWalsheimPro-Light', sans-serif;
  
  /* Espaciados */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Bordes */
  --border-radius: 3px;
  --border-radius-lg: 8px;
  
  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.2);
  
  /* Transiciones */
  --transition: all 0.3s ease;
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-regular);
  font-style: normal;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-white);
  position: relative;
  overflow-x: hidden;
}

/* Tipografía - Sistema Display */
.display-1 {
  font-family: var(--font-black);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.2;
  font-display: swap;
}

.display-2 {
  font-family: var(--font-bold);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  font-display: swap;
}

.display-4 {
  font-family: var(--font-medium);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  font-display: swap;
}

.display-5 {
  font-family: var(--font-regular);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
  font-display: swap;
}

.display-7 {
  font-family: var(--font-light);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  font-display: swap;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.2;
  word-break: break-word;
  word-wrap: break-word;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

a:hover {
  color: var(--color-primary-hover);
  text-decoration: none;
}

/* Utilidades de color */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-white { color: var(--color-white) !important; }
.text-black { color: var(--color-text) !important; }

.bg-primary { background-color: var(--color-primary) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }
.bg-white { background-color: var(--color-white) !important; }
.bg-black { background-color: var(--color-black) !important; }
.bg-gray-light { background-color: var(--color-gray-light) !important; }

/* Utilidades de texto */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-weight-light { font-weight: 300; }
.font-weight-regular { font-weight: 400; }
.font-weight-medium { font-weight: 500; }
.font-weight-bold { font-weight: 700; }
.font-weight-black { font-weight: 900; }

/* Botones */
.btn {
  display: inline-block;
  padding: 1rem 3rem;
  font-family: var(--font-medium);
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-hover);
  border-color: var(--color-secondary-hover);
  color: var(--color-white);
}

.btn-white-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-white-outline:hover {
  background-color: var(--color-white);
  color: var(--color-text);
}

.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.2rem 3.2rem;
  font-size: 1.125rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  width: 100%;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

[class*="col-"] {
  padding: 0 15px;
  width: 100%;
}

.col-12 { width: 100%; }
.col-md-3 { width: 25%; }
.col-md-4 { width: 33.333%; }
.col-md-6 { width: 50%; }
.col-md-8 { width: 66.666%; }
.col-md-9 { width: 75%; }
.col-lg-3 { width: 25%; }
.col-lg-4 { width: 33.333%; }
.col-lg-6 { width: 50%; }
.col-lg-8 { width: 66.666%; }

/* Secciones */
section {
  position: relative;
  padding: 60px 0;
  background-color: var(--color-gray-light);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}

section.bg-white {
  background-color: var(--color-white);
}

/* Parallax */
.parallax-background {
  background-attachment: fixed;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

section .container {
  position: relative;
  z-index: 2;
}

/* Cards */
.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.card-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-img .overlay {
  opacity: 0;
  transition: var(--transition);
}

.card:hover .card-img .overlay {
  opacity: 0.3;
}

.card-box {
  padding: 30px;
}

.card-title {
  font-family: var(--font-medium);
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-text);
}

.card-text {
  font-family: var(--font-light);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* Navegación principal */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  min-height: 80px;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 4rem;
  width: auto;
}

.navbar-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-menu li {
  position: relative;
  margin: 0 15px;
}

.navbar-menu a {
  display: block;
  padding: 10px 15px;
  color: var(--color-text);
  font-family: var(--font-light);
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition);
}

.navbar-menu a:hover {
  color: var(--color-primary);
}

.navbar-menu .fa-whatsapp {
  margin-right: 8px;
  font-size: 1.3rem;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
  padding: 10px 0;
  display: none;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  padding: 12px 20px;
  display: block;
  color: var(--color-text);
}

.dropdown-menu a:hover {
  background-color: var(--color-gray-light);
  color: var(--color-primary);
}

/* Hamburguesa móvil */
.navbar-toggler {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  transition: var(--transition);
}

.navbar-toggler.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.navbar-toggler.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Footer */
footer {
  background-color: var(--color-white);
  padding: 25px 0 20px;
  border-top: 1px solid #ddd;
  color: #232323;
}

footer p {
  color: #232323;
  margin: 0;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo-img {
  width: 54px;
  height: auto;
  flex-shrink: 0;
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-text p {
  font-family: var(--font-light);
  font-size: 0.95rem;
  color: #232323 !important;
  line-height: 1.4;
}

.footer-text a {
  color: #149dcc !important;
  text-decoration: none;
}

.footer-text a:hover {
  color: #01C6F6;
  text-decoration: underline;
}

.social-list {
  display: flex;
  gap: 15px;
  list-style: none;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--color-gray-light);
  color: var(--color-text);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-list a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* Botón Social Likes */
.social-likes {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-likes .btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--color-white);
  font-size: 1.5rem;
  transition: var(--transition);
  cursor: pointer;
}

.social-likes .btn-social:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.social-likes .facebook {
  background-color: #3b5998;
}

.social-likes .twitter {
  background-color: #1da1f2;
}

.social-likes .pinterest {
  background-color: #bd081c;
}

/* Scroll to top */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-3px);
}

/* Formularios */
.form-control {
  width: 100%;
  padding: 15px 20px;
  font-family: var(--font-regular);
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  transition: var(--transition);
  background-color: var(--color-white);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(20, 157, 204, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-medium);
  font-size: 1rem;
  color: var(--color-text);
}

/* Iconos */
.icon {
  display: inline-block;
  font-size: 1.5rem;
}

/* Espaciados */
.p-3 { padding: var(--spacing-md); }
.pb-3 { padding-bottom: var(--spacing-md); }
.pt-3 { padding-top: var(--spacing-md); }
.pt-5 { padding-top: var(--spacing-xl); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-md); }

/* Imágenes */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ocultar en mobile */
.d-none { display: none; }

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

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* WhatsApp Button - CSS movido al final del archivo (línea 815+) */

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 10px 0 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  background: #fff;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 50%, rgba(0,0,0,0.3) 80%, transparent 100%);
  color: #fff;
  padding: 30px 15px 15px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-medium);
}

.gallery-caption h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.gallery-caption p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* Hero Simple - Versión compacta */
.hero-simple {
  padding: 100px 20px 30px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.hero-simple h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-family: var(--font-bold);
  color: #2c2c2c;
}

.hero-simple h2 {
  font-size: 1.1rem;
  color: #666;
  font-family: var(--font-regular);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.4;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-green {
  0% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.8); }
  100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
}

.whatsapp-popup {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  z-index: 999;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.whatsapp-popup.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

.whatsapp-popup-header {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  padding: 15px 20px;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
  font-size: 16px;
}

.whatsapp-popup-body {
  padding: 20px;
}

.whatsapp-popup-message {
  background: #f0f0f0;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.whatsapp-popup-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
  transition: border-color 0.3s ease;
}

.whatsapp-popup-input:focus {
  outline: none;
  border-color: #25D366;
}

.whatsapp-popup-button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.whatsapp-popup-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Botones de filtro tipo pills modernos */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid #01C6F6;
  background: transparent;
  color: #01C6F6;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: capitalize;
}

.filter-btn:hover {
  background: #01C6F6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 198, 246, 0.3);
}

.filter-btn.active {
  background: #01C6F6;
  color: white;
  box-shadow: 0 4px 12px rgba(1, 198, 246, 0.4);
}

/* Animación de filtrado */
.gallery-item {
  opacity: 0;
  animation: fadeInScale 0.5s ease forwards;
  transition: all 0.4s ease;
}

.gallery-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  display: none;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


/* ==========================================================================
   Blog Post Content Styles
   ========================================================================== */

.blog-content {
  font-family: var(--font-regular);
  color: var(--color-text);
  line-height: 1.8;
  font-size: 1.1rem;
}

.blog-content > * {
  margin-bottom: 1.5rem;
}

/* Párrafos */
.blog-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Headings */
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  font-family: var(--font-bold);
  color: var(--color-primary);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.blog-content h2 {
  font-size: 2rem;
}

.blog-content h3 {
  font-size: 1.6rem;
}

.blog-content h4 {
  font-size: 1.3rem;
}

/* Blockquotes */
.blog-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-size: 1.15rem;
  color: #555;
  font-style: italic;
  font-family: var(--font-light);
}

.blog-content blockquote strong {
  color: var(--color-text);
  font-family: var(--font-medium);
}

/* Listas */
.blog-content ul,
.blog-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  line-height: 2;
}

.blog-content ul li,
.blog-content ol li {
  margin-bottom: 0.5rem;
}

.blog-content ul li strong,
.blog-content ol li strong {
  font-family: var(--font-bold);
  color: var(--color-text);
}

/* Secciones destacadas */
.blog-content .blog-section {
  margin: 3rem 0;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: var(--border-radius-lg);
}

.blog-content .blog-section h3 {
  margin-top: 0;
}

/* Call to Action */
.blog-content .blog-cta {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: var(--border-radius-lg);
}

.blog-content .blog-cta h3 {
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.blog-content .blog-cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.blog-content .blog-cta .btn {
  padding: 12px 30px;
  font-size: 1.1rem;
}

/* Imágenes dentro del contenido */
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

/* Links */
.blog-content a:not(.btn) {
  color: var(--color-primary);
  text-decoration: underline;
  transition: var(--transition);
}

.blog-content a:not(.btn):hover {
  color: var(--color-primary-hover);
}

/* Separadores */
.blog-content hr {
  border: none;
  border-top: 2px solid #e0e0e0;
  margin: 3rem 0;
}

/* Código (por si se usa) */
.blog-content code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.blog-content pre {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-content pre code {
  background: none;
  padding: 0;
}
