/* ===== ESTILO NEGRO + VERDE LIMÓN MATE ===== */
:root {
    --bg: #000000;
    --card-bg: #0a0a0a;
    --primary: #00FF00;   /* verde limón mate */
    --text: #e0e0e0;
    --border: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background: rgba(169, 172, 172, 0.1) url('assets/img/fondo-header.png') repeat center center;
    border-bottom: 1px solid var(--border);
    background-blend-mode: overlay;
    position: sticky;
    top: 0;
    z-index: 100;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.logo { display: flex; align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary);
}
.logo span {
    color: #fff;
}
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: 0.2s;
}
.nav-menu a:hover {
    color: var(--primary);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero */
.hero {
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a0f0a, #000);
    border-bottom: 1px solid var(--border);
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero .highlight {
    color: var(--primary);
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #aaa;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    margin: 0 0.5rem;
}
.btn-primary {
    background: var(--primary);
    color: #000;
    border: none;
}
.btn-primary:hover {
    background: #9ccc65;
    transform: scale(1.02);
}
.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: #000;
}
.btn-small {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    background: var(--primary);
    color: #000;
    border-radius: 2rem;
    text-decoration: none;
    margin-top: 0.5rem;
}
.btn-small:hover {
    background: #9ccc65;
}

/* Secciones */
.services, .projects, .services-list, .projects-list {
    padding: 4rem 0;
}
h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
}
.services-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Tarjetas de servicios */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: 0.2s;
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}
.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.service-card h3 {
    margin-bottom: 0.5rem;
}

/* Tarjetas de proyectos con imagen de fondo */
.project-card {
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    transition: transform 0.3s;
    border: 1px solid var(--border);
}
.project-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
}
.project-info {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    padding: 1.5rem;
    width: 100%;
    color: white;
}
.project-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.project-info p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.tech {
    display: inline-block;
    background: rgba(139,195,74,0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    color: var(--primary);
}

/* Página de contacto */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}
.contact-info i {
    width: 1.5rem;
    color: var(--primary);
}
.social a {
    color: var(--text);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: 0.2s;
}
.social a:hover {
    color: var(--primary);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: white;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.alert.success {
    background: #1a3a1a;
    color: var(--primary);
}
.alert.error {
    background: #3a1a1a;
    color: #ff8888;
}

/* Footer */
footer {
    background: #050505;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}
footer h3, footer h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}
footer ul {
    list-style: none;
}
footer a {
    color: #aaa;
    text-decoration: none;
}
footer a:hover {
    color: var(--primary);
}
.copyright {
    text-align: center;
    font-size: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #000;
        width: 100%;
        text-align: center;
        padding: 2rem;
        gap: 1rem;
        transition: 0.3s;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu.active {
        left: 0;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .project-card {
        min-height: 280px;
    }
}

.page-header {
    text-align: center;
    padding: 3rem 0;
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
}
.page-header h1 {
    color: var(--primary);
    font-size: 2rem;
}
.text-center {
    text-align: center;
    margin-top: 2rem;
}
/* Estilos para el captcha */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.captcha-container label {
    background: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    color: #00FF00;
}
.captcha-container input {
    width: 100px;
    margin: 0;
}
.btn-captcha {
    background: #222;
    border: 1px solid #00FF00;
    color: #00FF00;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: 0.2s;
}
.btn-captcha:hover {
    background: #00FF00;
    color: #000;
}





/* ===== SLIDER RESPONSIVO (CORREGIDO) ===== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh; /* Altura fija relativa a la ventana */
    min-height: 400px;
    max-height: 800px;
    background-color: #000;
    overflow: hidden;
    border-bottom: 1px solid #00FF00;
}
.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide.active {
    opacity: 1;
    z-index: 1;
}
.hero-content {
    background: rgba(0,0,0,0.6);
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    max-width: 700px;
    text-align: center;
    backdrop-filter: blur(4px);
    border: 1px solid #00FF00;
}
.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}
.hero-content .highlight {
    color: #00FF00;
}
.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #eee;
}
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #00FF00;
    border: none;
    font-size: 2rem;
    padding: 0.2rem 0.8rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 0.5rem;
    transition: 0.2s;
}
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }
.slider-prev:hover, .slider-next:hover {
    background: #00FF00;
    color: #000;
}
.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}
.slider-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: 0.2s;
}
.slider-dots .dot.active {
    background: #00FF00;
    box-shadow: 0 0 5px #00FF00;
}
@media (max-width: 768px) {
    .hero-slider {
        height: 55vh;
        min-height: 300px;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .slider-prev, .slider-next {
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }
}

/* Ajustes para el logo */
.logo-img {
    height: 120px;
    width: auto;
    max-width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .logo-img {
        height: 120px;
        max-width: auto;
    }
}

/* Fondo de tecnología en el header */
header {
    background: rgba(0,0,0,0.85) url('https://www.transparenttextures.com/patterns/circuit-board.png') repeat center center;
    background-blend-mode: overlay;
    position: relative;
}
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 0;
}
header .container {
    position: relative;
    z-index: 1;
}
