/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    color: #333;
}

/* Top Bar */
.top-bar {
    background-color: #e8e8e8;
    padding: 8px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.top-bar-left {
    color: #666;
}

.top-bar-right {
    display: flex;
    gap: 20px;
}

.top-bar-right a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar-right a:hover {
    color: #e4002b;
}

nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e4002b;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #e4002b;
}

/* Header */
header {
    background-color: white;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

/* Contenedor del logo */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}

/* Link del logo sin decoración */
.logo-link {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Animación al hacer hover */
.logo-link:hover {
  transform: scale(1.05);
  background: rgba(228, 0, 43, 0.05);
}

/* Imagen del logo */
.logo-img {
  width: 50px;
  height: auto;
  transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
  transform: rotate(360deg);
}

/* Texto principal */
.logo-container h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  transition: all 0.3s ease;
}

/* "COVADONGA" en rojo del logo */
.covadonga-text {
  color: #e4002b;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo-link:hover .covadonga-text {
  text-shadow: 0 2px 8px rgba(228, 0, 43, 0.4);
  letter-spacing: 1px;
}

/* "INCE" en gris */
.ince-text {
  color: #555555;
  text-decoration: none;
  margin-left: 3px;
  transition: all 0.3s ease;
}

.logo-link:hover .ince-text {
  color: #333;
  letter-spacing: 1px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.logo span {
    color: #e4002b;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover {
    color: #e4002b;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('Imagenes/Portada.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(3px) brightness(0.7);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 50px;
    max-width: 600px;
}

.hero-subtitle {
    color: #ff002f;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-btn {
    background-color: #e4002b;
    color: white;
    padding: 15px 35px;
    border: none;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-btn:hover {
    background-color: #c40025;
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.app-card {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    color: white;
    padding: 40px 30px;
    text-align: left;
    transition: all 0.3s;
    cursor: pointer;
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.app-card:hover {
    background: rgba(228, 0, 43, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    transform: translateY(-10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px 0 rgba(228, 0, 43, 0.4);
}

.app-card h3 {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1.3;
}

.app-card p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* Features Section */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    padding: 100px 50px;
    background-color: #f8f8f8;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    color: #e4002b;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* Services Gallery Section */
.services-gallery {
    padding: 100px 50px;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

/* Services Grid con centrado */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

/* TARJETA */
.service-card {
    background-color: white;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    will-change: transform;
    border-radius: 12px;
    width: 100%;
}

/* Primeras 3 tarjetas ocupan 2 columnas cada una */
.service-card:nth-child(1),
.service-card:nth-child(2),
.service-card:nth-child(3) {
  grid-column: span 2;
}

/* Últimas 2 tarjetas centradas */
.service-card:nth-child(4) {
  grid-column: 2 / 4;
}

.service-card:nth-child(5) {
  grid-column: 4 / 6;
}

.service-card:hover {
    transform: translateY(-10px);
}

/* IMAGEN DE LA TARJETA */
.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #ddd;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

/* CONTENIDO */
.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.service-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-link {
    color: #e4002b;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.3s;
}

.service-link:hover {
    color: #c40025;
}

/* Technology Section */
.technology-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 100px 50px;
    background-color: #f8f8f8;
    align-items: center;
}

.tech-content h2 {
    font-size: 42px;
    color: #333;
    margin-bottom: 10px;
}

.tech-content h3 {
    font-size: 32px;
    color: #e4002b;
    margin-bottom: 30px;
}

.tech-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    font-size: 16px;
    color: #333;
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.tech-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #e4002b;
    font-weight: bold;
}

/* ============================================
   NUEVOS ESTILOS PARA LA GRILLA DE VIDEOS
   ============================================ */
.tech-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.video-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  background: #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 200px;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(228, 0, 43, 0.3);
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 200px;
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 15px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
  opacity: 1;
}

/* Technical Features Section */
.technical-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    padding: 100px 50px;
    background-color: white;
}

.tech-feature {
    text-align: center;
}

.tech-feature img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 50%;
}

.tech-feature h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.tech-feature p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.tech-icon svg {
    transition: transform 0.3s ease, color 0.3s ease;
    color: #555;
}

.tech-icon:hover svg {
    transform: scale(1.15);
    color: #e4002b;
}

/* About Section */
.about-section {
    padding: 100px 50px;
    background-color: #f8f8f8;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

.about-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
  font-size: 18px;
  color: #e4002b;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-item p {
  font-size: 14px;
  color: #666;
}

/* Projects Section */
.projects-section {
    padding: 100px 50px;
    background-color: white;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-top: -40px;
    margin-bottom: 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #ddd;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.15);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(228, 0, 43, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project-btn {
    background-color: white;
    color: #e4002b;
    padding: 12px 30px;
    border: none;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.view-project-btn:hover {
    background-color: #333;
    color: white;
}

.project-info {
    padding: 30px;
}

.project-category {
    display: inline-block;
    background-color: #e4002b;
    color: white;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-radius: 3px;
}

.project-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tags span {
    background-color: #f0f0f0;
    color: #666;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 15px;
    transition: all 0.3s;
}

.project-tags span:hover {
    background-color: #e4002b;
    color: white;
}

.projects-grid .project-card.center {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 700px;
  margin: 0 auto;
}

.project-card:nth-child(4) {
  margin: 0 auto;
}

/* Clients Section */
.clients-section {
    padding: 100px 50px;
    background-color: #f8f8f8;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.client-logo {
    padding: 20px;
    transition: transform 0.3s;
}

.client-logo:hover {
    transform: scale(1.1);
}

.client-logo img {
    max-width: 200px;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

.clients-grid.fixed-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-items: center;
    align-items: center;
}

.client-logo img {
  transition: transform 0.28s ease, filter 0.28s ease;
  display: block;
}

.client-logo:hover img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

/* Contact Section */
.contact-section {
  padding: 60px 10%;
  background-color: #f8f8f8;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.contact-info {
  flex: 1 1 45%;
  min-width: 300px;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h4 {
    font-size: 18px;
    color: #e4002b;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 16px;
    color: #666;
}

.map-container {
  flex: 1 1 45%;
  min-width: 300px;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#map {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  margin-top: 1rem;
}

#map iframe {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  border: 0;
  display: block;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 50px 50px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e4002b;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    color: #999;
    line-height: 2;
    text-decoration: none;
    display: block;
}

.footer-section a:hover {
    color: #e4002b;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    font-size: 14px;
    color: #666;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
}

.social-icons .icon svg {
    width: 35px;
    height: 35px;
    fill: #555;
    transition: all 0.3s ease;
}

.social-icons .icon:hover svg {
    fill: #e4002b;
    filter: drop-shadow(0 0 6px rgba(228, 0, 43, 0.5));
    transform: scale(1.1);
}

/* Animaciones de scroll */
.scroll-anim {
  opacity: 0;
  transform: translateY(60px);
  filter: blur(6px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out, filter 0.9s ease-out;
}

.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.imagen-derecha {
  opacity: 0;
  transform: translateX(100px);
  border-radius: 16px;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  max-width: 100%;
  height: auto;
}

.imagen-derecha.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Hover efectos */
.app-card,
.service-card,
.project-card,
.feature-item,
.client-logo {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  will-change: transform;
  border-radius: 12px;
}

.app-card:hover,
.service-card:hover,
.project-card:hover,
.feature-item:hover,
.client-logo:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* MODAL DE PROYECTOS */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(228, 0, 43, 0.9);
  color: white;
  font-size: 28px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  background: #c40025;
  transform: rotate(90deg);
}

.modal-header {
  padding: 40px 40px 20px;
  border-bottom: 2px solid #f0f0f0;
}

.modal-category {
  display: inline-block;
  background: #e4002b;
  color: white;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 15px;
}

.modal-title {
  font-size: 32px;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.2;
}

.modal-description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.modal-body {
  padding: 30px 40px 40px;
}

.modal-gallery {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
}

.gallery-container {
  flex: 1;
  position: relative;
  background: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

.gallery-counter {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
}

.gallery-nav {
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(228, 0, 43, 0.9);
  color: white;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gallery-nav:hover {
  background: #c40025;
  transform: scale(1.1);
}

.gallery-nav:active {
  transform: scale(0.95);
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.thumbnail:hover {
  opacity: 1;
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: #e4002b;
  opacity: 1;
}

.modal-videos {
  margin-top: 30px;
}

.modal-videos h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #e4002b;
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #c40025;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .top-bar, header {
        padding: 15px 20px;
    }

    nav {
        display: none;
    }

    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 32px;
    }

    .applications-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .features-section,
    .services-gallery,
    .technology-section,
    .technical-features,
    .about-section,
    .clients-section,
    .contact-section,
    footer {
        padding: 50px 20px;
    }

    .technology-section,
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    /* Videos en columna única en móvil */
    .tech-videos {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card:nth-child(1),
    .service-card:nth-child(2),
    .service-card:nth-child(3),
    .service-card:nth-child(4),
    .service-card:nth-child(5) {
        grid-column: auto;
    }
    
    .clients-grid.fixed-3-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        flex-direction: column;
    }

    .contact-info, 
    .map-container {
        flex: 1 1 100%;
    }
    
    .projects-grid .project-card.center {
        grid-column: auto;
        justify-self: stretch;
        max-width: 100%;
    }
    
    /* Modal responsive */
    .modal-content {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 30px 20px 15px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-gallery {
        flex-direction: column;
    }
    
    .gallery-nav {
        position: absolute;
        z-index: 10;
    }
    
    .gallery-nav.prev {
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .gallery-nav.next {
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .gallery-nav:hover {
        transform: translateY(-50%) scale(1.1);
    }
    
    .gallery-container {
        min-height: 300px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .clients-grid.fixed-3-cols {
        grid-template-columns: 1fr;
    }
}

/* Responsive tablets */
@media (max-width: 968px) and (min-width: 769px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }
}

.developer-credit {
    margin-top: 10px;
    font-size: 13px;
    color: #888;
}

.developer-credit .dasau {
    color: #e4002b;
    font-weight: bold;
    transition: color 0.3s ease;
}

.developer-credit .dasau:hover {
    color: #c40025;
}