:root {
    --primary-color: #333;
    --secondary-color: #222;
    --text-color: #333;
    --text-color2: #fff;
    --background-color: #f9f9f9;
    --header-bg: #fff;
    --footer-bg: #222;
    --font-family: 'Poppins', sans-serif;
}

/* Estilos Generales */
body {
    font-family: var(--font-family);
    margin: 0;
    padding: 80px 0 0;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    width: 90%;/*
    max-width: 1200px;*/
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: var(--font-family);
    color: #222;
    font-weight: 700;
}

h1 { font-size: 42px; }
h2 { font-size: 32px; margin-bottom: 30px; }
h3 { font-size: 26px; }

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

a:hover { color: var(--primary-color); }

/* Header */
header {
    background-color: var(--header-bg);
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 15px;
    padding-left: 2em;
}

.social-icons a {
    font-size: 20px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.social-icons a:hover { color: var(--primary-color); }

header h1 {
    margin: 0;
    font-size: 28px;
    text-align: center;
    line-height: 1.2;
    color: #222;
    font-weight: 700;
}

/* Menú Desplegable */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.dropdown-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--header-bg);
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 80px 20px 20px;
}

.dropdown-menu.active {
    display: block;
    right: 0;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li { margin: 20px 0; }

.nav-links a {
    font-size: 18px;
    color: var(--text-color);
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover { color: var(--primary-color); }
/* Hero Section */
.hero {
    background: url('https://worldxchange.com.pe/personal/img/uyuni-12.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-attachment: fixed;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Botón */
.btn,.btn-about {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 24px;
    border-radius: 0;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    opacity: 0.9;
}

.btn:hover,.btn-about:hover {
    background-color: #fff;
    color: #000;
    transform: scale(1.05);
    opacity: 1;
}

/* Sobre Mí */
.about {
    position: relative;
    background: url('https://worldxchange.com.pe/personal/img/puno_-4.jpg') no-repeat center center/cover;
    height: auto; /* Altura automática para ajustarse al contenido */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-attachment: fixed;
    padding: 80px 0; /* Padding vertical */
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 47, 64, 0.8); /* Fondo oscuro semi-transparente */
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
    width: 90%; /* Ancho del contenedor */
    max-width: 1200px; /* Ancho máximo */
    margin: 0 auto; /* Centrar el contenedor */
    padding: 0 20px; /* Padding horizontal */
}

.about h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
    animation: fadeIn 2s ease-in-out;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px; /* Espacio entre la imagen y el texto */
    margin-top: 30px;
}

.about-image {
    flex: 1;
    max-width: 400px; /* Limita el ancho máximo de la imagen */
    margin: 0 auto; /* Centra la imagen horizontalmente */
    height: auto; /* Ajusta la altura automáticamente */
}

.about-image img {
    width: 100%; /* Ocupa el 100% del ancho del contenedor */
    height: 100%; /* Ocupa el 100% de la altura del contenedor */
    object-fit: cover; /* Ajusta la imagen sin distorsionarla */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    text-align: left;
    color: #fff; /* Texto en blanco */
}

.about-text h3 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #fff; /* Título en blanco */
}

.about-text .subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #fff; /* Subtítulo en blanco */
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #fff; /* Párrafo en blanco */
}



/* Portafolio */
.portfolio {
    width: 100%; /* Ocupa el 100% del ancho */
    height: 100vh; /* Ocupa el 100% de la altura de la pantalla */
    text-align: center;
    background-color: var(--header-bg);
    overflow: hidden; /* Evita el desbordamiento */
}

.container {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0; /* Elimina el padding */
}

.portfolio-list {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ocupa el 100% de la altura de la sección */
}

.portfolio-item {
    flex: 1; /* Cada categoría ocupa una parte igual de la altura */
    background-size: cover; /* Asegura que la imagen cubra todo el contenedor */
    background-position: center; /* Centra la imagen */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;/* F
    background-color: rgba(0, 0, 0, 0); ondo oscuro semi-transparente */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {/*
    background-color: rgba(0, 0, 0, 0.2);  Fondo más oscuro al hacer hover */
}

.portfolio-overlay h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}



.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    transition: opacity 0.3s ease;
}
.gallery.hidden {
    opacity: 0;
}
.gallery a {
    position: relative;
    display: block;
    overflow: hidden;
}

.gallery img {
    width: 100%;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery a:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.gallery a::after {
    content: attr(data-title);
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    transition: bottom 0.3s ease;
}

.gallery a:hover::after {
    bottom: 0;
}

.gallery img:hover { transform: scale(1.05); }

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Efecto al hacer clic */
.filter-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
/* Servicios */
/* Estilos generales para la sección de servicios */
.services {
    padding: 60px 0; /* Aumentar el padding vertical */
    text-align: center;
    background-color: #000; /* Fondo negro para la sección */
    color: #fff; /* Texto blanco */
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en pantallas grandes */
    gap: 0; /* Sin espacio entre las cards */
    margin-top: 30px;
}

/* Estilos para cada card de servicio */
.service-card {
    padding: 40px; /* Aumentar el padding interno */
    text-align: left;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    height: 400px; /* Altura fija para las cards */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Alinear el contenido al final */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover en las cards */
.service-card:hover {
    transform: scale(1.05); /* Escalar ligeramente la card */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Sombra más pronunciada */
}

/* Overlay para mejorar la legibilidad del texto */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Overlay más oscuro */
    z-index: 1;
    transition: background-color 0.3s ease;
}

/* Efecto hover en el overlay */
.service-card:hover::before {
    background-color: rgba(0, 0, 0, 0.8); /* Overlay más oscuro al hacer hover */
}

/* Estilos para el contenido dentro de las cards */
.service-card * {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté sobre el overlay */
}

.service-card h3 {
    font-size: 28px; /* Tamaño de fuente más grande */
    margin-bottom: 15px;
    color: #fff; /* Texto blanco */
}

.service-card p {
    font-size: 18px; /* Tamaño de fuente más grande */
    line-height: 1.6;
    margin-bottom: 20px;
    color: #fff; /* Texto blanco */
}

.service-gear {
    margin-top: 20px;
}

.service-gear h4 {
    font-size: 20px; /* Tamaño de fuente más grande */
    margin-bottom: 10px;
    color: #fff; /* Texto blanco */
}

.service-gear ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-gear ul li {
    font-size: 16px; /* Tamaño de fuente más grande */
    margin-bottom: 8px;
    color: #fff; /* Texto blanco */
    position: relative;
    padding-left: 20px;
}

.service-gear ul li::before {
    content: "•";
    color: #fff; /* Viñetas blancas */
    position: absolute;
    left: 0;
    font-size: 18px;
}

/* Imágenes de fondo para cada bloque */
.service-1 {
    background-image: url('https://static.wixstatic.com/media/3513c2_ca4714db621d4465984fc5c957714a47~mv2.jpg/v1/fill/w_322,h_992,fp_0.49_0.63,q_80,enc_avif,quality_auto/3513c2_ca4714db621d4465984fc5c957714a47~mv2.jpg');
    background-size: cover;
    background-position: center;
    color: #fff; /* Texto en blanco para contraste */
}

.service-2 {
    background-image: url('https://static.wixstatic.com/media/nsplsh_c008ee2016a64fdcb9a0dc5950beb474~mv2.jpg/v1/fill/w_964,h_539,fp_0.52_0.33,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/nsplsh_c008ee2016a64fdcb9a0dc5950beb474~mv2.jpg');
    background-size: cover;
    background-position: center;
    color: #fff; /* Texto en blanco para contraste */
}

.service-3 {
    background-image: url('https://static.wixstatic.com/media/3513c2_c90578b26b4f4f61a4ed2da7f7b488f4~mv2.jpg/v1/fill/w_964,h_539,fp_0.50_0.96,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/DJI-Mavic-3-featured4%20(1).jpg');
    background-size: cover;
    background-position: center;
    color: #fff; /* Texto en blanco para contraste */
}

/* Overlay para mejorar la legibilidad del texto */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Overlay más oscuro */
    z-index: 1;
}

.service-card * {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté sobre el overlay */
}


/* Contacto */
.contact {
    padding: 80px 0;
    background-color: #fff; /* Fondo blanco */
    color: #000; /* Texto negro */
}

.contact-content {
    display: flex;
    justify-content: space-between; /* Espacio entre la sección izquierda y el formulario */
    max-width: 900px; /* Ancho máximo del contenido */
    margin: 0 auto; /* Centrar el contenido */
}

.contact-left {
    width: 45%; /* Ancho de la sección izquierda */
    text-align: left; /* Alinear el contenido a la izquierda */
}

.contact h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #000; /* Texto negro */
    font-weight: bold; /* Título en negrita */
}

.contact .subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    color: #000; /* Texto negro */
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #000; /* Texto negro */
}

.contact-info strong {
    font-weight: bold; /* Texto en negrita para "E-MAIL" y "LOCATION" */
}

.contact-form {
    width: 45%; /* Ancho del formulario */
    text-align: left; /* Alinear el formulario a la izquierda */
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: none; /* Eliminar todos los bordes */
    border-bottom: 1px solid #ccc; /* Solo borde inferior */
    border-radius: 0; /* Eliminar bordes redondeados */
    font-size: 16px;
    background-color: transparent; /* Fondo transparente */
    color: #000; /* Texto negro */
    outline: none; /* Eliminar el borde al hacer focus */
    
}



.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999; /* Color del placeholder gris */
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Estilo al hacer focus (opcional) */
.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom: 2px solid #000; /* Borde inferior más grueso al hacer focus */
}
.contact-form button {
    background-color: #000; /* Fondo negro */
    color: #fff; /* Texto blanco */
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-form button:hover {
    background-color: #333; /* Fondo gris oscuro al hacer hover */
    color: #fff; /* Texto blanco */
}
/* Footer */
footer {
    background-color: #222; /* Fondo oscuro */
    color: #fff; /* Texto blanco */
    padding: 20px 0; /* Espaciado interno */
    text-align: center; /* Centrar el contenido */
    border-top: 1px solid #444; /* Borde superior sutil */
}

.footer-content {
    max-width: 1200px; /* Ancho máximo del contenido */
    margin: 0 auto; /* Centrar el contenido */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Espacio entre los elementos */
}

.copyright {
    font-size: 14px; /* Tamaño de fuente */
    margin: 0; /* Eliminar margen predeterminado */
    color: #aaa; /* Color gris claro para el texto de derechos de autor */
}

.social-links {
    display: flex;
    gap: 15px; /* Espacio entre los íconos */
}

.social-links a {
    color: #fff; /* Color blanco para los íconos */
    font-size: 20px; /* Tamaño de los íconos */
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #ccc; /* Color gris al hacer hover */
    transform: translateY(-3px); /* Efecto de levantar el ícono */
}


/* Botón Flotante */
.float-button {
    position: fixed;
    bottom: 120px;
    right: 20px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px;
    border-radius: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
    opacity: 0; /* Inicialmente invisible */
    visibility: hidden; /* Inicialmente oculto */
}

.float-button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.float-button.visible {
    opacity: 1; /* Hacer visible */
    visibility: visible; /* Mostrar el botón */
}


/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .header-content h1 { font-size: 24px; }

    .hero-content h2 { font-size: 36px; }

    .portfolio-item {
        height: 250px; /* Reduce la altura en móviles */
    }

    .portfolio-overlay h3 {
        font-size: 20px; /* Reduce el tamaño del título en móviles */
    }

    .portfolio-overlay .btn {
        padding: 10px 20px; /* Reduce el tamaño del botón en móviles */
    }
    .about {
        padding: 40px 0; /* Reduce el padding en móviles */
    }

    .about-content {
        flex-direction: column; /* Apila imagen y texto verticalmente */
        text-align: center;
        gap: 20px; /* Reduce el espacio entre imagen y texto */
    }

    .about-text {
        text-align: center; /* Centra el texto en móviles */
    }

    .about-image {
        max-width: 80%; /* Reduce el tamaño de la imagen en móviles */
    }

    .about h2 {
        font-size: 36px; /* Reduce el tamaño del título en móviles */
    }

    .about-text h3 {
        font-size: 28px; /* Reduce el tamaño del subtítulo en móviles */
    }

    .about-text .subtitle {
        font-size: 16px; /* Reduce el tamaño del subtítulo en móviles */
    }

    .about-text p {
        font-size: 14px; /* Reduce el tamaño del párrafo en móviles */
    }

    .btn-about {
        padding: 10px 20px; /* Reduce el tamaño del botón en móviles */
    }

    .service-item { width: 100%; }

    .social-icons { display: none; }
    .filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    .service-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 columna en móviles */
    }

    .service-card {
        height: 300px; /* Reducir la altura en móviles */
        padding: 20px; /* Reducir el padding en móviles */
    }

    .service-card h3 {
        font-size: 24px; /* Reducir el tamaño del título en móviles */
    }

    .service-card p {
        font-size: 16px; /* Reducir el tamaño del texto en móviles */
    }

    .service-gear h4 {
        font-size: 18px; /* Reducir el tamaño del subtítulo en móviles */
    }

    .service-gear ul li {
        font-size: 14px; /* Reducir el tamaño de las viñetas en móviles */
    }
    .contact-content {
        flex-direction: column; /* Apilar la sección izquierda y el formulario en móviles */
        align-items: center; /* Centrar todo el contenido */
        gap: 20px; /* Espacio entre la sección izquierda y el formulario en móviles */
    }

    .contact-left {
        width: 100%; /* Ocupar el 100% del ancho en móviles */
        text-align: center; /* Centrar el contenido en móviles */
    }

    .contact-form {
        width: 80%; /* El formulario ocupa el 80% del ancho en móviles */
        text-align: center; /* Centrar el formulario en móviles */
    }

    .contact h2 {
        font-size: 28px; /* Reducir el tamaño del título en móviles */
    }

    .contact .subtitle {
        font-size: 16px; /* Reducir el tamaño del subtítulo en móviles */
    }
    .contact-form input,
    .contact-form textarea {
        padding-top: 12px;
        padding-bottom: 12px;
        padding-left: 0px;
        padding-right: 0px;

    }
    .copyright {
        font-size: 12px; /* Reducir el tamaño del texto en móviles */
    }

    .social-links a {
        font-size: 18px; /* Reducir el tamaño de los íconos en móviles */
    }
    
}