/* ==================================================
   FONTS
================================================== */
@font-face {
  font-family: 'Dosis';
  src: url('/assets/fonts/dosis-book.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ==================================================
   VARIABLES GLOBALES
================================================== */
:root {
  /* Fonts */
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --hero-font: "Dosis", sans-serif;
  --heading-font: "Dosis", sans-serif;
  --nav-font: "Roboto", sans-serif;

  /* Colors */
  --background-color: #ffffff;
  --default-color: #555454;
  --heading-color: #111111;

  /* Color principal de marca */
  --accent-color: #e00f2c;

  --surface-color: #ffffff;
  --contrast-color: #ffffff;

  /* Navigation */
  --nav-color: #444444;
  --nav-hover-color: #e00f2c;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #444444;
  --nav-dropdown-hover-color: #e00f2c;

  /* UX */
  scroll-behavior: smooth;
}

/* ==================================================
   COLOR PRESETS
================================================== */
.light-background {
  --background-color: #f7f7f7;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  line-height: 1.6;
}

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

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 700;
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  font-family: var(--hero-font);
  background-color: var(--background-color);
  padding: 14px 0;
  transition: all 0.4s ease;
  z-index: 997;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.header .container {
  display: flex;
  align-items: center;
}

/* Logo */
.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header .logo img {
  max-height: 70px;
}

.header .logo h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--heading-color);
}

.header .logo span {
  color: var(--accent-color);
}

/* Social icons */
.header .header-social-links {
  padding-left: 20px;
}

.header .header-social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 45%);
  padding-left: 12px;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
  font-size: 16px;
}

.header .header-social-links a:hover {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Mobile Header
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .header {
    padding: 10px 0;
  }

  .header .logo {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .header .logo img {
    max-height: 52px;
  }

  .header .logo h1 {
    font-size: 18px;
  }

  .header .logo span {
    font-size: 18px;
  }
}


/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/

/* ================= Desktop ================= */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a {
    color: var(--nav-color);
    padding: 18px 16px;
    font-size: 13px;
    font-family: var(--nav-font);
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
  }

  .navmenu a i {
    font-size: 12px;
    transition: transform 0.3s ease;
  }

  .navmenu li:hover > a i {
    transform: rotate(180deg);
  }

  .navmenu li:hover > a,
  .navmenu .active {
    color: var(--nav-hover-color);
  }

  /* Dropdown */
  .navmenu .dropdown ul {
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    position: absolute;
    top: 120%;
    left: 14px;
    opacity: 0;
    visibility: hidden;
    border-radius: 6px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    z-index: 99;
  }

  .navmenu .dropdown:hover > ul {
    opacity: 1;
    visibility: visible;
    top: 100%;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 14px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a:hover {
    color: var(--nav-dropdown-hover-color);
    background: color-mix(in srgb, var(--accent-color), transparent 92%);
  }
}

/* ================= Mobile ================= */
@media (max-width: 768px) {
  body,
  html {
    overflow-x: hidden;
  }

  .mobile-nav-toggle {
    font-size: 32px;
    cursor: pointer;
    z-index: 10001;
  }

  /* Panel principal */
  .navmenu > ul {
    position: fixed;
    inset: 0;
    padding: 70px 20px;
    background-color: var(--nav-mobile-background-color);
    display: none;
    z-index: 10000;
    overflow-y: auto;
  }

  .mobile-nav-active .navmenu > ul {
    display: block;
  }

  .navmenu li {
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  }

  .navmenu a {
    display: block;
    padding: 16px 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--nav-color);
  }

  /* Dropdown mobile */
  .navmenu .dropdown > ul {
    position: static;
    display: none;
    padding: 10px 0;
    margin-left: 10px;
    border-left: 2px solid var(--accent-color);
    background: none;
  }

  .navmenu .dropdown > ul.dropdown-active {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  background-color: var(--background-color);
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  font-size: 14px;
}

.footer .footer-top {
  padding: 60px 0 30px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

/* About */
.footer .footer-about .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.footer .footer-about .logo img {
  max-height: 42px;
}

.footer .footer-about .logo span {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--heading-color);
}

.footer .footer-about p {
  max-width: 320px;
  line-height: 1.6;
}

/* Social links */
.footer .social-links {
  display: flex;
  margin-top: 15px;
}

.footer .social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--default-color), transparent 90%);
  color: var(--default-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.footer .social-links a:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

/* Titles */
.footer h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}

/* Footer links */
.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul li {
  padding: 8px 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  transition: color 0.3s ease;
}

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

/* Contact */
.footer .footer-contact li {
  list-style: none;
  margin-bottom: 8px;
  font-size: 14px;
}

/* Newsletter */
.footer .footer-newsletter .newsletter-form {
  margin-top: 20px;
  display: flex;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  overflow: hidden;
}

.footer .footer-newsletter input[type=email] {
  flex: 1;
  border: none;
  padding: 10px;
  background: var(--surface-color);
}

.footer .footer-newsletter input[type=submit] {
  border: none;
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 0 22px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.footer .footer-newsletter input[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

/* Copyright */
.footer .copyright {
  padding: 20px 0;
  margin-top: 30px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  text-align: center;
}

.footer .credits {
  font-size: 13px;
  margin-top: 6px;
}

/* Mobile */
@media (max-width: 768px) {
  .footer .footer-top {
    text-align: center;
  }

  .footer .footer-about p {
    margin: 0 auto;
  }

  .footer .social-links {
    justify-content: center;
  }
}


/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable AOS animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li + li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li + li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}


/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 100px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  padding: 0;
}

.hero h1,
.hero h2,
.hero h3 {
  font-family: var(--hero-font);
}

.hero .carousel {
  width: 100%;
  min-height: calc(90vh);
  padding: 0;
  margin: 0;
  position: relative;
}

@media (max-height: 500px),
(max-width: 1200px) {
  .hero .carousel {
    min-height: calc(50vh);
  }
}

.hero img {
  position: bottom;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .carousel-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  display: flex;
  justify-content: bottom;
  align-items: flex-end;
}

.container-overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--surface-color), transparent 40%);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 30px;
  z-index: 3;
}

.container-content {
  font-family: var(--hero-font);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: none;
}

@media (max-width: 768px) {
  .container-content {
    font-size: 1rem; 
  }

  .container-content h2 {
    font-size: 1.5rem;
  }
}

.container-content h2 {
  font-size: 5rem;
  font-weight: 70;
  color: var(--contrast-color);
  margin-bottom: 15px;
  line-height: 1.5;
  display: block;
}

.container-content p {
  font-size: 1.7rem;
  width: 60ch;
  line-height: 1.3;
  text-align: justify;
  text-align-last: center;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  height: calc(1.3em * 2);
  margin: 0 auto 1.2ch;
  margin-bottom: 2ch;
}


.hero .carousel-control-prev {
  justify-content: start;
}

@media (min-width: 640px) {
  .hero .carousel-control-prev {
    padding-left: 15px;
  }
}

.hero .carousel-control-next {
  justify-content: end;
}

@media (min-width: 640px) {
  .hero .carousel-control-next {
    padding-right: 15px;
  }
}

.hero .carousel-control-next-icon,
.hero .carousel-control-prev-icon {
  background: none;
  font-size: 26px;
  line-height: 0;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 50px;
  color: var(--contrast-color);
  transition: 0.3s;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  transition: 0.3s;
  opacity: 0.5;
}

.hero .carousel-control-prev:focus,
.hero .carousel-control-next:focus {
  opacity: 0.5;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 0.9;
}

.hero .carousel-control-prev:hover .carousel-control-next-icon,
.hero .carousel-control-prev:hover .carousel-control-prev-icon,
.hero .carousel-control-next:hover .carousel-control-next-icon,
.hero .carousel-control-next:hover .carousel-control-prev-icon {
  background: var(--red-color);
  color: var(--default-color);
}

.hero .carousel-indicators li {
  cursor: pointer;
  background: var(--default-color);
  overflow: hidden;
  border: 0;
  width: 12px;
  height: 12px;
  border-radius: 50px;
  opacity: 0.6;
  transition: 0.3s;
}

.hero .carousel-indicators li.active {
  opacity: 1;
  background: var(--red-color);
}

@media (max-width: 768px) {
  .hero .carousel {
    min-height: 60vh;
  }

  .container-overlay {
    padding: 20px 15px;
    align-items: flex-end;
  }

  .container-content {
    font-size: 0.9rem;
    padding: 0 10px;
  }

  .container-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .container-content p {
    font-size: 1rem;
    width: 100%;
    text-align: left;
    text-align-last: left;
    -webkit-line-clamp: unset;
    height: auto;
    overflow: visible;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  .hero .carousel-control-next-icon,
  .hero .carousel-control-prev-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
  }
}



/*--------------------------------------------------------------
# Bomberito Contact Section
--------------------------------------------------------------*/
.bomberito-contact-section {
  padding: 80px 20px;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 15px;
  padding: 10px 20px;
}

.contact-info .contact-title {
  font-family: var(--hero-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.contact-info p {
  font-family: var(--default-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--default-color);
}

.contact-info a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-info .contact-hours-title {
  font-family: var(--hero-font);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 10px;
}

.contact-info .contact-hours {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--default-font);
  font-size: 1rem;
  color: var(--default-color);
}

.contact-info .contact-hours li {
  margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 992px) {
  .map-container {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .bomberito-contact-section {
    padding: 60px 15px;
  }

  .map-container {
    height: 250px;
  }

  .contact-info .contact-title {
    font-size: 1.75rem;
  }

  .contact-info .contact-hours-title {
    font-size: 1.1rem;
  }
}

/*--------------------------------------------------------------
# Comunidad / About Section
--------------------------------------------------------------*/
.comunidad-section {
  padding: 80px 20px;
  background-color: var(--background-color);
  color: var(--default-color);
}

.comunidad-section .comunidad-title {
  font-family: var(--hero-font);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--heading-color);
  text-transform: uppercase;
}

.comunidad-section .comunidad-text {
  font-family: var(--default-font);
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  color: var(--default-color);
}

@media (max-width: 768px) {
  .comunidad-section {
    padding: 60px 15px;
  }

  .comunidad-section .comunidad-title {
    font-size: 2rem;
  }

  .comunidad-section .comunidad-text {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/*--------------------------------------------------------------
# Numbers Section
--------------------------------------------------------------*/
.numbers.section {
  padding: 80px 20px;
}

.number-item {
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 50px 20px 20px;
  position: relative;
  text-align: center;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 250px;
}

.number-item .icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.number-item h3 {
  font-family: var(--hero-font);
  font-size: 2rem;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.number-item p {
  font-family: var(--default-font);
  font-size: 1rem;
  color: var(--default-color);
}

/* Colores para cada tipo */
.item-cyan {
  border-top: 4px solid #00bcd4; /* Cyan */
}

.item-orange {
  border-top: 4px solid #ff9800; /* Orange */
}

.item-teal {
  border-top: 4px solid #009688; /* Teal */
}

/* Hover Effect */
.number-item:hover {
  transform: translateY(-8px);
  box-shadow: 0px 16px 30px rgba(0, 0, 0, 0.12);
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .number-item {
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .number-item h3 {
    font-size: 1.75rem;
  }

  .number-item p {
    font-size: 0.95rem;
  }

  .number-item .icon i {
    font-size: 50px !important;
  }
}
