/*--------------------------------------------------------------
# GOODMAN Brand Color Palette
# All brand colors are defined here as CSS custom properties.
# Every color used across the site must reference these variables.
--------------------------------------------------------------*/
:root {
  /* Core brand colors */
  --color-primary:   #00BAB3; /* GOODMAN teal  — PANTONE 2398 C */
  --color-secondary: #1A658F; /* GOODMAN navy  — PANTONE 2152 C */
  --color-white:     #ffffff;
  --color-light-bg:  #f4fbfb;
  --color-text:      #3c4049;
  --color-dark-bg:   #1A658F; /* topbar & dark sections */

  /* Extended palette — semantic names */
  --color-primary-dark:      #00a39d; /* primary teal hover/darker shade */
  --color-secondary-dark:    #0d4d6e; /* deep navy gradient endpoint */
  --color-light-bg-alt:      #e8f7f7; /* teal-tinted lighter gradient bg */
  --color-text-muted:        #666;    /* muted description text in cards/lists */
  --color-text-subtle:       #555;    /* italic quotes, feature list items */
  --color-text-faint:        #888;    /* small secondary labels */
  --color-border-light:      #e8f4f8; /* light card borders throughout site */
  --color-rating:            #f8c51c; /* star rating color */
  --color-success:           #059652; /* success message background */
  --color-price-strike:      #999;    /* strikethrough price color */
  --color-price-note:        #777;    /* IVA note text */
  --color-offer-badge-bg:    #fec40f; /* offer badge yellow */
  --color-offer-badge-text:  #333;    /* offer badge text */
}

/*--------------------------------------------------------------
# Override Template Variables with GOODMAN Brand Colors
--------------------------------------------------------------*/
:root {
  --accent-color:                   var(--color-primary);
  --heading-color:                  var(--color-secondary);
  --nav-hover-color:                var(--color-primary);
  --nav-dropdown-hover-color:       var(--color-primary);
}

.dark-background {
  --background-color: var(--color-dark-bg);
  --surface-color:    #1d6e99;
}

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

/*--------------------------------------------------------------
# Logo sizing in navbar
--------------------------------------------------------------*/
.header .logo img {
  height: 80px;
  max-height: 80px;
  width: auto;
}

/*--------------------------------------------------------------
# Hero section — offset for fixed header (topbar ~44px + branding ~106px)
--------------------------------------------------------------*/
.index-page .hero {
  padding-top: 150px;
}

/*--------------------------------------------------------------
# Hero highlight span
--------------------------------------------------------------*/
.hero .highlight {
  color: var(--color-primary);
}

/*--------------------------------------------------------------
# Button overrides to use brand teal
--------------------------------------------------------------*/
.btn-primary,
.hero-actions .btn-primary,
.about-content .btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover,
.hero-actions .btn-primary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

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

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

/*--------------------------------------------------------------
# Footer brand section
--------------------------------------------------------------*/
.footer .brand-section .sitename,
.footer .logo img {
  height: 80px;
  max-height: 80px;
  width: auto;
}

.footer .logo .sitename {
  color: var(--color-primary);
}

/*--------------------------------------------------------------
# Footer text & link classes
--------------------------------------------------------------*/
.footer-brand-description {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-contact-item {
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-text-muted {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.footer-nav-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav-link:hover {
  color: var(--color-primary);
}

.footer-social-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  transition: color 0.2s;
}

.footer-social-link:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.footer-bottom-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-attribution,
.footer-attribution a {
  color: rgba(255, 255, 255, 0.4);
}

/*--------------------------------------------------------------
# Service icon font integration (cchFonts)
--------------------------------------------------------------*/
.service-icon-cch {
  font-size: 3rem;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.75rem;
}

/*--------------------------------------------------------------
# Service SVG icon
--------------------------------------------------------------*/
.service-icon-svg {
  width: 42px;
  height: 42px;
  display: block;
  margin-bottom: 0.75rem;
}

/*--------------------------------------------------------------
# Service cards
--------------------------------------------------------------*/
.service-card {
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid var(--color-border-light);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 186, 179, 0.13);
}

.service-card p,
.service-card ul {
  color: var(--color-text-muted);
}

.service-card--featured {
  background: linear-gradient(135deg, var(--color-light-bg) 0%, var(--color-light-bg-alt) 100%);
  border: 2px solid var(--color-primary);
  position: relative;
}

.service-card--featured:hover {
  box-shadow: 0 12px 30px rgba(0, 186, 179, 0.18);
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonial-item {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.testimonials .swiper-wrapper {
  height: auto !important;
}

.testimonials .swiper-pagination {
  margin-top: 30px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: color-mix(in srgb, var(--default-color), transparent 70%);
  opacity: 1;
}

.testimonials .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: var(--accent-color);
  width: 20px;
  border-radius: 4px;
}

/*--------------------------------------------------------------
# Feature cards (Nosotros page)
--------------------------------------------------------------*/
.feature-card {
  background: var(--color-white);
  border-radius: 12px;
  border-left: 4px solid var(--color-primary);
  height: 100%;
}

.feature-card p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Pricing card overrides
--------------------------------------------------------------*/
.pricing-card {
  background: var(--color-white);
  border: 2px solid var(--color-border-light);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 186, 179, 0.15);
}

.pricing-card .price-tag {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.pricing-card .price-tag.offer {
  color: #e67e22;
}

.pricing-card .price-original {
  text-decoration: line-through;
  color: var(--color-price-strike);
  font-size: 1.1rem;
}

.pricing-card .offer-badge {
  background: var(--color-offer-badge-bg);
  color: var(--color-offer-badge-text);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.pricing-card--featured {
  border-color: var(--color-primary);
}

.pricing-card--offer {
  border-color: var(--color-offer-badge-bg) !important;
}

.pricing-card .iva-note {
  font-size: 0.8rem;
  color: var(--color-price-note);
  margin-top: 0.5rem;
}

/*--------------------------------------------------------------
# Service detail page specifics
--------------------------------------------------------------*/
.service-detail-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.service-detail-hero img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.service-detail-hero .overlay-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}

/*--------------------------------------------------------------
# Gallery page — ensure proper hover on GOODMAN portfolio images
--------------------------------------------------------------*/
.gallery-item img {
  height: 280px;
  object-fit: cover;
  width: 100%;
}

/*--------------------------------------------------------------
# Blog page embedded feed
--------------------------------------------------------------*/
.blog-embed-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/*--------------------------------------------------------------
# Contact page map container
--------------------------------------------------------------*/
.map-container iframe {
  display: block;
  border: 0;
  margin-top: 2rem;
  border-radius: 12px;
}

/*--------------------------------------------------------------
# Subscription form in footer
--------------------------------------------------------------*/
.footer-subscription-form .form-control {
  border-radius: 6px;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.footer-subscription-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-subscription-form .btn-subscribe {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.footer-subscription-form .btn-subscribe:hover {
  background: var(--color-primary-dark);
}

/*--------------------------------------------------------------
# Scroll-to-top button
--------------------------------------------------------------*/
.scroll-top {
  background-color: var(--color-primary);
}

.scroll-top:hover {
  background-color: var(--color-secondary);
}

/*--------------------------------------------------------------
# Experience badge (nosotros page — absolute overlay on photo)
--------------------------------------------------------------*/
.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 186, 179, 0.3);
}

.home-about .about-visual .experience-badge {
  bottom: auto;
  top: 120px;
}

.experience-badge .years-count {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.experience-badge .years-label {
  font-size: 0.8rem;
  display: block;
  margin-top: 2px;
}

/*--------------------------------------------------------------
# Contact form — sent message / error message
--------------------------------------------------------------*/
.contact-form-card .sent-message {
  color: var(--color-white);
  background: var(--color-success);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
  border-radius: var(--bs-border-radius);
}

.contact-form-card .error-message {
  color: var(--color-white);
  background: #c0392b;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
  border-radius: var(--bs-border-radius);
}

/*--------------------------------------------------------------
# Footer logo — invert for dark background
--------------------------------------------------------------*/
.footer .logo img {
  filter: brightness(0) invert(1);
}

/*--------------------------------------------------------------
# Info boxes (light/warning background with left border accent)
--------------------------------------------------------------*/
.info-box {
  background: var(--color-light-bg);
  border-left: 4px solid var(--color-primary);
}

.info-box--secondary {
  background: var(--color-light-bg);
  border-left: 4px solid var(--color-secondary);
}

.info-box--warning {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
}

.info-box-title {
  color: var(--color-secondary);
}

.info-box-title--warning {
  color: #856404;
}

.info-box-text {
  font-size: 0.875rem;
  color: var(--color-text-subtle);
}

.info-box-text--warning {
  color: #664d03;
}

.info-box-list {
  font-size: 0.9rem;
  line-height: 1.9;
  padding-left: 1.2rem;
  color: var(--color-text-subtle);
}

.info-box-list--warning {
  font-size: 0.9rem;
  line-height: 1.9;
  padding-left: 1.2rem;
  color: #664d03;
}

/*--------------------------------------------------------------
# Section heading with primary underline
--------------------------------------------------------------*/
.section-heading-underline {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.4rem;
}

/*--------------------------------------------------------------
# Text utilities
--------------------------------------------------------------*/
.text-brand-secondary {
  color: var(--color-secondary);
}

.text-subtle {
  color: var(--color-text-subtle);
}

.text-white-85 {
  color: rgba(255, 255, 255, 0.85);
}

/*--------------------------------------------------------------
# Card / section headings
--------------------------------------------------------------*/
.card-heading-secondary {
  color: var(--color-secondary);
  font-weight: 700;
}

/*--------------------------------------------------------------
# Service Bootstrap Icons (font size + brand primary color)
--------------------------------------------------------------*/
.service-icon-bi {
  font-size: 2rem;
  color: var(--color-primary);
}

.service-icon-bi--lg {
  font-size: 3rem;
  color: var(--color-primary);
}

.service-icon-xl {
  font-size: 3.5rem;
  color: var(--color-primary);
}

/*--------------------------------------------------------------
# Page icon (large icon for info / error / success pages)
--------------------------------------------------------------*/
.page-icon {
  font-size: 4rem;
  color: var(--color-primary);
}

/*--------------------------------------------------------------
# Service card lists and paragraphs
--------------------------------------------------------------*/
.service-list {
  font-size: 0.875rem;
  padding-left: 1rem;
  line-height: 1.9;
}

.service-text {
  font-size: 0.875rem;
  line-height: 1.7;
}

.service-text--sm {
  font-size: 0.9rem;
  line-height: 1.7;
}

/*--------------------------------------------------------------
# Stats section
--------------------------------------------------------------*/
.stats-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.75rem;
}

.stats-count {
  font-size: 2.5rem;
  color: var(--color-secondary);
}

/*--------------------------------------------------------------
# Pill badges
--------------------------------------------------------------*/
.badge-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

/*--------------------------------------------------------------
# Icon utility
--------------------------------------------------------------*/
.icon-primary {
  color: var(--color-primary);
}

/*--------------------------------------------------------------
# Footer section title (h6 column headings)
--------------------------------------------------------------*/
.footer-section-title {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

/*--------------------------------------------------------------
# Background / border utilities
--------------------------------------------------------------*/
.bg-brand-light {
  background: var(--color-light-bg);
}

.bg-brand-primary {
  --bs-table-bg: var(--color-primary);
  background: var(--color-primary);
}

.border-brand-light {
  border: 1px solid var(--color-border-light);
}

.bg-secondary-gradient {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%) !important;
}

/*--------------------------------------------------------------
# New services section background
--------------------------------------------------------------*/
.nuevos-servicios-section {
  background: linear-gradient(135deg, rgba(0, 186, 179, 0.06) 0%, rgba(26, 101, 143, 0.10) 100%);
  border-bottom: 3px solid var(--color-primary);
}

/*--------------------------------------------------------------
# Form utilities
--------------------------------------------------------------*/
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.link-plain {
  color: inherit;
  text-decoration: none;
}

.textarea-no-resize {
  resize: none;
}

/*--------------------------------------------------------------
# Media embeds
--------------------------------------------------------------*/
.map-embed {
  min-height: 400px;
  border: 0;
  border-radius: 8px;
}

.img-icon-80 {
  width: 80px;
  height: 80px;
  filter: brightness(0) invert(1);
}

.video-card {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/*--------------------------------------------------------------
# CTA / lema section
--------------------------------------------------------------*/
.cta-heading {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-text {
  opacity: 0.85;
}

/*--------------------------------------------------------------
# Comparison table
--------------------------------------------------------------*/
.table-head-secondary th {
  --bs-table-bg: var(--color-secondary);
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.table-cell-highlight {
  color: var(--color-primary);
  font-weight: 700;
}

/*--------------------------------------------------------------
# Item list (hemorroides food section)
--------------------------------------------------------------*/
.item-list {
  padding-left: 1.1rem;
  line-height: 1.9;
  color: var(--color-text-subtle);
}

/*--------------------------------------------------------------
# Caption text under images
--------------------------------------------------------------*/
.text-caption {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}

/*--------------------------------------------------------------
# Relaxed line-height for terms / policy lists
--------------------------------------------------------------*/
.lh-2 {
  line-height: 2;
}
