/* Variables de Color y Estilos Base - Tema Oscuro */
:root {
    --primary-color: #f39c12;
    --secondary-color: #1a1a1a;
    --bg-dark: #0d0d0d;
    --bg-card: #181818;
    --whatsapp-color: #25d366;
    --text-color: #f0f0f0;
    --text-muted: #aaaaaa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-dark);
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Barra de Navegación (Fondo Negro para Integrar Logo JPEG) */
/* Barra de navegación con espacio flexible */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    min-height: 80px; /* Aumenta el alto total de la barra para dar espacio al logo */
    display: flex;
    align-items: center;
}

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

/* Logo con mayor dimensión y margen negativo para sobresalir si es necesario */
.logo-img {
    height: 150px; /* Altura libre */
    width: auto;
    display: block;
    object-fit: contain;
    margin: -15px 0; /* Desborde equilibrado hacia arriba y abajo */
}

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

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

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

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
}

.btn-nav:hover {
    background-color: #d68910;
}

/* Botón Hamburguesa */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
}

/* HERO SECTION (Sección de Inicio con Imagen de Fondo) */
/* HERO SECTION - Configuración de Fondo Corregida */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Se cambió height por min-height para evitar colapsos */
    
    /* IMAGEN DE FONDO: Puedes usar una URL directa o tu propia imagen local (ej: background.jpg) */
    background-image: url('https://images.unsplash.com/photo-1541971875076-8f970d573be6?auto=format&fit=crop&w=1600&q=80');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 100px; /* Suficiente espacio para la barra de navegación alta */
    padding-bottom: 3rem;
}

/* Capa Oscura (overlay) corregida para permitir transparencia */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Color negro al 60% de opacidad */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Garantiza que el texto quede SIEMPRE por encima de la capa oscura */
    max-width: 800px;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #cccccc;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    margin-right: 1rem;
}

.btn-primary:hover {
    background-color: #d68910;
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: #000;
}

/* Secciones Generales */
.section {
    padding: 5rem 0;
    background-color: var(--bg-dark);
}

.bg-card-section {
    background-color: #121212;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
}

/* Grillas y Tarjetas */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.card-info {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 1px solid #222;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border-bottom: 4px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: var(--transition);
    border-top: 1px solid #222;
    border-left: 1px solid #222;
    border-right: 1px solid #222;
}

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

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Portafolio / Referencias */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Formulario de Contacto */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border: 1px solid #222;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--white);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #333;
    background-color: #0d0d0d;
    color: var(--white);
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

/* Footer */
.footer {
    background: #000000;
    color: var(--white);
    padding: 2rem 0;
    border-top: 1px solid #1f1f1f;
}

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

.socials a {
    color: var(--white);
    font-size: 1.2rem;
    margin-left: 1rem;
    transition: var(--transition);
}

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

/* Botón Flotante de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 2px 6px 14px rgba(0,0,0,0.6);
}

/* Animaciones de Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Adaptación para Móviles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #000000;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
    }

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

    .hero h1 {
        font-size: 2rem;
    }

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

    .btn-primary {
        margin-right: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
	
	.logo-img {
    height: 120px; /* Aumentamos la altura de 45px a 65px */
    width: auto;  /* Mantiene la proporción */
    display: block;
    object-fit: contain;
    transform: scale(1.1); /* Agranda ligeramente la imagen */
    transition: var(--transition);
	}
}