/*
Theme Name: Probaños Theme
Theme URI: https://example.com/probanos-theme
Author: Tato
Author URI: https://example.com
Description: Tema personalizado para Probaños - Sanitarios Portátiles.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: probanos
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --color-primary: #68bb4a; /* Lighter Green from footer design */
  --color-primary-dark: #6a9c29;
  --color-secondary: #0573af; /* User specified footer blue */
  --color-secondary-dark: #003355;
}

/* Footer Background Image */
.site-footer > .container {
  background-image: url('../images/back_footer.png');
  background-repeat: no-repeat;
  background-position: -50px center;
  background-size: auto 90%;
}

.site-footer .site-info .container {
  background-image: none;
}

.footer-subtitle {
  font-size: 1.6em;
}

/* Update text-primary to use the new green */
.text-success {
  color: var(--color-primary) !important;
}

/* Base Styles */
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  color: #333;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

a {
  transition: color 0.3s ease;
}

/* Bootstrap Color Overrides */
.text-primary {
  color: var(--color-primary) !important;
}
.bg-primary {
  background-color: var(--color-primary) !important;
}
.text-secondary {
  color: var(--color-secondary) !important;
}
.bg-secondary {
  background-color: var(--color-secondary) !important;
}

/* Buttons */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-secondary {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}
.btn-secondary:hover {
  background-color: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
}

/* Header Background Decoration */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, transparent 56%, var(--color-secondary) 56%, var(--color-secondary) 100%);
  z-index: 0;
  pointer-events: none;
}

.site-header .navbar {
  position: relative;
  z-index: 1;
}

/* Navigation Separators */
@media (min-width: 992px) {
  .navbar-nav .nav-item {
    display: flex;
    align-items: center;
  }

  .navbar-nav .nav-item:not(:last-child)::after {
    content: "|";
    color: var(--color-primary);
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    font-weight: 300;
    line-height: 1; /* Ensure line-height doesn't displace it */
  }
}

.nav-link {
  color: var(--color-secondary) !important;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.nav-link:hover {
  color: var(--color-primary) !important;
}

/* Header Socials */
.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background-color: #fff;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.social-icon:hover {
  background-color: var(--color-secondary);
  color: #fff;
}
.social-icon svg {
  width: 16px;
  height: 16px;
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  background-color: #fff; /* User requested white background */
  background-image: none;
  position: relative;
  margin-top: -1px;
  overflow: hidden; /* Ensure pseudo-element doesn't overflow */
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 95.5%;
  height: 100%;
  background: 
    linear-gradient(135deg, #fff 50%, transparent 50.1%),
    url('../images/hero_bg.png') right center / auto 100% no-repeat,
    var(--color-secondary);
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  display: none; /* Remove overlay for white background */
}

/* Adjust text colors in hero if needed */
.hero-section .text-primary {
  color: var(--color-primary) !important;
}

/* Custom Gradient Button for Hero */
.btn-gradient {
  background: linear-gradient(90deg, #68bb4a 0%, #0573af 100%);
  border: none;
  color: #fff;
  border-radius: 50px 50px 50px 0 !important;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(5, 115, 175, 0.4);
  color: #fff;
}

.ls-1 {
  letter-spacing: 1px;
}

/* Clients Bar */
.clients-bar {
  background-color: var(--color-primary);
  color: #fff;
}

.clients-bar img {
  max-height: 45px;
  filter: brightness(0) invert(1);
  opacity: 1;
  width: auto;
  transition: transform 0.3s ease;
}

.z-2 {
  z-index: 2;
} /* Bootstrap util if not present in older versions */

/* About Section */
.about-image-placeholder {
  transition: transform 0.5s ease;
}
.about-section:hover .about-image-placeholder {
  transform: scale(1.02);
}

/* Stats section */
.stat-card {
  background: #fff;
  border-radius: 1.5rem !important; /* Matches design_10's rounded corners */
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.stat-number {
  color: var(--color-secondary) !important;
  line-height: 1;
}

.stat-card h3 {
  color: var(--color-primary) !important;
}

/* Services Section */
.service-card {
    border-radius: 2rem !important;
}

.service-card .btn-link {
    transition: color 0.3s ease, gap 0.3s ease;
    color: var(--color-secondary) !important;
}

.service-card:hover .btn-link {
    color: var(--color-primary) !important;
    gap: 1rem !important;
}

/* Process Section */
.process-section {
  background-color: var(--color-secondary) !important;
}

.step-circle {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
  position: relative;
}

.process-step-item:hover .step-circle {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

.process-line {
  z-index: 1;
}

/* General Layout Utils */
.object-fit-cover {
  object-fit: cover;
}

/* Transition & Hover Utilities */
.transition-300 {
  transition: all 0.3s ease;
}

.hover-up:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Capacity Section */
.rounded-custom {
    border-radius: 10rem 0 10rem 10rem; /* Top-Left, Top-Right, Bottom-Right rounded, Bottom-Left sharp - adjusting slightly to match design feel */
}

@media (max-width: 991.98px) {
    .rounded-custom {
        border-radius: 5rem 0 5rem 5rem;
    }
}

.capacity-icon span {
    transition: transform 0.3s ease;
}

.capacity-item:hover .capacity-icon span {
    transform: rotate(10deg) scale(1.1);
}

/* Reasons Section */
.reasons-header {
    background-color: var(--color-primary) !important;
}

/* Negative margins with high specificity to override Gutenberg resets */
.reasons-cards-wrapper .mt-n5,
.testimonials-cards-wrapper .mt-n5,
.overlap-cards {
    margin-top: -4rem !important; /* Slightly more overlap for better visual impact */
}

@media (min-width: 992px) {
    .reasons-cards-wrapper .mt-n5,
    .testimonials-cards-wrapper .mt-n5,
    .overlap-cards {
        margin-top: -6rem !important;
    }
}

.reason-card {
    border-radius: 1.5rem !important;
}

.reason-icon span {
    transition: transform 0.3s ease;
}

.reason-card:hover .reason-icon span {
    transform: translateY(-5px);
}

/* Testimonials Section */
.testimonials-header {
    background-color: var(--color-primary) !important;
}

.testimonial-card {
    border-radius: 1.5rem !important;
}

.client-photo img {
    transition: transform 0.3s ease;
}

.testimonial-card:hover .client-photo img {
    transform: scale(1.1);
}

/* Footer Extras */
.hover-white:hover {
  color: #fff !important;
}

.site-info {
  background-color: #0473b7; /* User specified lighter blue */
}

.legal-links a:hover {
  color: #68bb4a !important; /* User requested hover color */
  opacity: 1; /* Ensure full opacity on hover */
}

.footer-navigation a:hover {
  color: #68bb4a !important;
}

/* Footer Social Icons */
.site-footer .social-icon:hover {
  background-color: #fff !important;
  color: #68bb4a !important;
  border-color: #68bb4a !important;
}

/* Gutenberg + Bootstrap Normalization */
.wp-block-group,
.wp-block-columns,
.wp-block-column {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Aggressive Grid Reset: Ensure WP doesn't break Bootstrap columns */
[class*="wp-block-"].row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: calc(-.5 * var(--bs-gutter-x)) !important;
    margin-left: calc(-.5 * var(--bs-gutter-x)) !important;
    gap: 0 !important; /* Critical fix for column wrapping */
}

[class*="wp-block-"][class*="col-"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: calc(var(--bs-gutter-x) * .5) !important;
    padding-right: calc(var(--bs-gutter-x) * .5) !important;
    flex-basis: auto !important; /* Prevent WP from forcing a width here */
}

.wp-block-group.container,
.wp-block-group.container-fluid {
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Fix for forced constrained layout margins */
[class*="wp-block-"].alignfull {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Fix for nested Group blocks adding extra padding */
.wp-block-group__inner-container {
    padding: 0 !important;
}

/* Hide page title on all pages (redundant with patterns) */
.page .entry-header {
    display: none !important;
}

/* Sobre Nosotros Page Styles */
.bg-light-section {
  background-color: #f8f9fa;
}

.quality-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.quality-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.quality-icon svg {
  stroke: var(--color-primary);
}

.ls-1 {
  letter-spacing: 1px;
}

.img-custom-rounded img {
  border-radius: 100px 100px 100px 0;
  object-fit: cover;
  width: 100%;
}
.service-hero-img-bg {
  background-color: var(--color-primary);
  border-radius: 120px 120px 120px 0;
  padding: 60px;
  display: inline-block;
  position: relative;
}

.service-hero-img-bg img {
  max-width: 110%;
  max-height: 500px;
  width: auto;
  height: auto;
  margin-left: -5%;
  margin-top: -10%;
  margin-bottom: -5%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
  object-fit: contain;
}

.service-card-green {
  background-color: var(--color-primary);
  border-radius: 100px 100px 0 0;
  overflow: hidden;
  transition: transform 0.3s ease;
  border-bottom: 0;
}

.service-card-green:hover {
  transform: translateY(-10px);
}

.service-card-green .card-img-top-wrapper {
  background-color: white;
  border-radius: 80px 80px 80px 0;
  margin: 20px;
  padding: 30px;
  text-align: center;
}

.service-card-green .card-img-top-wrapper img {
  max-width: 100%;
  height: auto;
}

.service-card-green h3, 
.service-card-green p {
  color: white;
}

.service-card-green .card-body {
  padding: 0 30px 40px 30px;
}

/* Sistema de rejilla personalizado para evitar interferencias de WordPress */
.services-row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-right: -15px;
  margin-left: -15px;
  justify-content: center;
}

.services-col {
  flex: 0 0 calc(33.333% - 30px) !important;
  max-width: calc(33.333% - 30px) !important;
  margin: 15px;
  box-sizing: border-box;
}

@media (max-width: 991.98px) {
  .services-col {
    flex: 0 0 calc(50% - 30px) !important;
    max-width: calc(50% - 30px) !important;
  }
}

@media (max-width: 767.98px) {
  .services-col {
    flex: 0 0 calc(100% - 30px) !important;
    max-width: calc(100% - 30px) !important;
  }
}
