/* ==========================================================================
   Gaia Evolución del Ser — Components: Hero, Icon Boxes, Image Boxes,
   Buttons, CTA, Spacer
   Extracted from Elementor widget CSS + elementor-kit-7 + Blocksy
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Section
   Source: elementor-2000 hero block (.elementor-element-eafe62f)
   Uses background image + purple overlay (#424267 at 0.45 opacity)
   -------------------------------------------------------------------------- */

/* Hero section container — full-width with background */
.hero-section {
  position: relative;
  padding: 200px 0 100px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Overlay for hero */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: #424267;
  opacity: 0.45;
  z-index: 1;
  transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}

.hero-section > .elementor-container,
.hero-section > .e-con-inner {
  position: relative;
  z-index: 2;
}

/* Hero headings are white on dark bg */
.hero-section h1,
.hero-section .elementor-heading-title {
  color: #FFFFFF;
}

.hero-section h4,
.hero-section .hero-subtitle {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 500;
}

.hero-section p,
.hero-section .hero-description {
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

/* Hero content alignment */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Responsive hero padding */
@media (max-width: 767px) {
  .hero-section {
    padding: 120px 0 60px;
  }
}

/* --------------------------------------------------------------------------
   2. Icon Box (ct-service-box)
   Source: Elementor widget-icon-box.min.css + wp-custom-css
   Layout: icon top, title below, description below — 3 columns flex
   -------------------------------------------------------------------------- */

.elementor-icon-box-wrapper {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 30px 20px;
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Icon container */
.elementor-icon-box-icon {
  display: inline-block;
  flex: 0 0 auto;
  line-height: 0;
  margin-bottom: 20px;
}

.elementor-icon-box-icon .elementor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  color: var(--color-primary);
  font-size: 40px;
  transition: color 0.3s ease;
}

.elementor-icon-box-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--color-primary);
  transition: fill 0.3s ease;
}

/* Title */
.elementor-icon-box-title {
  font-family: var(--font-primary);
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.elementor-icon-box-title a {
  color: inherit;
  text-decoration: none;
}

/* Description */
.elementor-icon-box-description {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s ease;
}

/* Hover effect — from wp-custom-css: .ct-service-box:hover p, h3, .fas */
.ct-service-box:hover {
  background: var(--color-primary);
}

.ct-service-box:hover .elementor-icon-box-icon .elementor-icon,
.ct-service-box:hover .elementor-icon-box-icon svg {
  color: var(--color-white);
  fill: var(--color-white);
}

.ct-service-box:hover .elementor-icon-box-title {
  color: var(--color-white);
}

.ct-service-box:hover .elementor-icon-box-description {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   3. Image Box — card with image, title, description, "Más..." button
   Source: Elementor widget-image-box.min.css
   -------------------------------------------------------------------------- */

.elementor-image-box-wrapper {
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.elementor-image-box-wrapper:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

/* Image */
.elementor-image-box-img {
  display: inline-block;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.elementor-image-box-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 437 / 527;
  transition: transform 0.4s ease;
}

.elementor-image-box-wrapper:hover .elementor-image-box-img img {
  transform: scale(1.05);
}

/* Content */
.elementor-image-box-content {
  width: 100%;
  padding: 25px 20px 30px;
}

.elementor-image-box-title {
  font-family: var(--font-primary);
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.elementor-image-box-title a {
  color: inherit;
  text-decoration: none;
}

.elementor-image-box-description {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 0 15px;
}

/* --------------------------------------------------------------------------
   4. Buttons — .elementor-button (Primary/Secondary)
   Source: elementor-kit-7 + elementor frontend CSS
   -------------------------------------------------------------------------- */

.elementor-button-wrapper {
  display: flex;
  justify-content: center;
}

.elementor-align-center .elementor-button-wrapper {
  justify-content: center;
}

.elementor-align-right .elementor-button-wrapper {
  justify-content: flex-end;
}

.elementor-align-left .elementor-button-wrapper {
  justify-content: flex-start;
}

/* Base button */
.elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Primary button (lavender bg) */
.elementor-button,
.elementor-kit-7 .elementor-button {
  background-color: var(--color-lavender);
  color: var(--color-text);
}

.elementor-button:hover,
.elementor-kit-7 .elementor-button:hover {
  background-color: var(--color-gold-light);
  color: var(--color-text);
}

/* Size variants */
.elementor-size-sm {
  padding: 10px 24px;
  font-size: 14px;
}

.elementor-size-md {
  padding: 14px 32px;
  font-size: 15px;
}

.elementor-size-lg {
  padding: 18px 40px;
  font-size: 17px;
}

/* Button content wrapper */
.elementor-button-content-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.elementor-button-text {
  display: inline-block;
}

/* Secondary button style (gold/dorado) */
.elementor-button--secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.elementor-button--secondary:hover {
  background-color: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-text);
}

/* Outline button */
.elementor-button--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.elementor-button--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* WhatsApp button (green accent) */
.elementor-button--whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}

.elementor-button--whatsapp:hover {
  background-color: #1DA851;
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   5. CTA Section
   Source: elementor-2000 CTA block (section#c8b6ca3)
   Full-width section with overlay + heading + WhatsApp button
   -------------------------------------------------------------------------- */

.cta-section {
  position: relative;
  padding: 80px 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background-color: #424267;
  opacity: 0.45;
  z-index: 1;
}

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

.cta-section h2,
.cta-section .cta-heading {
  color: #FFFFFF;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}

.cta-section h2 a,
.cta-section .cta-heading a {
  color: inherit;
  text-decoration: none;
}

.cta-section h2 a:hover,
.cta-section .cta-heading a:hover {
  color: var(--color-gold-light);
}

.cta-section h4,
.cta-section .cta-subheading {
  color: rgba(255, 255, 255, 0.85);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
}

.cta-section h4 a {
  color: inherit;
  text-decoration: none;
}

/* CTA content alignment */
.cta-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Responsive CTA */
@media (max-width: 767px) {
  .cta-section {
    padding: 50px 0;
    text-align: center;
  }

  .cta-section h2 {
    font-size: 22px;
  }

  .cta-section h4 {
    font-size: 16px;
  }

  .cta-section .elementor-align-right .elementor-button-wrapper {
    justify-content: center;
    margin-top: 20px;
  }
}

/* --------------------------------------------------------------------------
   6. Spacer — .elementor-spacer-inner
   Source: Elementor widget-spacer.min.css
   -------------------------------------------------------------------------- */

.elementor-spacer {
  width: 100%;
}

.elementor-spacer-inner {
  height: 50px; /* Default spacer size, can be overridden */
}

/* --------------------------------------------------------------------------
   7. Heading Widget Styles
   Source: Elementor widget-heading.min.css + elementor-kit-7
   -------------------------------------------------------------------------- */

.elementor-heading-title {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.elementor-heading-title a {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
}

/* Heading size variants (matches Elementor defaults) */
.elementor-size-small { font-size: 15px; }
.elementor-size-medium { font-size: 19px; }
.elementor-size-large { font-size: 29px; }
.elementor-size-xl { font-size: 39px; }
.elementor-size-xxl { font-size: 59px; }

/* --------------------------------------------------------------------------
   8. "Gracias por tu visita" Section — profile + text + signature
   Source: elementor-2000 (container eafe62f and 6fb271c4)
   -------------------------------------------------------------------------- */

.about-section {
  padding: 100px 0;
  position: relative;
}

.about-section .about-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
}

.about-section .about-signature {
  margin-top: 20px;
  max-width: 200px;
}

.about-section .about-image img {
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 767px) {
  .about-section {
    padding: 50px 0;
  }
}

/* --------------------------------------------------------------------------
   9. Programas / Talleres Card Grid (image-box variation)
   Used for both Terapia Breve/Nuevo Comienzo and Talleres
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card-grid .elementor-image-box-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-grid .elementor-image-box-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-grid .elementor-image-box-description {
  flex: 1;
}

/* --------------------------------------------------------------------------
   10. Section Backgrounds with overlay
   Generic pattern used by multiple sections
   -------------------------------------------------------------------------- */

.section-with-bg {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.section-with-overlay {
  position: relative;
}

.section-with-overlay > .section-overlay {
  position: absolute;
  inset: 0;
  background-color: #424267;
  opacity: 0.45;
  z-index: 1;
}

.section-with-overlay > .elementor-container,
.section-with-overlay > .e-con-inner,
.section-with-overlay > * {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   11. Elementor Widget Base
   Source: elementor-kit-7 — margin between widgets
   -------------------------------------------------------------------------- */

.elementor-widget:not(:last-child) {
  margin-bottom: 20px;
}

.elementor-widget-container {
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

/* Text editor widget */
.elementor-widget-text-editor {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
}

.elementor-widget-text-editor p {
  margin-bottom: 1em;
}

.elementor-widget-text-editor p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. Image Widget
   Source: Elementor widget-image.min.css
   -------------------------------------------------------------------------- */

.elementor-widget-image {
  text-align: center;
}

.elementor-widget-image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: inherit;
  box-shadow: none;
}

.elementor-widget-image a {
  display: inline-block;
}

/* --------------------------------------------------------------------------
   13. Utility — text alignment
   -------------------------------------------------------------------------- */

.elementor-text-center { text-align: center; }
.elementor-text-left { text-align: left; }
.elementor-text-right { text-align: right; }

/* --------------------------------------------------------------------------
   14. Section with content-middle (vertical centering)
   -------------------------------------------------------------------------- */

.elementor-section-content-middle > .elementor-container > .elementor-column > .elementor-widget-wrap {
  align-content: center;
}

/* --------------------------------------------------------------------------
   15. Transitions & Hover Utilities
   -------------------------------------------------------------------------- */

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.hover-scale-img img {
  transition: transform 0.4s ease;
}

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