/* Variables y Reset Base */
:root {
    --primary-color: #ffcc00;
    --dark-bg: #111111;
    --light-bg: #f9f9f9;
    --text-color: #333333;
    --text-light: #ffffff;
    --gray-color: #666666;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Tipografía Básica */
h1, h2, h3, h4 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grillas Responsivas con CSS Grid */
.grid {
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--dark-bg);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img { max-height: 40px; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover { color: var(--primary-color); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-content h1 {
    font-size: 2.5rem;
    margin: 10px 0;
    color: var(--primary-color);
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
}

.btn-outline {
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Servicios y Tarjetas */
.card, .service-item {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.card:hover, .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.card-icon {
    max-width: 80px;
    margin: 0 auto 20px;
}

/* Portafolio */
.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-light);
    padding: 15px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-info { opacity: 1; }

/* Botón flotante WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1001;
    transition: var(--transition);
}

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

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 40px 0;
}

.social-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover { background: var(--primary-color); color: #000; }

/* Responsividad en Dispositivos Móviles */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 20px;
        display: none;
    }

    .nav-menu.active { display: flex; }
    .hero-content h1 { font-size: 2rem; }
}