html {
    scroll-behavior: smooth;
}

body {
    background-color: black;
    color: white;
    font-family: arial, sans-serif;
    margin: 0;
}
a {
    color: white;
    text-decoration: none;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 100;
}

.header-titulo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 18px;
    margin: 0;
}


nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}
.hero p:first-child {
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 24px;
    text-align: center;
}
.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin: 10px 0;
}
.hero a {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    border: 1px solid white;
    border-radius: 30px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero a:hover {
    transform: scale(1.1);
    background-color: #f2c200;
    color: black;
    border-color: #f2c200;
}

.hero {
    background-image: radial-gradient(circle at 70% 40%, rgba(255,255,255,0.08), transparent 60%);
    padding: 60px 40px;
    min-height: 80vh;
    transition: background-color 1s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}


.servicios {
    padding: 60px 40px;
    border-top: 1px solid #333;
}
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.servicios-card h3 {
    font-size: 16px;
    font-weight: normal;
}
.servicios-card i {
    font-size: 28px;
    color: #f2c200;
    margin-bottom: 15px;
    display: block;
}
.proyectos {
    padding: 60px 40px;
    border-top: 1px solid #333;
}
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.proyecto-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background-color: #111;
    border-radius: 8px;
}
.proyecto-card h3 {
    margin-top: 15px;
    font-size: 16px;
}
.proyecto-card p {
    color: #999;
    font-size: 14px;
}
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}
@media (max-width: 768px) {
    nav ul{
        display: none;
    }
    .menu-btn {
        display: block;
    }
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .proyectos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    nav ul.menu-abierto {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: black;
        padding: 20px;
    }
}

nav a {
        display: inline-block;
        transition: transform 0.2s ease, color 0.2s ease;
    }
    nav a:hover {
        transform: scale(1.1);
        color: #f2c200;
    }

.cta {
    text-align: center;
    padding: 60px 40px;
    border: 1px solid #333;
    border-radius: 12px;
    margin: 40px;
}

.cta a {
    display: inline-block;
    margin-top: 20px;
    color: #f2c200;
    font-weight: bold;
}

.cta a i {
    margin-right: 6px;
}

footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px;
    border-top: 1px solid #333;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: #999;
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-col a:hover {
    transform: scale(1.1);
    color: #f2c200;
}

.footer-copy {
    width: 100%;
    color: #666;
    font-size: 13px;
    margin-top: 20px;
}

.logo img {
    height: 40px;
    width: auto;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 999;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.subcategorias {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}
.subcategorias li {
    color: #999;
    font-size: 13px;
    padding: 4px 0;
    border-top: 1px solid #222;
}
.subcategorias li:first-child {
    border-top: none;
}

#particulas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.paginas-web {
    padding: 60px 40px;
    border-top: 1px solid #333;
}
.paginaweb-card {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
    background-color: #0a0a0a;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #222;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.paginaweb-card:hover {
    transform: scale(1.02);
    border-color: #f2c200;
}
.paginaweb-imagen {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
}
.paginaweb-imagen img {
    width: 100%;
    display: block;
}
.paginaweb-info {
    flex: 1;
}
.paginaweb-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}
.paginaweb.info p {
    color: #999;
    margin-bottom: 20px;
}
.paginaweb-info a {
    color: #f2c200;
    font-weight: bold;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-overlay.activo {
    display: flex;
}
.modal-caja {
    background-color: #0a0a0a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 40px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}
.modal-cerrar {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}
.modal-galeria {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}
.modal-galeria img {
    height: 220px;
    border-radius: 8px;
    flex-shrink: 0;
}
#modal-titulo {
    font-size: 22px;
    margin-bottom: 10px;
}
#modal-texto {
    color: #ccc;
    line-height: 1.6;
}