/* ===================================
   CONSTRUCCIONES MIX - CUSTOM STYLES
   =================================== */

/* Variables */
:root {
  --primary-color: #0066cc;
  --secondary-color: #00b4d8;
  --accent-color: #ff6b35;
  --dark-color: #1a1a1a;
  --light-color: #f8f9fa;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --font-primary: "Poppins", sans-serif;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--gray-200); /* <- gris clarito */
  min-height: 100vh;
}


html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* making sure all sections are visible */
section {
  position: relative;
  z-index: 1;
  background: transparent; /* <- deja ver el gris del body */
}

.section-padding {
  padding: 100px 0;
}

/* Section Headers */
.section-tag {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-description {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.95);
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.98);
  padding: 15px 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  padding: 0;
  display: flex;
  align-items: center;
}

.logo-placeholder {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 10px;
  padding: 5px;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
  color: var(--white);
  font-weight: 500;
  padding: 10px 20px;
  margin: 0 5px;
  border-radius: 8px;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: rgba(4, 5, 7, 0.2);
  color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Ready for custom background image - replace the placeholder URL with your image path */
  background-image: linear-gradient(135deg, rgba(0, 102, 204, 0.85) 0%, rgba(0, 180, 216, 0.75) 100%),
    url("/images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--white);
}

/* Removed unnecessary overlay that was causing visibility issues */
.hero-overlay {
  display: none;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 72px;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  /* ensuring text is visible */
  color: var(--white);
}

.hero-subtitle {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 15px;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
  /* ensuring text is visible */
  color: var(--white);
}

.hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.95;
  /* ensuring text is visible */
  color: var(--white);
}

.btn-hero {
  background: var(--accent-color);
  color: var(--white);
  padding: 18px 45px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 18px;
  border: none;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
  transition: var(--transition);
}

.btn-hero:hover {
  background: #ff5722;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.5);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  font-size: 32px;
  color: var(--white);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-20px);
  }
  60% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* Services Section */
.services-section {
  background: var(--gray-100);
  position: relative;
  z-index: 2;
}

.animated-card {
  position: relative;
  overflow: hidden;
}

.animated-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
  transition: left 0.5s ease;
}

.animated-card:hover::before {
  left: 100%;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 36px;
  color: var(--white);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: rotate(10deg) scale(1.1);
}

.service-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.service-description {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 25px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
}

.feature-item i {
  color: var(--primary-color);
  font-size: 18px;
}

/* Pool Specialty Section */
.pool-specialty-section {
  background: var(--white);
  /* ensuring visibility */
  position: relative;
  z-index: 2;
}

.specialty-image-wrapper {
  position: relative;
}

.specialty-badge {
  position: absolute;
  top: 30px;
  right: 30px;
  background: var(--accent-color);
  color: var(--white);
  padding: 15px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

.specialty-badge i {
  font-size: 24px;
}

.specialty-features {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.specialty-item {
  display: flex;
  gap: 20px;
}

.specialty-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 24px;
}

.specialty-content h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark-color);
}

.specialty-content p {
  font-size: 15px;
  color: var(--gray-600);
  margin: 0;
}

/* Landscaping Section */
.landscaping-section {
  background: var(--gray-100);
  position: relative;
  z-index: 2;
}

.landscaping-image-wrapper {
  position: relative;
}

.landscaping-stats {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 150px;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-number .counter {
  display: inline-block;
  min-width: 80px;
  transition: all 0.3s ease;
}

.stat-number i {
  font-size: 32px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.stat-label {
  font-size: 16px;
  color: var(--gray-600);
  font-weight: 500;
}

.landscaping-features {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.feature-badge {
  background: var(--white);
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  color: var(--dark-color);
}

.feature-badge i {
  color: var(--primary-color);
  font-size: 18px;
}

/* History Section */
.history-section {
  background: var(--white);
  /* ensuring visibility */
  position: relative;
  z-index: 2;
}

.history-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.history-card {
  display: flex;
  gap: 30px;
  padding: 40px;
  background: var(--gray-100);
  border-radius: 20px;
  border-left: 5px solid var(--primary-color);
}

.history-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 28px;
}

.history-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.history-text p {
  font-size: 16px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.8;
}

/* Workflow Section */
.workflow-section {
  background: var(--gray-100);
  /* ensuring visibility */
  position: relative;
  z-index: 2;
}

.workflow-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.workflow-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.workflow-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 48px;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
}

.workflow-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 36px;
  color: var(--white);
}

.workflow-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.workflow-description {
  font-size: 15px;
  color: var(--gray-600);
  margin: 0;
}

.workflow-benefits {
  background: var(--white);
  padding: 50px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.benefit-item {
  text-align: center;
}

.benefit-item i {
  font-size: 48px;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.benefit-item h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.benefit-item p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
}

/* Coverage Section */
.coverage-section {
  background: var(--white);
  /* ensuring visibility */
  position: relative;
  z-index: 2;
}

.coverage-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.coverage-item {
  display: flex;
  gap: 20px;
}

.coverage-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 24px;
}

.coverage-content h5 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark-color);
}

.coverage-content p {
  font-size: 15px;
  color: var(--gray-600);
  margin: 0;
}

.coverage-cta .btn {
  background: var(--primary-color);
  color: var(--white);
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  box-shadow: var(--shadow-md);
}

.coverage-cta .btn:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.coverage-map-wrapper {
  position: relative;
}

.map-badge {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: var(--accent-color);
  color: var(--white);
  padding: 15px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

.map-badge i {
  font-size: 24px;
}

/* Gallery Section */
.gallery-section {
  background: var(--gray-100);
  /* ensuring visibility */
  position: relative;
  z-index: 2;
}

.gallery-carousel-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-inner {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.carousel-item {
  height: 600px;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(0, 102, 204, 0.9);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--accent-color);
}

.carousel-indicators {
  margin-bottom: -40px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
}

/* Contact Section */
.contact-section {
  background: var(--white);
  /* ensuring visibility */
  position: relative;
  z-index: 2;
}

.contact-card {
  display: block;
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 2px solid transparent;
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.contact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 36px;
  color: var(--white);
}

.contact-icon.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.contact-icon.instagram {
  background: linear-gradient(135deg, #e1306c, #c13584, #833ab4);
}

.contact-icon.facebook {
  background: linear-gradient(135deg, #1877f2, #0c63d4);
}

.contact-icon.gmail {
  background: linear-gradient(135deg, #ea4335, #c5221f);
}

.contact-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.contact-description {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.contact-arrow {
  font-size: 24px;
  color: var(--primary-color);
}

.contact-info-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 50px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.banner-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.banner-text {
  font-size: 16px;
  margin: 0;
  opacity: 0.95;
}

.contact-info-banner .btn-light {
  background: var(--white);
  color: var(--primary-color);
  font-weight: 600;
  padding: 15px 35px;
  border-radius: 50px;
}

.contact-info-banner .btn-light:hover {
  background: var(--gray-100);
  transform: translateY(-3px);
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 80px 0 0;
  position: relative;
  z-index: 2;
}

.footer-brand {
  margin-bottom: 30px;
}

.footer-logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo-placeholder {
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 10px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.footer-description {
  font-size: 15px;
  color: var(--gray-400);
  margin-bottom: 25px;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 15px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 15px;
  color: var(--gray-400);
}

.footer-contact i {
  color: var(--primary-color);
  font-size: 18px;
  margin-top: 2px;
}

.footer-bottom {
  margin-top: 60px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  font-size: 14px;
  color: var(--gray-400);
  margin: 0;
}

.footer-developer {
  font-size: 14px;
  color: var(--gray-400);
  margin: 0;
}

.developer-link {
  color: var(--secondary-color);
  font-weight: 600;
  transition: var(--transition);
}

.developer-link:hover {
  color: var(--accent-color);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 991px) {
  .section-padding {
    padding: 70px 0;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 24px;
  }

  .section-title {
    font-size: 32px;
  }

  .navbar-nav {
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
  }

  /* Responsive navbar brand */
  .brand-name {
    font-size: 20px;
  }

  .logo-placeholder {
    width: 50px;
    height: 50px;
  }

  .carousel-item {
    height: 400px;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-description {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-description {
    font-size: 16px;
  }

  .stat-number {
    font-size: 36px;
  }

  .carousel-item {
    height: 300px;
  }

  /* Fixed truncated carousel control styles */
  .carousel-control-prev,
  .carousel-control-next {
    width: 45px;
    height: 45px;
  }

  .carousel-control-prev {
    left: 10px;
  }

  .carousel-control-next {
    right: 10px;
  }

  .contact-info-banner {
    padding: 30px 20px;
    text-align: center;
  }

  .banner-title {
    font-size: 22px;
  }
}

@media (max-width: 575px) {
  .section-padding {
    padding: 50px 0;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .btn-hero {
    padding: 15px 30px;
    font-size: 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .landscaping-stats {
    flex-direction: column;
  }

  .stat-item {
    min-width: 100%;
  }
}


@media (max-width: 991px) {
  .hero-section {
    background-attachment: scroll;
    background-position: center;
  }
}


/* ===================================
   FONDO GRIS GLOBAL - OVERRIDE SEGURO
   =================================== */

html, body, section {
  background-color: #e0e0e0 !important;
}

/* Por si algún contenedor gigante tiene fondo blanco */
.main,
.container-main,
.wrapper,
.content,
.page-wrapper,
.page-container {
  background-color: #e0e0e0 !important;
}

/* Secciones que suelen venir con fondo blanco */
.services-section,
.landscaping-section,
.history-section,
.workflow-section,
.coverage-section,
.gallery-section,
.pool-specialty-section {
  background-color: #e0e0e0 !important;
}

/* Cards que deben permanecer blancas (puedo oscurecerlas si querés) */
.card,
.service-card,
.history-card,
.workflow-card,
.workflow-benefits {
  background-color: #ffffff !important;
}
