/* Importar fuentes modernas */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Variables CSS para colores y espaciado */
:root {
    --primary-color: #FFC107;
    --secondary-color: #FF6B35;
    --dark-color: #1A1A1A;
    --light-color: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
    --gradient-secondary: linear-gradient(135deg, #FF6B35 0%, #F44336 100%);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.3);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: url('Firma.webp') no-repeat center center fixed;
    background-size: cover;
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animaciones globales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Header más compacto */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
    padding: 10px 0;
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container > * {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    animation: slideInLeft 0.8s ease-out;
}

.logo {
    height: 70px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo:hover {
    transform: scale(1.05);
}

/* Menú más compacto */
.menu {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--light-color);
    transform: scale(1.1);
}

.menu-list {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu-list li {
    position: relative;
}

.menu-list a {
    color: var(--light-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: color 0.3s ease;
}

.menu-list a:hover {
    color: var(--primary-color);
}

/* Sección de presentación más compacta */
.presentacion {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}



.presentacion-contenido {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    animation: fadeInUp 0.8s ease-out;
}

.presentacion-contenido p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-align: justify;
}

/* Sección servicios más compacta */
.servicios {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.6);
    position: relative;
}

.servicios h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 40px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.servicios-grid {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.servicio-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 193, 7, 0.2);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.servicio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 107, 53, 0.1));
    transition: var(--transition);
    z-index: 1;
}

.servicio-item:hover::before {
    left: 0;
}

.servicio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
    border-color: var(--primary-color);
}

.servicio-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.servicio-item:hover img {
    transform: scale(1.05);
}

.servicio-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

.servicio-item p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

/* Footer más compacto */
footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 193, 7, 0.2);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.footer-item:hover {
    background: rgba(255, 193, 7, 0.1);
    transform: translateY(-3px);
}

.footer-item i {
    font-size: 24px;
    color: var(--primary-color);
    transition: var(--transition);
}

.footer-item:hover i {
    transform: scale(1.2);
}

.footer-item p {
    color: var(--light-color);
    font-size: 14px;
    font-weight: 500;
}

.footer-item a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-item a:hover {
    color: var(--primary-color);
}

/* Responsive Design más compacto */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 8px 20px;
    }
    
    .logo-container {
        margin-bottom: 10px;
    }
    
    .logo {
        height: 60px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-list {
        display: none;
        flex-direction: column;
        gap: 10px;
        background: rgba(0, 0, 0, 0.9);
        padding: 15px;
        border-radius: var(--border-radius);
        width: 100%;
        margin-top: 10px;
    }
    
    .menu-list.active {
        display: flex;
    }
    
    .menu-list a {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .presentacion {
        padding: 60px 0;
    }
    
    .presentacion-contenido {
        padding: 30px 20px;
    }
    
    .presentacion-contenido p {
        font-size: 14px;
    }
    
    .servicios {
        padding: 50px 0;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .servicio-item {
        padding: 15px;
    }
    
    .servicio-item img {
        height: 150px;
    }
    
    .servicio-item h3 {
        font-size: 16px;
    }
    
    .servicio-item p {
        font-size: 13px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-item i {
        font-size: 20px;
    }
    
    .footer-item p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 50px;
    }
    
    .presentacion {
        padding: 50px 0;
    }
    
    .presentacion-contenido {
        padding: 25px 15px;
    }
    
    .servicios {
        padding: 40px 0;
    }
    
    .servicio-item img {
        height: 120px;
    }
    
    .servicio-item h3 {
        font-size: 15px;
    }
    
    .servicio-item p {
        font-size: 12px;
    }
}
