/* --- Variables de Marca --- */
:root {
    --primary: #2daa29;
    --primary-dark: #16a085;
    --dark: #000000;
    --light: #ffffff;
    --gray: #f4f4f4;
    --text-dark: #333;
    --pear-dark: #002838;
    --pear-light: #2daa29;
    --transition: all 0.3s ease;
}

/* --- Reset General --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light);
    overflow-x: hidden;
}

/* --- Navegación --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 12px 5%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Ajustes para el logo de imagen */
.logo img {
    height: 50px; /* Altura inicial */
    width: auto;
    display: block;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 40px; /* Altura reducida al hacer scroll */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: var(--transition);
    font-weight: 400;
}

.nav-links a:hover { color: var(--primary); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light);
    background-size: cover;
    background-position: center;
    position: relative;
    background-image: url('/assets/imagenes/fondo5.png');
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-btns {
    display: none;
    margin-top: 2rem;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Sección Proyectos Web --- */
.proyectos-section {
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--pear-dark);
    margin: 15px 0;
    text-transform: uppercase;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.proyecto-card {
    background: var(--light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #eee;
}

.proyecto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.proyecto-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.proyecto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.proyecto-card:hover .proyecto-image img {
    transform: scale(1.1);
}

.proyecto-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
}

.proyecto-tag {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.proyecto-info {
    padding: 20px;
}

.proyecto-info h3 {
    font-size: 1.1rem;
    color: var(--pear-dark);
    margin-bottom: 10px;
}

.proyecto-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Ajuste Responsive */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 1.6rem;
    }
}


/* --- Componentes --- */
.container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.btn {
    padding: 14px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.8rem;
    min-width: 160px;
    text-align: center;
    cursor: pointer;
}

.btn-primary { background: var(--primary); color: white; border: none; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-outline { border: 2px solid white; color: white; }
.btn-outline:hover { background: white; color: var(--dark); }

/* --- Cards & Grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--pear-light);
    text-align: center;
    transition: var(--transition);
}

.card:hover { transform: translateY(-5px); }
.card i { color: var(--primary); margin-bottom: 1.5rem; width: 48px; height: 48px; }
.card h3 { margin-bottom: 1rem; color: var(--pear-dark); }

/* --- Intro Grid --- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    background: var(--pear-light);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.image-block img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-list { list-style: none; margin: 20px 0; }
.feature-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.feature-list i { color: var(--primary); }

/* --- CTA Banner --- */
.cta-banner {
    background: var(--pear-dark);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

/* --- Footer --- */
.main-footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 0;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 250px;
        background: var(--dark);
        flex-direction: column;
        padding: 80px 20px;
        transition: 0.4s;
    }
    .nav-links.show { right: 0; }
    .intro-grid { grid-template-columns: 1fr; }
}