/* 
* TempiMóvil - Custom CSS Styles
* This file contains custom styles for the TempiMóvil website
*/

/* General Styles */
:root {
  --primary-color: #12a096;
  --secondary-color: #bec2c7;
  --accent-color: #ffc107;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
}

body {
  font-family: "Roboto", sans-serif;
  color: #333;
  line-height: 1.6;
}

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

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

a:hover {
  color: #004494;
  text-decoration: none;
}

.btn {
  border-radius: 4px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #004494;
  border-color: #004494;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.section-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.section-subtitle {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* Top Bar */
.top-bar {
  font-size: 0.9rem;
}

.top-bar a:hover {
  opacity: 0.8;
}

/* Navigation */
.navbar {
  padding: 0.5rem 1rem;
}

.navbar-brand img {
  max-height: 60px;
}

.navbar-light .navbar-nav .nav-link {
  color: #333;
  font-weight: 500;
  padding: 1.5rem 1rem;
  position: relative;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
}

.dropdown-item:hover {
  background-color: #f1f1f1;
  color: var(--primary-color);
}

/* Hero Slider - Nuevo diseño */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.carousel-item {
  height: 600px;
}

.slider-background {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.slider-content-box {
  padding: 2.5rem;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.7); /* Color por defecto, se sobrescribe con el color del slider */
  color: white;
  max-width: 500px;
  margin: 0 auto; /* Centrar el cuadro horizontalmente cuando está en posición center */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center; /* Asegurar que el texto siempre esté centrado */
}

.slider-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center; /* Asegurar que el título siempre esté centrado */
}

.slider-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.slider-slogan {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.slider-phone {
  margin-bottom: 1.5rem;
}

.phone-text {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.phone-number {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
}

.slider-additional-text {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Modificar la clase slider-buttons para asegurar un centrado perfecto */
.slider-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center; /* Centrar los botones */
  width: 100%; /* Asegurar que ocupe todo el ancho disponible */
}

.btn-slider {
  background-color: white;
  color: #333;
  border: none;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-radius: 30px;
  margin: 0 5px 10px; /* Ajustar márgenes para mejor centrado */
}

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

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 50%;
}

.carousel-indicators {
  margin-bottom: 1rem;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

/* Features Section */
.feature-box {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.feature-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Products Section */
.product-card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.product-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.product-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Services Section */
.service-box {
  margin-bottom: 2rem;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonial-box {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin: 0 auto;
  max-width: 800px;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  position: relative;
  padding: 0 2rem;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.3;
  position: absolute;
}

.testimonial-text::before {
  top: -20px;
  left: 0;
}

.testimonial-text::after {
  bottom: -40px;
  right: 0;
}

.testimonial-author h4 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.testimonial-author p {
  color: var(--secondary-color);
}

/* CTA Section */
.cta {
  background-color: var(--primary-color);
  color: white;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.cta .btn-primary {
  background-color: white;
  border-color: white;
  color: var(--primary-color);
}

.cta .btn-primary:hover {
  background-color: #f1f1f1;
  border-color: #f1f1f1;
}

/* Footer */
.footer {
  font-size: 0.9rem;
}

.footer h5 {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer a {
  color: white;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.social-icons a {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

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

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  padding: 0;
  z-index: 99;
}

/* Contact Page */
.contact-info-box {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 2rem;
  height: 100%;
}

.contact-info-box i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-form {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 2rem;
}

/* About Page */
.about-image {
  border-radius: 5px;
  overflow: hidden;
}

.team-member {
  text-align: center;
  margin-bottom: 2rem;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-member h4 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.team-member p {
  color: var(--secondary-color);
}

/* Blog Page */
.blog-card {
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.blog-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.blog-meta {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.blog-meta i {
  margin-right: 0.25rem;
}

/* Client Area */
.client-login-form {
  max-width: 400px;
  margin: 0 auto;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 2rem;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
  }

  .navbar-light .navbar-nav .nav-link.active::after {
    display: none;
  }

  .carousel-item {
    height: 500px;
  }

  .slider-content-box {
    padding: 1.5rem;
    max-width: 100%;
  }

  .slider-title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .carousel-item {
    height: 400px;
  }

  .slider-content-box {
    padding: 1rem;
  }

  .slider-title {
    font-size: 1.5rem;
  }

  .slider-subtitle {
    font-size: 1rem;
  }

  .phone-number {
    font-size: 1.2rem;
  }

  .feature-box,
  .product-card,
  .service-box {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .carousel-item {
    height: 350px;
  }

  .slider-content-box {
    margin: 0 15px;
  }

  .slider-buttons {
    flex-direction: column;
  }

  .btn-slider {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Responsive Styles para el slider */
@media (max-width: 991.98px) {
  .carousel-item {
    height: 500px;
  }

  .slider-content-box {
    padding: 1.5rem;
    max-width: 100%;
  }

  .slider-title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .carousel-item {
    height: 400px;
  }

  .slider-content-box {
    padding: 1rem;
  }

  .slider-title {
    font-size: 1.5rem;
  }

  .slider-subtitle {
    font-size: 1rem;
  }

  .phone-number {
    font-size: 1.2rem;
  }
}

@media (max-width: 575.98px) {
  .carousel-item {
    height: 350px;
  }

  .slider-content-box {
    margin: 0 15px;
  }

  .slider-buttons {
    flex-direction: column;
  }

  .btn-slider {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Correcci贸n para los botones del carrusel de testimonios */
.testimonials .carousel-control-prev,
.testimonials .carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    opacity: 0.7;
}

.testimonials .carousel-control-prev:hover,
.testimonials .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

.testimonials .carousel-control-prev {
    left: 0;
}

.testimonials .carousel-control-next {
    right: 0;
}

.testimonials .carousel-control-prev-icon,
.testimonials .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Corrección para los botones del carrusel de testimonios */
.testimonials .carousel-control-prev,
.testimonials .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    opacity: 0.7;
    z-index: 10;
}

.testimonials .carousel-control-prev:hover,
.testimonials .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

.testimonials .carousel-control-prev {
    left: 10px;
}

.testimonials .carousel-control-next {
    right: 10px;
}

.testimonials .carousel-control-prev-icon,
.testimonials .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Asegurar que el contenedor del carrusel tenga posición relativa */
.testimonials .carousel {
    position: relative;
}

/* Ajustar el contenedor de testimonios para que tenga espacio para los botones */
.testimonial-box {
    margin: 0 50px;
}

/* Corrección para el color de los subtítulos */
.section-subtitle {
    color: #6c757d !important; /* Color gris secundario */
}

/* Específicamente para los subtítulos de testimonios */
.testimonials .section-subtitle,
.testimonials .carousel-item .position,
.testimonials .carousel-item .company {
    color: #6c757d !important;
}
