/* css/styles.css */

/* Estilos globales */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-size: cover;
}

/* Navegación */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #575757;
    border-radius: 4px;
}

/* Sección de portada */
#cover {
    position: relative;
    width: 100%;
    max-width: 1300px;
    height: 600px;
    margin: 0;
    overflow: hidden;
}

.cover-content {
    position: static;
    width: 100%;
    height: 100%;
}

.cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
    border: 5px solid #333;
    border-radius: 10px;
}

/* Perfil */
.profile-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.profile-img {
    width: 150px;
    height: auto;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.1);
}

/* Tarjetas */
.card {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
    margin: 20px auto;
    color: #000;
}

/* Sección Hero */
#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

/* Contenido del formulario e imagen */
.form-content, .image-content {
    flex: 1;
    min-width: 300px;
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
}

.form-content {
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.8);
}

.image-content {
    max-width: 600px;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Botones */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Formularios */
form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input, textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

/* Secciones */
section {
    padding: 40px 20px;
    text-align: center;
}

#services, #contact {
    background-color: transparent;
}

#services h2, #contact h2 {
    margin-bottom: 20px;
    font-size: 2em;
}

#services ol {
    text-align: left;
    margin: 0 auto;
    padding-left: 20px;
    max-width: 600px;
}

/* Botón de WhatsApp */
.whatsapp-button {
    display: flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.whatsapp-button img {
    margin-right: 8px;
    width: 20px;
    height: 20px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/* Contacto */
#contact form {
    max-width: 400px;
    margin: 0 auto;
}

#projects {
    padding: 50px;
}

.card h2 {
    text-align: center;
    margin-bottom: 20px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas */
    gap: 20px; /* Espacio entre las imágenes */
    max-height: 800px; /* Altura máxima del contenedor */
    overflow-y: auto; /* Habilitar scroll vertical */
    padding-right: 10px; /* Añadir un pequeño espacio para evitar que se corte el scroll */
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05); /* Efecto hover para imágenes */
}

.project-card h3 {
    text-align: center;
    margin-top: 10px;
    font-size: 1.2em;
}

.project-card p {
    text-align: center;
    font-size: 1em;
    margin-top: 10px;
}

/* Estilo para el scroll */
.image-gallery::-webkit-scrollbar {
    width: 8px; /* Ancho del scrollbar */
}

.image-gallery::-webkit-scrollbar-thumb {
    background-color: #4CAF50; /* Color verde para el thumb */
    border-radius: 10px;
}

.image-gallery::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* Color del track del scrollbar */
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.modal-content img {
    width: 100%;
    height: auto;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Íconos sociales */
p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 25px;
    height: 25px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.5);
}

/* Listas */
.no-bullets {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.centered-list {
    text-align: center;
}

/* Footer */
#footer-info .info-container {
    display: flex;
    justify-content: space-between;
}

#footer-info .info-column {
    width: 48%;
}

#footer-info .location {
    margin-top: 20px;
    text-align: center;
    width: 100%;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}

#footer-info p {
    margin: 5px 0;
}

/* Contenedor de navegación de flechas */
.nav-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    transform: translateY(-50%);
}

.arrow {
    cursor: pointer;
    color: white;
    font-size: 40px;
    padding: 20px;
    user-select: none;
    transition: color 0.3s;
}

.arrow:hover {
    color: #bbb;
}

/* Estilos para las flechas de navegación */
.prev {
    position: absolute;
    left: 0;
}

.next {
    position: absolute;
    right: 0;
}

/* Icono del cámara */
.camera-divider {
    font-size: 30px; /* Tamaño del texto */
    margin: 20px 0; /* Margen vertical */
    color: #000000; /* Color del texto */
    text-align: center; /* Centrar el texto */
}

/* Banner */
.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    width: 80%;
    max-width: 800px;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(10, 65, 2, 0.8);
    box-shadow: 0 0 20px rgba(0, 0, 0, 1);
    animation: fadeIn 2s ease-in, bounce 1s infinite; /* Animación de resplandor multicolor */
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px); /* Rebote hacia arriba */
    }
    60% {
        transform: translateY(-5px); /* Rebote más sutil */
    }
}

/* Efecto de agrandamiento al pasar el mouse */
.banner:hover {
    animation: grow 0.3s ease-in-out forwards; /* Efecto de agrandamiento */
}

@keyframes grow {
    from {
        transform: scale(1); /* Tamaño normal */
    }
    to {
        transform: scale(1.05); /* Agrandamiento al 105% */
    }
}

/* Estilo para el texto del divisor de cámara */
.camera-divider {
    font-size: 30px; /* Tamaño del texto */
    margin: 20px 0; /* Margen vertical */
    color: #000000; /* Color del texto */
    text-align: center; /* Centrar el texto */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Sombra del texto */
    animation: glow 1.5s infinite alternate; /* Efecto de resplandor */
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1);
    }
}

.captcha-container {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.captcha-display {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.captcha-text {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    background-color: #f7f7f7;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-right: 10px;
}

.captcha-refresh {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.captcha-refresh:hover {
    background-color: #0056b3;
}

.captcha-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.wave-effect {
    position: fixed; /* Cambia a fijo para que no se desplace con el contenido */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: -1; /* Coloca el efecto de fondo detrás del contenido */
}

.wave-effect .wave {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    border-top: 2px solid rgba(255, 255, 255, 0.6);
    animation: wave 4s ease-in-out infinite;
    transform-origin: center center;
}

.wave-effect .wave:nth-child(1) {
    animation-duration: 4s;
    animation-delay: 0s;
    opacity: 0.6;
}

.wave-effect .wave:nth-child(2) {
    animation-duration: 6s;
    animation-delay: -2s;
    opacity: 0.4;
}

.wave-effect .wave:nth-child(3) {
    animation-duration: 8s;
    animation-delay: -4s;
    opacity: 0.2;
}

@keyframes wave {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}