:root {
    --primary: #f59e0b; /* Color ámbar/amarillo para temática eléctrica */
    --primary-hover: #d97706;
    --secondary: #2563eb; /* Azul para profesionalismo */
    --dark: #0f172a; /* Azul marino oscuro / pizarra */
    --darker: #020617; /* Fondo más oscuro */
    --light: #f8fafc; /* Gris muy claro */
    --gray: #64748b; /* Gris texto secundario */
    --text-main: #334155; /* Color de texto principal */
    --text-light: #f1f5f9; /* Texto claro para fondos oscuros */
    
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

body {
    background-color: #ffffff;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografía */
h1, h2, h3, h4 {
    color: var(--dark);
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--light);
}

.bg-dark {
    background-color: var(--dark);
}

.bg-dark h2, .bg-dark h3, .bg-dark h4 {
    color: var(--text-light);
}

.text-white {
    color: var(--text-light);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-secondary:hover {
    background-color: var(--dark);
    color: white;
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Barra de navegación */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: '⚡';
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
}

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

.btn-nav {
    background-color: var(--dark);
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--border-radius);
}

.btn-nav:hover {
    background-color: var(--primary);
    color: var(--darker) !important;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--dark);
}

/* Sección Hero */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--light) 0%, #e2e8f0 100%);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Sección Quién Soy */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.about-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--primary);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 15px;
    background-color: var(--light);
    border-radius: 50%;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.project-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #e2e8f0;
}

.project-slider::-webkit-scrollbar {
    height: 6px;
}

.project-slider::-webkit-scrollbar-track {
    background: #e2e8f0;
}

.project-slider::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 3px;
}

.project-img {
    min-width: 100%;
    height: 220px;
    object-fit: cover;
    scroll-snap-align: start;
    display: block;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #e0f2fe;
    color: var(--secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Contacto */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    background: var(--darker);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-icon {
    font-size: 1.5rem;
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item h4 {
    margin-bottom: 0.25rem;
}

.info-item p {
    color: var(--gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    border: 1px solid #334155;
    background: var(--dark);
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    padding: 10px;
    border-radius: var(--border-radius);
    display: none;
}

.form-status.success {
    display: block;
    background-color: #dcfce7;
    color: #166534;
}

.form-status.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
}

/* Footer */
footer {
    background-color: var(--darker);
    color: var(--gray);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #1e293b;
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 16px 0;
    }
    
    .hero {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }
}
