/* ==========================================================
   VARIABLES
========================================================== */
:root {
  --main-red: #e53935;
  --main-red-dark: #b71c1c;
  --main-blue: #1976d2;
  --main-blue-light: #2196f3;
  --main-bg: #f4f8fb;
  --main-text: #222;
}

/* ==========================================================
   BASE / GLOBAL STYLES
========================================================== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--main-bg);
  color: var(--main-text);
  margin: 0;
  padding: 0;
}

/* ==========================================================
   TOP BAR
========================================================== */
.top-bar-container {
  position: sticky;
  top: 0;
  z-index: 1050;
  background-color: var(--main-blue);
  color: #fff;
  border-bottom: 1px solid #e0e0e0;
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-family: 'Roboto Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  user-select: none;
  justify-content: center;
  position: relative;
}
.top-bar-container i {
  cursor: pointer;
  user-select: none;
  width: 20px;
  text-align: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.top-bar-container i:hover {
  opacity: 1;
}
.top-bar-container .left-chevron {
  left: 1rem;
}
.top-bar-container .right-chevron {
  right: 1rem;
}
.slider-wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 300px;
  height: 38px;
  position: relative;
  text-align: center;
}
.slider-texts {
  white-space: nowrap;
  display: inline-block;
  position: relative;
  left: 0;
  font-weight: 600;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  line-height: 38px;
  color: white;
  user-select: none;
  transition: left 0.5s ease;
  min-width: 300px;
}

/* ==========================================================
   NAVBAR
========================================================== */
nav.navbar {
  background-color: #fff !important;
  position: sticky;
  top: 0;
  z-index: 1100;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav.navbar .logo {
  height: 40px;
  cursor: pointer;
}
.nav-links {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
  align-items: center;
}
.nav-links a {
  color: var(--main-black) !important;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}
.nav-links a:hover,
.nav-links a:focus {
  color: var(--main-red) !important;
  outline: none;
}
.phone-link {
  color: var(--main-black) !important;
  font-size: 1.5rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.3s ease;
}
.phone-link:hover,
.phone-link:focus {
  color: var(--main-red) !important;
  outline: none;
}
.hamburger {
  font-size: 1.8rem;
  color: black !important;
  cursor: pointer;
  display: none;
  flex-shrink: 0;
}

/* ==========================================================
   MOBILE MENU
========================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 75%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--main-blue);
  color: #fff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.7);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: left 0.3s ease;
  z-index: 1200;
}
.mobile-menu.open {
  left: 0;
}
.mobile-menu .close-btn {
  align-self: flex-end;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu nav a {
  color: #fff;
  border-bottom: 1px solid var(--main-blue-light);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}
.mobile-menu nav a:hover,
.mobile-menu nav a:focus {
  color: #000000;
  outline: none;
}

/* ==========================================================
   HERO SECTION
========================================================== */
.hero {
  background: url(assets/IMG_2.jpeg) center center / cover no-repeat, #5d666f;
  background-blend-mode: multiply;
  height: calc(75vh - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 15px;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: white !important;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-style: italic;
  color: #fff;
}
.btn-warning {
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  font-size: 1.25rem;
  border-radius: 50px;
  letter-spacing: 0.05rem;
  background-color: var(--main-blue) !important;
  color: #ffffff;
  border: none;
}
.btn-warning:hover,
.btn-warning:focus {
  background-color: #e0a800;
  color: #222;
  border: none;
}
.btn-phone {
  margin-top: 15px;
  background-color: var(--main-blue) !important;
  border-color: #e0a800;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  font-size: 1.25rem;
  border-radius: 50px;
  letter-spacing: 0.05rem;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}
.btn-phone:hover,
.btn-phone:focus {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #111;
  text-decoration: none;
}

/* ==========================================================
   HERO BOTTOM SECTION
========================================================== */
.hero-bottom-section {
  background-color: #fff;
  color: #222;
  padding: 40px 15px 60px 15px;
}
.hero-bottom-section h3 {
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 15px;
  margin-top: 15px;
  text-transform: none;
  text-align: center;
  color: black;
}
.hero-bottom-section p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0;
  text-align: center;
}

/* ==========================================================
   SECTION TITLES
========================================================== */
.section-title {
  font-weight: 800;
  font-size: 2.5rem;
  border-bottom: 3px solid var(--main-blue) !important;
  padding-bottom: 10px;
  padding-top: 30px;
  margin-bottom: 40px;
  margin-top: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  text-align: center;
  color: black;
}

/* ==========================================================
   SERVICES SECTION
========================================================== */
.services-section {
  padding: 60px 15px;
  max-width: 960px;
  margin: 0 auto;
  background-color: var(--main-bg);
  color: var(--main-text);
}
.services-section h2 {
  font-weight: 800;
  font-size: 2rem;
  border-bottom: 3px solid var(--main-blue);
  padding-bottom: 10px;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--main-black);
  text-align: center;
}
.service-item {
  background-color: #fff;
  text-align: center;
  color: #222;
  border-radius: 8px;
  padding: 30px 20px;
  margin-bottom: 50px;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.08);
  transition: box-shadow 0.3s ease;
}
.service-item:hover {
  box-shadow: 0 0 20px #ffc107;
}
.service-icon {
  font-size: 4rem;
  color: #ffc107;
  margin-bottom: 20px;
  display: block;
  text-align: center;
}
.service-title {
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 15px;
  text-align: center;
  color: #ffc107;
}
.service-description {
  font-size: 1.1rem;
  color: #444;
  text-align: center;
  line-height: 1.5;
}

/* ===== Servicios Section (Index) ===== */
#services.services-section {
  padding: 60px 0 60px 0;
}
#services .section-title {
  color: #000000;
  border-bottom: 3px solid #1976d2;
  margin-bottom: 2.5rem;
  text-align: center;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
}
#services .row {
  justify-content: center;
  gap: 0;
}
#services .service-title,
#services .service-description,
#services .service-icon {
  color: #111 !important;
}
#services .service-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
#services .service-description {
  font-size: 0.98rem;
  color: #111 !important;
  margin-bottom: 0;
}
#services .service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}
#services .col-12,
#services .col-md-3 {
  margin-bottom: 1.5rem;
}
#services .p-4 {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(25, 118, 210, 0.07);
  transition: box-shadow 0.2s;
  border: none;
}
#services .p-4:hover,
#services .p-4:focus-within {
  box-shadow: 0 4px 24px 0 rgba(229, 57, 53, 0.13);
  transform: translateY(-3px) scale(1.03);
}
.rounded {
  height: 100%;
}

/* ==========================================================
   GALLERY CAROUSEL
========================================================== */
.gallery-carousel {
  box-shadow: 0 4px 24px 0 rgba(25, 118, 210, 0.10);
  border-radius: 1.5rem;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.gallery-carousel .carousel-inner {
  scroll-behavior: smooth;
}
.gallery-carousel .carousel-item {
  transition: transform 0.7s cubic-bezier(.4,0,.2,1), opacity 0.7s cubic-bezier(.4,0,.2,1);
}
.gallery-carousel .carousel-inner img {
  object-fit: cover;
  max-height: 400px;
  min-height: 220px;
  width: 100%;
  border-radius: 0.5rem;
  user-select: none;
  transition: opacity 0.4s;
}
.gallery-carousel .img-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  font-weight: 900;
  font-size: 2.6rem;
  color: #fff;
  opacity: 0.95;
  user-select: none;
  pointer-events: auto;
  text-shadow: 0 4px 16px #1976d2, 0 0 16px #000;
  padding: 0 0.5rem;
  transition: opacity 0.2s;
}
.gallery-carousel .img-arrow.left {
  left: 1rem;
}
.gallery-carousel .img-arrow.right {
  right: 1rem;
}
.gallery-carousel .img-arrow svg {
  width: 2.8rem;
  height: 2.8rem;
  fill: #fff;
  opacity: 1;
  filter: drop-shadow(0 4px 16px #1976d2) drop-shadow(0 0 8px #000);
  background: rgba(25,118,210,0.25);
  border-radius: 50%;
  padding: 0.2rem;
  box-sizing: content-box;
}
.center-text {
  text-align: center;
  font-size: 1rem;
  padding-top: 18px;
  padding-bottom: 18px;
}
.padding-img-arrow {
  padding: 0.5rem;
}

/* ==========================================================
   GALLERY GRID
========================================================== */
.gallery-img {
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ffc107;
}
.row {
  margin-top: 15px;
  margin-bottom: 0px
}

.mini-carousel {
  gap: 0.5rem;
}
.mini-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s, transform 0.2s;
}
.mini-thumb:hover, .mini-thumb.active {
  border: 2px solid #1976d2;
  transform: scale(1.07);
}

/* ==========================================================
   FOOTER
========================================================== */
footer {
  background-color: var(--main-blue);
  color: #fff;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.05rem;
  border-top: 1px solid #e0e0e0;
}

/* ==========================================================
   CONTACT FORM
========================================================== */
.contact-form label,
.form-label {
  color: var(--main-blue);
}

.row {
  padding-bottom: 50px;
}

.form-control {
  background-color: #fff;
  color: var(--main-text);
  border: 1px solid var(--main-blue-light);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-control:focus {
  border-color: var(--main-red);
  background-color: #fff;
  color: var(--main-text);
  outline: none;
}
.btn-submit {
  background-color: #ffc107;
  color: #222;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.75rem 1.75rem;
  font-size: 1.25rem;
  width: 100%;
  transition: background-color 0.3s ease;
  border: none;
}
.btn-submit:hover,
.btn-submit:focus {
  background-color: #e0a800;
  color: #222;
  outline: none;
}
.contact-info {
  max-width: 600px;
  margin: 0 auto 40px;
  padding: 20px;
  background: #222;
  border-radius: 12px;
  box-shadow: 0 0 15px #ffc107aa;
  color: #ffc107;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
}
.contact-info p {
  margin-bottom: 0.75rem;
}
.contact-info a {
  color: #ffc107;
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-info a:hover,
.contact-info a:focus {
  color: #ffdb4d;
  text-decoration: underline;
  outline: none;
}

/* ==========================================================
   ABOUT SECTION
========================================================== */
.about-section {
  max-width: 960px;
  /*margin: 60px auto 80px; ? */
  padding: 0 15px;
  color: var(--main-text);
  background-color: #fff;
}
.about-title {
  font-weight: 900;
  font-size: 2.75rem;
  text-align: center;
  padding-bottom: 40px;
  padding-top: 40px;
  letter-spacing: 0.15rem;
  border-bottom: 4px solid var(--main-blue);
}
.about-content {
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 10px;
  text-align: center;
  color: #444;
}
.about-image {
  max-width: 100%;
  margin: 40px auto 40px;
  display: block;
  border-radius: 12px;
  box-shadow: 0 0 20px var(--main-blue-light);
  transition: transform 0.3s ease;
}
.about-image:hover,
.about-image:focus {
  transform: scale(1.05);
  outline: none;
}



/* ==========================================================
   VIDEO SECTION
========================================================== */

#video{
  margin-bottom: 90px;
}


/* ==========================================================
   UTILITY CLASSES
========================================================== */
.bg-dark {
  background-color: #fff !important;
  color: var(--main-text) !important;
}
.text-light {
  color: var(--main-text) !important;
}
.bg-black {
  background-color: #fff !important;
  color: var(--main-text) !important;
}

/* ==========================================================
   RESPONSIVE STYLES
========================================================== */
@media (max-width: 991px) {
  .gallery-carousel .carousel-inner img {
    max-height: 260px;
    min-height: 120px;
  }
  .gallery-carousel .img-arrow {
    font-size: 2rem;
  }
  .gallery-carousel .img-arrow.left {
    left: 0.5rem;
  }
  .gallery-carousel .img-arrow.right {
    right: 0.5rem;
  }
  .gallery-carousel .img-arrow svg {
    width: 2rem;
    height: 2rem;
  }
  #services .col-md-3 {
    margin-bottom: 2rem;
  }
}
@media (max-width: 768px) {
  .nav-links,
  .phone-link {
    display: none;
  }
  .hamburger {
    display: block;
  }
  nav.navbar .logo {
    height: 32px;
  }
}
@media (max-width: 767px) {
  #services .section-title {
    font-size: 1.4rem;
  }
  #services .service-title {
    font-size: 1rem;
  }
  #services .service-description {
    font-size: 0.93rem;
  }
  #services .service-icon {
    font-size: 2rem;
  }
}
@media (max-width: 576px) {
  .top-bar-container {
    font-size: 12px;
    padding: 0 0.75rem;
    height: 32px;
  }
  .slider-wrapper {
    max-width: 220px;
    height: 32px;
  }
  .slider-texts {
    font-size: 12px;
    line-height: 32px;
    min-width: 220px;
  }
  .top-bar-container i.left-chevron {
    left: 0.75rem;
  }
  .top-bar-container i.right-chevron {
    right: 0.75rem;
  }
  .row>*{
    margin-bottom: 15px;
  }
  #gallery {
    margin-top: 2rem !important;
    padding-top: 0px !important;
  }
  #services {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }
  .section-title {
    font-size: 2rem;
    margin-top:0px !important;
    padding-top: 25px !important;
  }
  #services .section-title {
    font-size: 1.8rem !important;
  }
  .services-section h2 {
    margin-top: 2.5rem !important;
  }
  .about-image{
    max-width: 100% ;
    height: auto;
  }
  .gallery-carousel {
    border-radius: 0.7rem;
  }
  .gallery-carousel .carousel-inner img {
    max-height: 500px;
    min-height: 350px;
    border-radius: 0.4rem;
  }
  .gallery-carousel .img-arrow {
    font-size: 1.2rem;
  }
  .gallery-carousel .img-arrow svg {
    width: 1.4rem;
    height: 1.4rem;
  }
  .large-img,
  .grid-left,
  .grid-small {
    height: auto;
  }
  .hero-bottom-section {
    padding: 40px 15px 15px;
  }
}

/* Responsive text for mobile (applies to all pages, including services) */
@media (max-width: 576px) {
  .section-title,
  .h2_service {
    font-size: 1.5rem;
    padding-top: 18px;
    padding-bottom: 6px;
    margin-bottom: 24px;
    margin-top: 10px;
  }
  .about-content,
  .service-description,
  .center-text,
  .services-section h2,
  .service-title {
    font-size: 0.98rem !important;
  }
  .service-title {
    font-size: 1.1rem !important;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* Responsive text for mobile (applies to about page and all pages) */
@media (max-width: 576px) {
  .about-title {
    font-size: 1.5rem !important;
    margin-bottom: 1rem;
    margin-top: 1rem;
  }
  .about-content {
    font-size: 0.98rem !important;
  }
  .about-image {
    max-width: 100%;
    height: auto;
  }
}
