/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}
body {
    padding-top: 70px; /* Ajusta el espacio para que no tape el contenido */
}

/* Header */
.header {
    display: flex;
	flex-wrap: wrap;
    justify-content: space-between; /* Distribuye los elementos */
    align-items: center;
    padding: 10px 20px;
    background: white;
    backdrop-filter: blur(10px);
    width: 100%;
    box-shadow: 0px -4px 80px rgba(0, 0, 0, 0.3);
	z-index: 1000;
    transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px; /* Grosor de la línea */
    background: #9bcd38; /* Color azul oscuro */
    z-index: 9999; /* Asegura que esté encima de todo */
}
.header {
    position: fixed; /* Fija el header en la parte superior */
    top: 0; /* Lo coloca en la parte superior */
    left: 0;
    width: 100%; /* Ocupa todo el ancho */
    background: rgba(255, 255, 255, 0.9); /* Fondo semitransparente */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Sombra elegante */
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
	transition: height 0.4s ease-out;
}

.menu-btn img {
    width: 24px; /* Tamaño del ícono */
    height: auto;
}


/* Logo */
.logo {
    width: 160px; /* Ajusta según el tamaño deseado */
    height: auto;
    transition: width 0.4s ease;
}

/* Menú */
.nav {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1; /* Menor que el botón */
}

.menu {
    position: absolute;
    top: calc(100% + 10px); /* Justo debajo del botón, con separación */
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    width: 200px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    z-index: 1;
}

/* Cuando el menú se despliega */
.menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.6);
}


.menu li {
    list-style: none;
    padding: 10px;
}


.menu a {
    text-decoration: none;
    color: white; /* Fuente en color blanco */
    font-size: 18px;
    display: block;
    padding: 8px 10px;
    transition: background 0.3s ease;
}

/* Efecto al pasar el cursor */
.menu-link {
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Clases de color personalizables */
.menu-link.red {
    background-color: #9bcd38;
    color: white;
}

.menu-link.green {
    background-color: #9bcd38;
    color: white;
}

.menu-link.blue {
    background-color: #9bcd38;
    color: white;
}

.menu-link.orange {
    background-color: #9bcd38;
    color: white;
}

/* Hover personalizado para cada clase (opcional) */
.menu-link.red:hover {
    background-color: #d1d1d1;
}

.menu-link.green:hover {
    background-color: #d1d1d1;
}

.menu-link.blue:hover {
    background-color: #d1d1d1;
}

.menu-link.orange:hover {
    background-color: #d1d1d1;
}

/* Botón de menú */
.menu-btn {
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
    gap: 10px; /* Espacio uniforme entre ícono y texto */
    padding: 12px 20px;
    background: #9bcd38;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-left: auto; /* Mueve el botón a la derecha */
    transition: padding 0.4s ease, font-size 0.4s ease, transform 0.2s ease;
}

/* Efecto al pasar el cursor */
.menu-btn:hover {
    background: #5e5e5e;
    transform: scale(1.1);
	background: #c2c2c2;
}

/* Efecto al hacer clic */
.menu-btn:active {
   opacity: 1;
    transform: translateY(0);
	background: #c2c2c2;
}

/* Animación de pulsación */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Botones */
.btn, .cta {
    padding: 12px 20px;
    background: #9bcd38;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.btn:hover, .cta:hover {
    background: #0084C8;
    transform: scale(1.1);
}

.btn:active, .cta:active {
    transform: scale(0.95);
}
.header-description {
    font-size: 16px;
    color: black;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-top: 10px; /* Ajusta la distancia desde el logo */
    transition: font-size 0.4s ease, margin-top 0.4s ease;
}

.logo-link {
    display: inline-block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.logo-link:active {
    opacity: 0.6; /* Se desvanece ligeramente */
    transform: scale(0.9); /* Se reduce un poco */
}
.header.shrink {
    padding: 5px 20px;
    transition: padding 0.3s ease;
}

.header.shrink .logo {
    width: 120px; /* Reduce el logo */
    transition: width 0.3s ease;
}

.header.shrink .menu-btn {
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.header.shrink .header-description {
    font-size: 14px;
    margin-top: 5px;
    transition: font-size 0.3s ease, margin-top 0.3s ease;
}

.services {
    background-image: url("Imagenes/fondo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px; /* Aumenta espacio debajo del título */
	color: white;
}
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}


.service-card:hover {
    transform: scale(1.03);
    box-shadow: 0px 0px 30px #9bcd38;
}
@media (max-width: 768px) {
    .services {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }

    .services-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
@media (max-width: 768px) {
  .service-card p,
  .service-card a {
    display: none;
    transition: all 0.3s ease;
  }

  .service-card.active p,
  .service-card.active a {
    display: block;
  }

  .service-card {
    cursor: pointer;
  }
}
@media (max-width: 768px) {
  .services {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-image: url("Imagenes/fondo6.jpg") !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
	transition: background-image 0.3s ease-in-out;
  }

    .services h2 {
    font-size: 28px;
    margin-bottom: 20px;
    width: 100%;
  }

  .services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
  }

    .service-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
        box-sizing: border-box;
        text-align: center;
        padding: 10px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 10px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .service-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

  .service-card img {
    width: 50%;
    max-width: 80px;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
  }


    /* Oculta contenido al inicio */
    .service-card p,
    .service-card .service-link {
        display: none;
    }

    /* Al hacer clic muestra contenido */
    .service-card.expanded p,
    .service-card.expanded .service-link {
        display: block;
        margin-top: 10px;
    }
}
@media (max-width: 768px) {
  .service-card {
    transition: max-height 0.4s ease, padding 0.3s ease;
    max-height: 180px; /* altura base (solo icono y título visibles) */
    overflow: hidden;
	transition: max-height 0.5s ease;
  }

  .service-card.expanded {
    max-height: 500px; /* espacio suficiente para mostrar todo */
  }

  .service-card p,
  .service-card .service-link {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .service-card.expanded p,
  .service-card.expanded .service-link {
    display: block;
    opacity: 1;
    transform: translateY(0);
    margin-top: 10px;
  }
}
@media (min-width: 769px) {
  .services {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .services h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
  }

  .services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .service-card {
    flex: 1 1 calc(25% - 40px);
    max-width: calc(25% - 40px);
    text-align: center;
  }
}



.service-card img {
    width: auto; /* Mantiene el ancho original */
    height: 80px; /* Ajusta a un tamaño específico */
    object-fit: none; /* Evita recortes automáticos */
}
.contact {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
	color:white;
}

form {
    max-width: 400px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin-top: 10px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    height: 70px;
}

button {
    background: #9bcd38;
    color: white;
    padding: 12px;
    margin-top: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #c2c2c2;
}
.floating-social {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.social-btn {
  background: #9bcd38;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.social-btn:hover {
    background: #c2c2c2; /* Azul más oscuro */
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.4); /* Efecto de sombra */
}


.social-btn img {
    width: 30px; /* Tamaño proporcional */
    height: auto;
}
.social-menu {
  position: absolute;
  bottom: 50%;
  right: 50%;
  width: 120px;
  height: 120px;
  transform: translate(50%, 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.social-menu a {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.4s ease;
}

.social-menu a img {
  width: 28px;
  height: auto;
  transition: transform 0.3s ease;
}
.social-menu a:hover img {
    transform: scale(1.2);
}
.social-menu a:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
}
.social-menu a:nth-child(2) {
  top: 25%;
  left: 0%;
  transform: translate(-50%, -50%) scale(0);
}
.social-menu a:nth-child(3) {
  top: 75%;
  left: 0%;
  transform: translate(-50%, -50%) scale(0);
}
.social-menu a:nth-child(4) {
  top: 100%;
  left: 0%;
  transform: translate(-50%, -50%) scale(0);
}

/* Mostrar el menú al pasar el cursor */
.floating-social:hover .social-menu {
  opacity: 1;
  pointer-events: auto;
}
.floating-social:hover .social-menu a {
  transform: translate(-50%, -50%) scale(1);
}
.floating-social:hover {
    display: flex;
    opacity: 1;
    transform: scale(1);
}
.footer {
    text-align: center;
    padding: 3px;
    background: #9bcd38; /* Fondo azul oscuro */
    color: white;
    font-size: 12px;
}
.hero {
	width:100vw;
	height:100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 70px);
    text-align: center;
    background: url('Imagenes/camara.jpg') center/cover no-repeat;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
    color: white;
    animation: bgZoom 1.5s ease-out forwards;
	text-shadow: 5px 0px 7px rgba(0, 0, 0, 0.3);
}
@keyframes bgZoom {
    0% {
        background-size: 100%;
    }
    100% {
        background-size: 105%;
    }
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 77, 140. 0.9); /* Azul con más transparencia */
    z-index: 1; /* Mantiene la imagen visible debajo */
}

.hero-title, .hero-subtitle {
    position: relative;
    z-index: 2; /* Asegura que el texto esté sobre el overlay */
}


.hero-title {
    font-size: 65px;
    font-weight: bold;
    color: white;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 1.5s ease-out forwards;
	text-shadow: 5px 0px 7px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: white;
    font-weight: normal;
    color: white;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 1.5s ease-out forwards;
	text-shadow: 5px 0px 7px rgba(0, 0, 0, 0.3);
}

/* Animaciones */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.services {
    background-image: url("Imagenes/fondo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}
.contact {
    position: relative;
    width: 100%;
    min-height: 70vh; /* Ajusta según sea necesario */
    background: url('Imagenes/fibra6.jpg') center/cover no-repeat;
    background-attachment: fixed; /* Mantiene el fondo fijo */
}
@media (max-width: 768px) {
  .contact {
    padding-top: 40px;
    padding-bottom: 40px;
    background-image: url("Imagenes/contacto-movil.jpg"); /* O tu imagen móvil */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
  .contact::before {
    content: "";
    position: absolute; /* Cambiado de fixed a absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("Imagenes/fibra6.jpg") center/cover no-repeat;
    z-index: -1;
    pointer-events: none;
  }
    .contact h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
  }
}

.clients-section {
    text-align: center;
    padding: 60px 20px;
    background: #f5f5f5; /* Fondo ligero */
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    padding: 50px 20px 10px;
}

.client {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 190px;
}

.client img {
    width: 150px; /* Mantengo tu tamaño original */
    height: auto;
    filter: drop-shadow(0px 0px 8px rgba(0,0,0,0.6)); /* MISMA sombra que tú tenías */
    transition: transform 0.3s ease;
}

.client img:hover {
    transform: scale(1.08);
}

.client p {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
}

.intro-section {
    padding: 80px 20px;
    background: white; 
}

.intro-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
}

.intro-half {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-half img {
    width: 290px;
    height: auto;
}

.text-half {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    text-align: center;
    max-width: 600px;
}
.logo-half {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    text-align: center;
}

.logo-text {
    margin-top: 10px;
    font-size: 16px;
    color: #555; 
    font-weight: bold;
}
.text-half h2 {
    font-size: 32px;
    font-weight: bold;
}

.text-half p {
    font-size: 18px;
    color: #555; 
}
.contact-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 170px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.9);
	padding: 10px; 
	text-decoration: none; 
    color: inherit;
}

.contact-box img {
    width: 40px; 
    height: auto;
    margin-bottom: 10px;
}

.contact-box p {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}
.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 35vh; 
}
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .menu {
        flex-direction: column;
        gap: 10px;
    }

    .intro-container {
        flex-direction: column; 
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
    }
	.hero-title {
        font-size: 32px; 
    }

}
@media (max-width: 768px) {
    .hero {
        background-image: url("Imagenes/camara1.jpg");
        height: 100vh;
        background-size: cover;
        background-position: center;
    }
}

img {
    max-width: 100%;
    height: auto;
}
#scrollToTop {
    position: fixed;
    top: 50%; 
    right: 0; 
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 10px 0 0 10px; 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%);
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#scrollToTop img {
    width: 30px;
    height: auto;
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px); 
}
.scroll-top-btn {
    position: fixed;
    bottom: 160px;
    right: -10px;
    width: 40px;
    height: 30px;
    background: rgba(200, 200, 200, 0.8);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100px); 
    transition: transform 0.4s ease, opacity 0.4s ease;
    display: flex;
}

/* Ícono */
.scroll-top-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    pointer-events: none;
}

/* Cuando se muestra */
.scroll-top-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0); /* vuelve a su lugar suavemente */
}
.webmail-btn {
  display: inline-block;
  background-color: #9bcd38;
  color: white;
  padding: 7px 10px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.webmail-btn:hover {
  background-color: #83b32f;
}


