/* CSS corregido integrado aquí */
:root {
  --primary-color: #e30512;
  --secondary-color: #233559;
  --accent-color: #1d71b8;
  --dark-color: #0000;
  --light-color: #f8f9fa;
  --navbar-height: 80px; /* Altura fija del navbar */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  padding-top: var(--navbar-height); /* Compensa la altura del navbar fijo */
}


/* Animated Navigation */
.navbar {
  background: linear-gradient(
    135deg,
    rgba(35, 53, 89, 0.967),
    rgba(227, 5, 18, 0.9)
  );
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  padding: 0rem 0;
  height: var(--navbar-height);
  z-index: 1030;
}

.navbar.scrolled {
  background: rgba(35, 53, 89, 0.95);
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 2rem;
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-brand img {
  width: 80px;
  height: auto;
  margin-right: 10px;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  margin: 0 15px;
  position: relative;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 50%;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::before {
  width: 100%;
}

.navbar-nav .nav-link:hover {
  transform: translateY(-2px);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Hero Section with Carousel - CORREGIDO */
#inicio {
  height: 100vh; /*calc(100vh - var(--navbar-height));*/
  position: relative;
  margin-top: calc(
    -1 * var(--navbar-height)
  ); /* Compensa el padding-top del body */
  padding-top: var(
    --navbar-height
  ); /* Mantiene el contenido visible bajo el navbar */
}

.hero-carousel {
  height: calc(100vh - var(--navbar-height));
  position: relative;
}

.carousel-item {
  height: calc(100vh - var(--navbar-height));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(220, 61, 72, 0.235),
    rgba(69, 90, 132, 0.358)
  );
  z-index: 1;
}

.carousel-item img {
  width: 100%;
  height: calc(100vh - var(--navbar-height));
  object-fit: cover;
  object-position: top;
}

.carousel-caption {
  z-index: 2;
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.3s both;
}

.btn-hero {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.6s both;
  display: inline-block;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(227, 5, 18, 0.4);
  color: white;
}

/* Section Styling - CORREGIDO */
.section {
  padding: 100px 0;
  scroll-margin-top: var(--navbar-height); /* Offset para scroll suave */
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--secondary-color);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 4px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* About Section - CORREGIDO */
#nosotros {
  background: white;
  position: relative;
  z-index: 10;
  text-align: justify;
}


.about-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.card {
  perspective: 1000px;
  border-radius: 20px;
  background: #ffffff;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 100%;
  height: auto;
  min-height: 320px;
  margin-bottom: 5dvh;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 1rem;
  border-radius: 20px 20px 0 0;
}

/* Services Section */
.services {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Service Tabs */
.service-tabs {
  margin-bottom: 4rem;
}

.nav-tabs {
  border: none;
  justify-content: center;
}

.nav-tabs .nav-link {
  background: transparent;
  border: none;
  color: rgba(189, 147, 147, 0.6);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1rem 2rem;
  margin: 0 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-tabs .nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link.active {
  color: white;
  transform: translateY(-3px);
}

.nav-tabs .nav-link.active::before,
.nav-tabs .nav-link:hover::before {
  opacity: 1;
}

/* Circular Gallery */
.circular-gallery {
  position: relative;
  height: 280px;
  margin: 0 auto;
  max-width: 1000px;
  perspective: 1000px;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: rotate 25s linear infinite;
}

.gallery-container.paused {
  animation-play-state: paused;
}

.gallery-item {
  position: absolute;
  width: 200px;
  height: 240px;
  left: 50%;
  top: 50%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.gallery-item:hover {
  border-color: var(--accent-color);
  z-index: 10;
  box-shadow: 0 20px 50px rgba(255, 230, 109, 0.6);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: all 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 1rem;
  transition: all 0.3s ease;
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  text-align: center;
}

/* Position items in circle */
.gallery-item:nth-child(1) {
  transform: rotateY(0deg) translateZ(280px) translateX(-50%) translateY(-50%);
}
.gallery-item:nth-child(2) {
  transform: rotateY(60deg) translateZ(280px) translateX(-50%) translateY(-50%);
}
.gallery-item:nth-child(3) {
  transform: rotateY(120deg) translateZ(280px) translateX(-50%) translateY(-50%);
}
.gallery-item:nth-child(4) {
  transform: rotateY(180deg) translateZ(280px) translateX(-50%) translateY(-50%);
}
.gallery-item:nth-child(5) {
  transform: rotateY(240deg) translateZ(280px) translateX(-50%) translateY(-50%);
}
.gallery-item:nth-child(6) {
  transform: rotateY(300deg) translateZ(280px) translateX(-50%) translateY(-50%);
}

/* Media Queries - CORREGIDOS */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .btn-hero {
    font-size: 1rem;
    padding: 12px 25px;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 70px;
  }

  body {
    padding-top: var(--navbar-height);
  }

  #inicio {
    height: calc(100vh - var(--navbar-height));
    margin-top: calc(-1 * var(--navbar-height));
    padding-top: var(--navbar-height);
  }

  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .btn-hero {
    font-size: 0.9rem;
    padding: 10px 20px;
  }

  .circular-gallery {
    height: 220px;
  }

  .gallery-item {
    width: 150px;
    height: 180px;
  }

  .gallery-item:nth-child(1) {
    transform: rotateY(0deg) translateZ(200px) translateX(-50%) translateY(-50%);
  }
  .gallery-item:nth-child(2) {
    transform: rotateY(60deg) translateZ(200px) translateX(-50%)
      translateY(-50%);
  }
  .gallery-item:nth-child(3) {
    transform: rotateY(120deg) translateZ(200px) translateX(-50%)
      translateY(-50%);
  }
  .gallery-item:nth-child(4) {
    transform: rotateY(180deg) translateZ(200px) translateX(-50%)
      translateY(-50%);
  }
  .gallery-item:nth-child(5) {
    transform: rotateY(240deg) translateZ(200px) translateX(-50%)
      translateY(-50%);
  }
  .gallery-item:nth-child(6) {
    transform: rotateY(300deg) translateZ(200px) translateX(-50%)
      translateY(-50%);
  }

  .nav-tabs .nav-link {
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
    margin: 0 0.3rem;
    letter-spacing: 1px;
  }
}

@media (max-width: 576px) {
  :root {
    --navbar-height: 60px;
  }

  body {
    padding-top: var(--navbar-height);
  }

  #inicio {
    height: calc(100vh - var(--navbar-height));
    margin-top: calc(-1 * var(--navbar-height));
    padding-top: var(--navbar-height);
  }

  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
  .btn-hero {
    font-size: 0.8rem;
    padding: 8px 15px;
  }
  .carousel-caption {
    bottom: 5%;
    padding: 30px 10px;
  }
}

/*POR MEJORAR EL MEDIA PARA 4 TIPOS DE PANTALLA-27-08-25*/

/* Navbar responsive */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border-color: white !important;
    border-width: 2px;
    padding: 0.5rem 0.75rem;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    width: 1.2rem;
    height: 1.2rem;
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
  }

  .navbar-collapse {
    margin-top: 0rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0rem;
    border-radius: 1%;
    background: linear-gradient(to bottom, #d100009c, rgba(0, 0, 0, 0.592));/* modificacion del navbar*/
  }
}


/* INICIO DE MODIFICACIONES */

/* ===== RESPONSIVE NAVBAR PARA 4 TIPOS DE PANTALLA ===== */

/* 1. MÓVILES (320px - 767px) */
@media (max-width: 767.98px) {
  .navbar-toggler {
    border-color: white !important;
    border-width: 2px;
    padding: 0.4rem 0.6rem;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    width: 1rem;
    height: 1rem;
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.5);
  }

  .navbar-collapse {
    margin-top: 0.5rem;
    /* border-top: 1px solid rgba(255, 255, 255, 0.3); */
    padding-top: 0.5rem;
    border-radius: 8px;
    background: linear-gradient(to bottom, #d100009c, rgba(0, 0, 0, 0.7));
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.9rem;
  }
}

/* 2. TABLETS (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .navbar-toggler {
    border-color: white !important;
    border-width: 2px;
    padding: 0.5rem 0.75rem;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    width: 1.1rem;
    height: 1.1rem;
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
  }

  .navbar-collapse {
    margin-top: 0.25rem;
    /* border-top: 1px solid rgba(255, 255, 255, 0.25); */
    padding-top: 0.25rem;
    border-radius: 6px;
    /* background: linear-gradient(to bottom, #d100009c, rgba(0, 0, 0, 0.65)); */
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

/* 3. LAPTOPS (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439.98px) {
  .navbar-toggler {
    border-color: white !important;
    border-width: 2px;
    padding: 0.5rem 0.75rem;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    width: 1.2rem;
    height: 1.2rem;
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
  }

  .navbar-collapse {
    margin-top: 0rem;
    /* border-top: 1px solid rgba(255, 255, 255, 0.2); */
    padding-top: 0rem;
    border-radius: 4px;
    /* background: linear-gradient(to bottom, #d100009c, rgba(0, 0, 0, 0.592)); */
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
  }
}

/* 4. COMPUTADORAS DE ESCRITORIO (1440px en adelante) */
@media (min-width: 1440px) {
  .navbar-toggler {
    border-color: white !important;
    border-width: 3px;
    padding: 0.6rem 0.8rem;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    width: 1.3rem;
    height: 1.3rem;
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.4);
  }

  .navbar-collapse {
    margin-top: 0rem;
    /* border-top: 1px solid rgba(255, 255, 255, 0.15); */
    padding-top: 0rem;
    border-radius: 2px;
    /* background: linear-gradient(to bottom, #d100009c, rgba(0, 0, 0, 0.5)); */
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
  }
}

/* ===== ESTILOS ADICIONALES PARA MEJOR UX ===== */

/* Transiciones suaves para todos los dispositivos */
.navbar-toggler,
.navbar-collapse,
.navbar-nav .nav-link {
  transition: all 0.3s ease-in-out;
}

/* Hover effects para dispositivos con cursor */
@media (hover: hover) {
  .navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
  }
  
  .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
}

/* FIN DE MODIFICACIONES*/

.service-modal {
  z-index: 1060;
}

.service-modal .modal-dialog {
  max-width: min(90vw, 800px);
  max-height: 90vh;
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 2rem);
}
.service-modal .modal-content {
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-modal .modal-header {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem;
  border: none;
  flex-shrink: 0;
}

.service-modal .modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-modal .modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex-grow: 1;
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1.5rem;
}

.service-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #555;
}

.service-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.service-features li {
  padding: 0.7rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  border-bottom: 1px solid #eee;
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li i {
  color: var(--primary-color);
  width: 20px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .circular-gallery {
    height: 220px;
  }

  .gallery-item {
    width: 150px;
    height: 180px;
    transform-origin: 50% 50% -200px;
  }

  .gallery-item:nth-child(1) {
    transform: rotateY(0deg) translateZ(200px) translateX(-50%) translateY(-50%);
  }
  .gallery-item:nth-child(2) {
    transform: rotateY(60deg) translateZ(200px) translateX(-50%)
      translateY(-50%);
  }
  .gallery-item:nth-child(3) {
    transform: rotateY(120deg) translateZ(200px) translateX(-50%)
      translateY(-50%);
  }
  .gallery-item:nth-child(4) {
    transform: rotateY(180deg) translateZ(200px) translateX(-50%)
      translateY(-50%);
  }
  .gallery-item:nth-child(5) {
    transform: rotateY(240deg) translateZ(200px) translateX(-50%)
      translateY(-50%);
  }
  .gallery-item:nth-child(6) {
    transform: rotateY(300deg) translateZ(200px) translateX(-50%)
      translateY(-50%);
  }

  .nav-tabs .nav-link {
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
    margin: 0 0.3rem;
    letter-spacing: 1px;
  }

  .gallery-title {
    font-size: 0.9rem;
  }

  .services {
    min-height: 70vh;
    padding: 60px 0;
  }
}


/*INICIO DE MODIFICACIONES MEDIA SERVICE*/
/* ===== GALERÍA CIRCULAR RESPONSIVE PARA 4 TIPOS DE PANTALLA ===== */

/* 1. MÓVILES (320px - 767px) */
@media (max-width: 767.98px) {
  .circular-gallery {
    height: 200px;
  }

  .gallery-item {
    width: 120px;
    height: 150px;
    transform-origin: 50% 50% -150px;
  }

  .gallery-item:nth-child(1) {
    transform: rotateY(0deg) translateZ(150px) translateX(-50%) translateY(-50%);
  }
  .gallery-item:nth-child(2) {
    transform: rotateY(60deg) translateZ(150px) translateX(-50%) translateY(-50%);
  }
  .gallery-item:nth-child(3) {
    transform: rotateY(120deg) translateZ(150px) translateX(-50%) translateY(-50%);
  }
  .gallery-item:nth-child(4) {
    transform: rotateY(180deg) translateZ(150px) translateX(-50%) translateY(-50%);
  }
  .gallery-item:nth-child(5) {
    transform: rotateY(240deg) translateZ(150px) translateX(-50%) translateY(-50%);
  }
  .gallery-item:nth-child(6) {
    transform: rotateY(300deg) translateZ(150px) translateX(-50%) translateY(-50%);
  }

  .nav-tabs .nav-link {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
    margin: 0 0.2rem;
    letter-spacing: 0.5px;
  }

  .gallery-title {
    font-size: 0.8rem;
  }

  .services {
    min-height: 60vh;
    padding: 40px 0;
  }
}


/* ===== MEJORAS ADICIONALES PARA TODOS LOS DISPOSITIVOS ===== */

/* Transiciones suaves para la galería circular */
.gallery-item {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.circular-gallery {
  transition: height 0.3s ease-in-out;
}

/* Animación de rotación suave */
@keyframes rotate-gallery {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

/* Hover effects para dispositivos con cursor */
@media (hover: hover) {
  .gallery-item:hover {
    transform-style: preserve-3d;
    filter: brightness(1.1) contrast(1.05);
  }
  
  .nav-tabs .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
}

/* Optimización para pantallas táctiles */
@media (pointer: coarse) {
  .gallery-item {
    cursor: pointer;
  }
  
  .nav-tabs .nav-link {
    min-height: 44px; /* Área táctil mínima recomendada */
  }
}

/* Mejoras de rendimiento para dispositivos de baja potencia */
@media (max-width: 767.98px) {
  .circular-gallery {
    will-change: transform;
  }
  
  .gallery-item {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}
/*FIN DE MODIFICACIONES MEDIA SERVICIOS */



/* Portfolio Section */
#portfolioModal {
  backdrop-filter: blur(8px);
  max-width: 100vw;
  max-height: 100vh;
  /* display: flex;  Posible error en la pagina publicada */
  align-items: center;
  justify-content: center;
}
#modalImage {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: fill;
  border-radius: 0;
  box-shadow: none;
  align-items: center;
  justify-content: center;
}

.portfolio {
  background: var(--secondary-color);
  color: white;
}

.portfolio .section-title {
  color: white;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
  transition: all 0.3s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(233, 16, 16, 0.9),
    rgba(25, 22, 206, 0.9)
  );
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay i {
  font-size: 3rem;
  color: white;
  animation: pulse 2s infinite;
}

/* Videos Section */
.videos {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.videos .section-title {
  color: var(--secondary-color);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.video-item {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.video-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.video-item:hover .video-thumbnail img {
  transform: scale(1.1);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-item:hover .play-overlay {
  background: rgba(0, 0, 0, 0.7);
}

.play-button {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.video-item:hover .play-button {
  transform: scale(1.2);
}

.video-content {
  padding: 1.5rem;
}

.video-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.video-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Video Modal */
.video-modal .modal-dialog {
  max-width: 90vw;
  max-height: 90vh;
}

.video-modal .modal-content {
  background: transparent;
  border: none;
}

.video-modal .modal-body {
  padding: 0;
}

.video-embed {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 10px;
}

/* Modal Styling */
.modal-content {
  border-radius: 20px;
  border: none;
}

.modal-header {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border-radius: 20px 20px 0 0;
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, var(--light-color) 0%, white 100%);
}

.contact-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.form-control {
  border-radius: 15px;
  border: 2px solid #e9ecef;
  padding: 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(227, 5, 18, 0.2);
}

.btn-submit {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(227, 5, 18, 0.4);
  color: var(--light-color);
}

.social-links a {
  display: inline-block;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(227, 5, 18, 0.4);
}

/*animaciones*/
@keyframes rotate {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== ORIENTACIÓN DE DISPOSITIVO ===== */

/* Landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 1.5rem 0;
  }
}

/* ===== UTILIDADES ADICIONALES ===== */

/* Ocultar elementos según dispositivo */
.hidden-mobile {
  display: block;
}

.hidden-desktop {
  display: none;
}

@media (max-width: 767.98px) {
  .hidden-mobile {
    display: none;
  }

  .hidden-desktop {
    display: block;
  }
}

/* Texto centrado en móviles */
@media (max-width: 767.98px) {
  .text-center-mobile {
    text-align: center !important;
  }
}

/* Márgenes automáticos para centrar */
@media (max-width: 767.98px) {
  .mx-auto-mobile {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
