:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
    --white: #ffffff;
}

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

body {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

html {
    scroll-behavior: smooth;
}

/* Header y Navegación */
header {
    position: fixed;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.nav-toggle .bar {
    width: 28px;
    height: 4px;
    background: var(--primary-color);
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.4s;
}

/* Animación hamburguesa a X */
.nav-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
    border-radius: 10px;
}

.hero-content .hero-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-image: linear-gradient(to right, #5abebd, #2da7e0);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-image 0.3s ease, transform 0.3s ease;
    border: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    background-image: linear-gradient(to left, #5abebd, #2da7e0);
}

/* Servicios */
.services {
    padding: 5rem 1rem;
    background: var(--light-bg);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.service-card i {
    font-size: 2.5rem;
    background-image: linear-gradient(to right, #5abebd, #2da7e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback for browsers that don't support text-fill-color */
    margin-bottom: 1rem;
}

/* Nosotros */
.about {
    padding: 5rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: url('img/icon.png') no-repeat center center;
    background-size: contain;
    opacity: 0.07;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.about h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/* Contacto */
.contact {
    padding: 5rem 1rem;
    background: var(--light-bg);
    text-align: center;
}

.contact h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.contact p {
    margin-bottom: 2rem;
}

.contact-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-image: linear-gradient(to right, #5abebd, #2da7e0);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-image 0.3s ease;
    border: none;
}

.contact-button:hover {
    background-image: linear-gradient(to left, #5abebd, #2da7e0);
}

/* Footer */
footer {
    background: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        position: absolute;
        top: 70px;
        right: 20px;
        background: var(--white);
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        border-radius: 10px;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 2rem;
        display: none;
        z-index: 1001;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        margin: 1rem 0 0 0;
        color: var(--primary-color);
        font-size: 1.2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
} 