/* ==================== */
/* ESTILOS PAGINA1 - SERVICIOS DE CONSTRUCCIÓN */
/* ==================== */
* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', sans-serif;
    overflow-x: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    background-attachment: fixed;
}

/* ==================== */
/* HEADER Y NAVEGACIÓN */
/* ==================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.logo span {
    color: #ff6b35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.7);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ==================== */
/* HERO SECTION */
/* ==================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../img/fondo_de_portada.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    animation: white-glow 2.5s ease-in-out infinite alternate;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.8;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

/* ==================== */
/* SECCIÓN SERVICIOS */
/* ==================== */
.services {
    padding: 100px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

.section-title p {
    font-size: 1.2rem;
    color: #cccccc;
}

.service-category {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.category-header {
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-header:hover {
    background: rgba(255, 255, 255, 0.15);
}

.category-header h3 {
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.category-content.active {
    max-height: 1000px;
}

.service-list {
    padding: 30px;
    list-style: none;
}

.service-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.service-list strong {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* ==================== */
/* FOOTER */
/* ==================== */
footer {
    background: #0a0a0a;
    padding: 60px 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-section p {
    color: #cccccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999999;
}

/* ==================== */
/* ANIMACIONES */
/* ==================== */
@keyframes white-glow {
    from {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.7),
                     0 0 15px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.9),
                     0 0 25px rgba(255, 255, 255, 0.7),
                     0 0 35px rgba(255, 255, 255, 0.4);
    }
}

/* ==================== */
/* RESPONSIVE */
/* ==================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
