/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Colores corporativos */
:root {
    --color-primario: #1a73e8;
    --color-fondo: #f9f9f9;
    --color-texto: #333;
    --color-hover: #ffd700;
}

/* Body */
body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
}

/* Menú de navegación */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(90deg, #1a73e8, #4b6cb7);
    color: white;
}

nav .logo {
    font-size: 1.8rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--color-hover);
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px 60px 20px;
    color: white;
    background: linear-gradient(90deg, #1a73e8, #4b6cb7);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero a {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    color: var(--color-primario);
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.hero a:hover {
    background: #f0f0f0;
}

/* Sección Servicios */
section.servicios, section.trabajos, section.contacto {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

section.servicios h2, section.trabajos h2, section.contacto h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

/* Cards */
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex: 1 1 250px;
    max-width: 300px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Slider/Carousel */
.slider {
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
}

.slides {
    display: flex;
    width: 300%;
    animation: slide 15s infinite;
}

.slides img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
}

@keyframes slide {
    0% { transform: translateX(0%); }
    33% { transform: translateX(-33.333%); }
    66% { transform: translateX(-66.666%); }
    100% { transform: translateX(0%); }
}

/* Footer */
footer {
    background: #333;
    color: #ccc;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

footer a:hover {
    color: var(--color-primario);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }
    .grid {
        flex-direction: column;
        align-items: center;
    }
}
