:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-gray: #f5f6fa;
    --text-color: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header & Navigation */
header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo img {
    max-height: 80px;
    width: auto;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 100vh;
    scroll-margin-top: 0;
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)),
                url("Fotos/B1.jpg") no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: rgba(231, 76, 60, 0.8);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: rgba(231, 76, 60, 1);
    transform: translateY(-2px);
}

/* Projects Section */
.projects {
    padding: 5rem 2rem;
    scroll-margin-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* **Nota:** El contenedor de pestañas se asume que se activará en HTML (por ejemplo, añadiendo la clase "active" al de imágenes por defecto) */
.projects-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-button {
    padding: 0.8rem 2rem;
    border: none;
    background: var(--light-gray);
    color: var(--text-color);
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    background: var(--secondary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Carousel */
.carousel-container {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 33.333%;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .carousel-slide {
        min-width: 50%;
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        min-width: 100%;
    }
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 10;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.project-image {
    width: 100%;
    height: 250px; /* Altura ajustable para que las imágenes se adapten */
    overflow: hidden;
    cursor: pointer;
    background-color: var(--primary-color);
    transition: opacity 0.3s;
}

.project-image:hover {
    opacity: 0.8;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card h3,
.project-card p {
    padding: 1rem;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/*.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;  
    overflow: hidden;
    background: black; 
  }
  
  .video-container video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain; 
  }*/

  .video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;  /* Mantiene la proporción vertical 9:16 */
    background: #000; /* Color de fondo para evitar áreas en negro si no llena completamente */
    display: flex;
    align-items: center;
    justify-content: center;
    /* No se recomienda overflow: hidden ya que podría recortar los controles */
  }
  
  .video-container video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    /*object-fit: cover;*/ 
    /* Eliminar object-fit si causa recortes, así se mostrará el video íntegro */
  }
  
  
  
.video-container iframe {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card h3,
.video-card p {
    padding: 1rem;
}

/* Services Section */
.services {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
    font-family: Arial, sans-serif;
}
  
.services-header {
    margin-bottom: 40px;
}
  
.services-header img {
    margin-bottom: 20px;
}
  
.services-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}
  
.services-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}
  
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
  
.service-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    max-width: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
  
.service-card:hover {
    transform: translateY(-5px);
}
  
/* Contenedor para la imagen que abarca toda la parte superior */
.service-image {
    width: 100%;
    height: 150px; /* Ajusta la altura según lo que necesites */
    overflow: hidden;
}
  
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
  
.service-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 15px 0 10px;
    padding: 0 10px;
}
  
.service-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    padding: 0 10px 20px;
}

/* About Section */
.about {
    padding: 60px 20px;
    background-color: #fff;
    font-family: Arial, sans-serif;
}
  
.about-container {
    display: flex;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
  
.about-content {
    flex: 1 1 400px;
}
  
.about-content h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}
  
.about-content p,
.about-content ul {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}
  
.about-list li {
    list-style: none;
    margin-bottom: 8px;
}
  
.about-image {
    flex: 1 1 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
  
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
  
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}
  
.modal.active {
    display: flex;
}
  
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}
  
.modal-image-container {
    width: 800px;
    max-width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}
  
.modal-image-container svg {
    width: 100%;
    height: 100%;
}
  
.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    background: none;
    border: none;
    padding: 5px;
}
  
.close-modal:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 2rem 2rem;
}
  
.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    justify-content: center;
}
  
.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
  
.footer-section h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}
  
.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}
  
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
  
.contact-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
  
.contact-details span {
    font-size: 1.2rem;
}
  
.social-links {
    display: flex;
    gap: 1.5rem;
}
  
.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}
  
.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}
  
.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.944); /* rgba(255,255,255,0.1);*/
}
  
.footer-bottom p,a {
    color:rgba(247, 245, 245, 0.967);
    opacity: 0.7;
}


/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background-color: var(--light-gray);
    scroll-margin-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input, textarea {
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
    height: 150px;
    resize: vertical;
}

form .cta-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
}

form .cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.contact-info {
    padding: 2rem;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: white;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.map-container {
    margin-top: 1.5rem;
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-banner {
  background-color: #FFD700; /* Color dorado */
  color: #3E215D; /* Morado oscuro */
  padding: 20px;
  margin: 20px 0;
  overflow: hidden; /* Oculta el contenido durante la animación */
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
  border-radius: 5px;
}

.contact-banner p {
  display: inline-block;
  animation: slideIn 2s ease-out forwards;
  white-space: nowrap;
  margin: 0;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}


/*Responsive corrección*/

/* Estilos generales para la navegación */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #ffffff; /* Fondo blanco */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .logo img {
    height: 50px;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
  }
  
  .nav-links li a {
    color: #000000; /* Texto negro */
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
  }
  
  /* Botón de menú (oculto en escritorio) */
  .menu-toggle {
    display: none;
    background-color: #ffffff; /* Fondo blanco */
    border: 1px solid #ccc; /* Borde gris claro */
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
  }
  
  /* Estilos de la "hamburger" */
  .hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #000000; /* Línea negra */
    position: relative;
    transition: all 0.3s;
  }
  .hamburger::before,
  .hamburger::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 3px;
    background: #000000; /* Líneas negras */
    transition: all 0.3s;
  }
  .hamburger::before {
    top: -8px;
  }
  .hamburger::after {
    top: 8px;
  }
  
  /* Media query para dispositivos móviles */
  @media (max-width: 768px) {
    /* Mostrar el botón de menú */
    .menu-toggle {
      display: block;
    }
    
    /* Ocultar el menú por defecto */
    .nav-links {
      position: absolute;
      top: 70px; /* Ubicado justo debajo del header */
      left: 0;
      width: 100%;
      flex-direction: column;
      background-color: #ffffff; /* Fondo blanco */
      display: none;
      margin: 0;
      padding: 10px 0;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    /* Mostrar el menú cuando se activa */
    .nav-links.active {
      display: flex;
    }
    
    .nav-links li {
      margin: 10px 0;
      text-align: center;
    }
  }
  

/* Responsive Design*/ 
@media (max-width: 768px) {
    .nav-links {
        display: none;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .carousel-button {
        padding: 0.5rem;
        font-size: 1rem;
        width: 35px;
        height: 35px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .contact-details p {
        justify-content: center;
    }

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

/*última aplicación*/

@media (max-width: 768px) {
    /* Para la sección de Contacto */
    .contact-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
      margin: 0 auto;
    }
    
    /* Oculta la información adicional (la columna de contacto) */
    .contact-info {
      display: none;
    }
    
    /* Asegúrate de que el formulario se expanda a ancho completo */
    #contact-form {
      width: 100%;
      max-width: 500px;
      margin: 0 auto;
    }
    
    .contact h2 {
      font-size: 2rem;
      text-align: center;
      margin-bottom: 1.5rem;
    }
    
    .contact-banner {
      padding: 1rem;
      background-color: var(--secondary-color);
      color: white;
      margin-bottom: 2rem;
      text-align: center;
    }
    
    .contact-banner p {
      font-size: 1rem;
      line-height: 1.4;
    }
    
    .contact-container form input,
    .contact-container form textarea,
    .contact-container form button {
      font-size: 1rem;
    }
    
    /* Para el Footer: Mostrar únicamente la información esencial */
    .footer-content {
      grid-template-columns: 1fr;
      gap: 1rem;
      text-align: center;
      padding: 1rem;
    }
    
    /* Si deseas ocultar la sección de "Follow us on social media", por ejemplo */
    .footer-section:nth-child(2) {
      display: none;
    }
    
    .footer-section:nth-child(1) {
      display: block;
    }
    
    .footer-section h4 {
      font-size: 1.2rem;
    }
    
    .footer-section p {
      font-size: 0.9rem;
    }
    
    .footer-bottom {
      padding-top: 1rem;
    }
    
    .footer-bottom p {
      font-size: 0.9rem;
      text-align: center;
    }
  }
  