/* ============================================================
   NATURESS — Custom Stylesheet
   Bootstrap 5 companion styles
   ============================================================ */

/* -----------------------------------------------
   CSS VARIABLES
----------------------------------------------- */
:root {
  --primary:        #1a3a5c;
  --primary-dark:   #122840;
  --accent:         #1a3a5c;
  --accent-dark:    #0670b2;
  --text-dark:      #2c3e50;
  --text-muted:     #6c757d;
  --bg-light:       #ffffff;
  --bg-gray:        #f4f7f9;
  --bg-dark:        #1a3a5c;
  --section-pad:    90px 0;
  --border-radius:  12px;
  --shadow:         0 6px 30px rgba(0, 0, 0, 0.09);
  --transition:     0.3s ease;
}

/* -----------------------------------------------
   BASE
----------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-dark);
}

img {
  display: block;
  max-width: 100%;
}

/* -----------------------------------------------
   SECTION BASE  — espaciado homogéneo
----------------------------------------------- */
section {
  padding: var(--section-pad);
}

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

#about {
  background-color: #2c3e50;
}

#about .section-title {
  color: #ffffff;
}

#about .section-title::after {
  background: var(--accent);
}

#about p {
  color: rgba(255, 255, 255, 0.85) !important;
}

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

#instituciones {
  background-image: url('/themes/naturess/images/demo-instituciones.jpeg');
  background-size: cover;
  background-position: center;
  position: relative;
}

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

#centro {
  background-image: url('/themes/naturess/images/saneamiento-demo-min.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

#centro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
}

/* -----------------------------------------------
   SECTION TITLE
----------------------------------------------- */
.section-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* Variant: left-aligned title (dark section) */
.section-title.text-start::after {
  margin-left: 0;
}

.section-title.text-white {
  color: #ffffff;
}

/* -----------------------------------------------
   BUTTONS
----------------------------------------------- */
.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.8rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 196, 160, 0.35);
}

.btn-outline-accent {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 0.6rem 1.7rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-outline-accent:hover {
  background-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

/* -----------------------------------------------
   BREADCRUMB COMPARTIDO
----------------------------------------------- */
.detalle-breadcrumb {
  margin-bottom: 1.2rem;
}

.detalle-breadcrumb .breadcrumb {
  font-size: 0.82rem;
  font-family: 'Montserrat', sans-serif;
  background: none;
  padding: 0;
  margin: 0;
}

.detalle-breadcrumb .breadcrumb-item a {
  color: var(--accent);
  font-weight: 600;
}

.detalle-breadcrumb .breadcrumb-item.active {
  color: var(--text-muted);
}

.detalle-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #adb5bd;
}

/* -----------------------------------------------
   UTILITY
----------------------------------------------- */
.text-accent {
  color: var(--accent) !important;
}

.fw-700 {
  font-weight: 700;
}

.opacity-85 {
  opacity: 0.85;
}

/* -----------------------------------------------
   NAVBAR
----------------------------------------------- */
#mainNav {
  background-color: #ffffff;
  padding: 1.1rem 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: padding 0.4s ease, box-shadow 0.4s ease;
}

#mainNav.nav-scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary);
}

#mainNav .navbar-brand i {
  color: var(--accent);
}

#mainNav .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  padding: 0.4rem 0.8rem;
  transition: color var(--transition);
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--accent);
}

/* -----------------------------------------------
   HERO SECTION
----------------------------------------------- */
.hero-section {
  min-height: 100vh;
  background-image: url('images/hero-demo.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(255 255 255 / 83%),
    rgb(255 255 255 / 83%)
  );
}

.hero-logo {
  color: var(--accent);
  filter: drop-shadow(0 2px 8px rgba(46, 196, 160, 0.5));
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #2c3e50;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  letter-spacing: 0.12em;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #2c3e50;
}

.hero-desc {
  font-size: 0.95rem;
  max-width: 640px;
  color: #000000;
  line-height: 1.8;
}

/* -----------------------------------------------
   QUIÉNES SOMOS
----------------------------------------------- */
.team-photo-wrapper {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.team-photo-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-photo-wrapper:hover img {
  transform: scale(1.03);
}

/* -----------------------------------------------
   FASES DEL PROYECTO
----------------------------------------------- */
.fase-card {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.fase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.fase-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.3rem;
  font-size: 1.6rem;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(46, 196, 160, 0.35);
}

.fase-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.7rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.fase-card-link {
  display: block;
  text-decoration: none;
  height: 100%;
  color: inherit;
}

.fase-card-link:hover .fase-card {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.fase-card-link:hover .fase-label {
  color: var(--accent);
}

.fase-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  transition: gap var(--transition), color var(--transition);
}

.fase-link:hover {
  color: var(--accent-dark);
  gap: 9px;
}

/* -----------------------------------------------
   NUESTRO EQUIPO
----------------------------------------------- */
.team-card {
  background: transparent;
  padding: 0.5rem 0.5rem 1.2rem;
  text-align: center;
}

.team-photo {
  position: relative;
  display: block;
  margin-bottom: 1.8rem;
}

.team-photo::before {
  content: '';
  position: absolute;
  bottom: 30px;
  left: -20px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border: 7px solid #3498db;
  border-radius: 0;
  z-index: 0;
  transition: bottom var(--transition), left var(--transition);
}



.team-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  display: block;
  box-shadow: 4px 4px 18px rgba(0, 0, 0, 0.12);
}

.team-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.team-role {
  font-size: 0.82rem;
  color: var(--accent);
  display: block;
  font-weight: 600;
}

/* -----------------------------------------------
   TECNOLOGÍAS
----------------------------------------------- */
.tech-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.tech-list li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.tech-img-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tech-img-wrapper img {
  width: 100%;
  object-fit: cover;
}

.tech-divider {
  border-color: #dce4ec;
  margin: 0;
}

.tech-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--accent);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
}

/* -----------------------------------------------
   CENTRO DE SANEAMIENTO
----------------------------------------------- */
.centro-video-wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 2;
  margin-right: -40px;
}

.centro-video-wrapper iframe {
  display: block;
}

.centro-text-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 2.5rem 2.2rem 2.5rem 3.5rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

@media (max-width: 991.98px) {
  .centro-video-wrapper {
    margin-right: 0;
    margin-bottom: -30px;
    z-index: 2;
  }

  .centro-text-card {
    padding: 2.5rem 1.8rem 2rem;
    padding-top: 3.5rem;
  }
}

.centro-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.centro-card-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

/* -----------------------------------------------
   AGENDA
----------------------------------------------- */
.agenda-card {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.agenda-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}

.agenda-img {
  position: relative;
  overflow: hidden;
}

.agenda-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.agenda-date {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}

.agenda-body {
  padding: 1.4rem 1.5rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.agenda-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.7rem;
  line-height: 1.4;
}

.agenda-body .link-accent {
  color: var(--accent);
  margin-top: auto;
  padding-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition), color var(--transition);
}

.agenda-body .link-accent:hover {
  color: var(--accent-dark);
  gap: 8px;
}

/* -----------------------------------------------
   INSTITUCIONES COLABORADORAS
----------------------------------------------- */
.logos-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.14);
  padding: 3rem 3.5rem;
  margin: 0 auto;
  padding-bottom: 6.5rem;
  padding-top: 6rem;
}

.logos-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0 2rem;
}

.institucion-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  opacity: 0.9;
  transition: opacity var(--transition), transform var(--transition);
}

.institucion-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.institucion-logo img {

  width: auto;
  max-width: 120px;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .logos-track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .logos-card {
    padding: 2rem 1.5rem;
  }

  .institucion-logo {
    flex: 0 0 calc(33.33% - 1rem);
  }
}

/* -----------------------------------------------
   CONTACTO
----------------------------------------------- */
.contact-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  margin-bottom: 1.3rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.contact-info-list li i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-info-list a {
  color: var(--text-dark);
}

.contact-info-list a:hover {
  color: var(--accent);
}

.map-placeholder {
  height: 280px;
  background: var(--bg-gray);
  border: 2px dashed #d0dde8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-inner {
  text-align: center;
}

/* Contact form */
.contact-form .form-control {
  border: 1.5px solid #dce4ec;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  background: var(--bg-gray);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 196, 160, 0.18);
  background: #ffffff;
}

.contact-form .form-control::placeholder {
  color: #adb5bd;
}

/* -----------------------------------------------
   SOCIAL LINKS
----------------------------------------------- */
.social-links {
  display: flex;
  gap: 0.6rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.social-link:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

/* For contact section (light bg) */
#contacto .social-link {
  background: var(--bg-gray);
  border-color: #d0dde8;
  color: var(--text-muted);
}

#contacto .social-link:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* -----------------------------------------------
   BACK TO TOP
----------------------------------------------- */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(90, 159, 212, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  z-index: 999;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

/* -----------------------------------------------
   FOOTER
----------------------------------------------- */
.site-footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
}

.site-footer .brand-name {
  font-size: 1.2rem;
}

.footer-tagline {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0.3rem 0 0;
  letter-spacing: 0.04em;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  justify-content: center;
}

.footer-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1.2rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* -----------------------------------------------
   RESPONSIVE TWEAKS
----------------------------------------------- */
@media (max-width: 991.98px) {
  :root {
    --section-pad: 70px 0;
  }

  .hero-section {
    background-attachment: scroll;
  }

  .tech-img-wrapper img,
  .centro-img-wrapper img {
    height: 260px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-pad: 56px 0;
  }

  .team-photo-wrapper img {
    height: 280px;
  }

  .section-title {
    margin-bottom: 2rem;
  }
}





.contactenos-intro {
  font-size: 14px;
  color: #919297;
  margin-bottom: 15px;
  font-weight: 500;
}
.contactenos-datos {
  display: flex;
  flex-direction: column;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-icon {
  width: 45px;
  height: 45px;
  min-width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0670b2;
  color: white;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 16px;
}
.contact-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-item {
  display: flex;
  align-items: unset;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}
.contact-text p {
  font-size: 13px;
  color: #919297;
  margin-bottom: 4px;
  line-height: 1.6;
}
.contact-text a {
  color: #0670b2;
  text-decoration: none;
  transition: all 0.2s ease-out;;
}
.contactenos-form {
  background: #ffffff;
  padding: 40px;
  border-radius:16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-item:last-child {
  border-bottom: none;
}



.form-item {
  margin-block: 1.5rem;
}
.form-item__label, .js-form-required  {
  display: table;
  margin-block: calc(0.5rem / 2);
  font-size: 0.889rem;
  font-weight: bold;
  line-height: calc(18rem / 16);
  color: #212529;
}
.form-item__label.form-required::after, .fieldset__label.form-required::after,.js-form-required::after {
  display: inline-block;
  margin-inline: 0.15em;
  content: "*";
  color: #dc2323;
  font-size: 0.875rem;
}

.form-control {
  margin-top: .25rem;
  font-size: .875em;
  color: rgba(33, 37, 41, 0.75);

  appearance: none;
  border-radius: 0.125rem;
  border: 1px solid #919297;
  padding: .75rem .95rem
}
.form-control:hover {
  border-color: #232429;
  box-shadow: inset 0 0 0 1px #232429;
}
.detalle-page {
  padding-top: 80px;
}
body.toolbar-horizontal nav.navbar.navbar-expand-lg{
  margin-top: 75px;
}
@media (max-width: 767.98px) {
  #mainNav {
    padding: 0 !important;
  }
}
