/* VELTHIA - Enhanced Modern CSS */
/* Paleta de colores mejorada con verdes, gris oscuro y blanco */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de colores principal - Verdes y grises */
    --primary-green: #00ff88; /* Verde eléctrico brillante */
    --secondary-green: #00A651; /* Verde medio, para contrastes */
    --dark-green: #008f4a; /* Verde oscuro, para fondos o detalles */
    --light-green: #4dff9a; /* Verde más claro, para highlights */
    --electric-green: #39ff14; /* Verde neón, para acentos y brillo */
    
    /* Colores relacionados con la energía solar */
    --solar-yellow: #FFD700; /* Amarillo dorado */
    --solar-orange: #FFA500; /* Naranja */
    --solar-red: #FF4500; /* Rojo anaranjado */

    /* Grises y blanco */
    --dark-gray: #1a1a1a; /* Fondo principal */
    --medium-gray: #2d2d2d; /* Fondos de tarjetas, borders */
    --light-gray: #f0f0f0; /* Texto claro o backgrounds secundarios */
    --border-gray: #444444; /* Bordes sutiles */
    --text-dark: #1a1a1a; /* Texto oscuro sobre fondos claros */
    --text-light: #f8f9fa; /* Texto claro sobre fondos oscuros */
    --white: #ffffff; /* Blanco puro */
    
    /* Gradientes tecnológicos */
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-gray) 0%, var(--medium-gray) 100%);
    --gradient-electric: linear-gradient(45deg, var(--primary-green) 0%, var(--electric-green) 100%);
    --gradient-solar-glow: radial-gradient(circle at center, var(--solar-yellow) 0%, var(--solar-orange) 50%, transparent 100%);


    /* Sombras y glows */
    --shadow-light: 0 5px 15px rgba(0, 255, 136, 0.2);
    --shadow-dark: 0 5px 20px rgba(0, 0, 0, 0.5);
    --glow-effect: 0 0 15px var(--primary-green), 0 0 30px var(--electric-green);
    --solar-glow-effect: 0 0 20px var(--solar-yellow), 0 0 40px var(--solar-orange);
}

html {
    scroll-behavior: smooth; /* Desplazamiento suave al hacer clic en enlaces internos */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--dark-gray);
    overflow-x: hidden; /* Evita el scroll horizontal */
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animaciones de fondo */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: 
    radial-gradient(circle at 20% 30%, rgba(16, 0, 40, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(30, 30, 30, 0.2) 0%, transparent 35%),
    radial-gradient(circle at 60% 20%, rgba(20, 20, 20, 0.3) 0%, transparent 25%),
    radial-gradient(circle at 30% 80%, rgba(0, 30, 15, 0.1) 0%, transparent 30%),
    linear-gradient(180deg, #000000 0%, #0000007c 100%);
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(0,255,136,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,255,136,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: grid-pulse 15s infinite alternate;
}

@keyframes grid-pulse {
    0% { background-size: 50px 50px; opacity: 0.05; }
    50% { background-size: 55px 55px; opacity: 0.08; }
    100% { background-size: 50px 50px; opacity: 0.05; }
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4; /* Cambiado de 0.2 a 0.4 */
    z-index: 0; 
}

.circuit-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.circuit-svg {
    width: 100%;
    height: 100%;
    opacity: 0.15; /* Cambiado de 0.08 a 0.15 */
    filter: drop-shadow(0 0 5px var(--primary-green));
}

.circuit-path {
    fill: none;
    stroke: var(--primary-green);
    stroke-width: 2px;
    stroke-dasharray: 2000; /* Longitud para la animación de 'drawing' */
    stroke-dashoffset: 2000;
    animation: draw-circuit 30s linear infinite; /* Animación de dibujo continuo */
}

.circuit-path.secondary {
    animation-delay: 5s; /* Retraso para la segunda línea */
    stroke: var(--electric-green);
    opacity: 0.8;
}

.circuit-path.tertiary {
    animation-delay: 10s; /* Retraso para la tercera línea */
    stroke: var(--secondary-green);
    opacity: 0.6;
}

@keyframes draw-circuit {
    to {
        stroke-dashoffset: 0;
    }
}

.solar-energy-source {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 250px; /* Cambiado de 150px a 250px */
    height: 250px; /* Cambiado de 150px a 250px */
    background: var(--gradient-solar-glow);
    border-radius: 50%;
    filter: blur(60px); /* Cambiado de 40px a 60px */
    animation: solar-pulse 5s infinite alternate ease-in-out;
    z-index: -2;
    opacity: 0.8; /* Cambiado de 0.6 a 0.8 */
}

@keyframes solar-pulse {
    0% { transform: translateX(-50%) scale(1); opacity: 0.6; }
    50% { transform: translateX(-50%) scale(1.05); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
}


/* Header */
.header {
    background-color: rgba(26, 26, 26, 0.9); /* Fondo semitransparente oscuro */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-dark);
    backdrop-filter: blur(5px); /* Efecto de desenfoque */
    border-bottom: 1px solid var(--border-gray);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    /* Remover estilos de texto si el logo es una imagen */
    font-size: unset;
    font-weight: unset;
    color: unset;
}

.velthia-image-logo { /* Nueva clase para el logo de imagen */
    height: 60px; /* Tamaño del logo */
    width: auto; /* Mantener proporción */
    filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.3)); /* Sombra sutil para el logo */
    transition: transform 0.3s ease;
}

.velthia-image-logo:hover {
    transform: scale(1.05); /* Pequeño efecto de escala al pasar el ratón */
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-green);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none; /* Oculto en desktop */
    font-size: 1.8rem;
    color: var(--primary-green);
    cursor: pointer;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-dark); /* Texto oscuro en botón verde */
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
    background: var(--gradient-electric);
}

.btn-secondary {
    background-color: var(--medium-gray);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background-color: var(--primary-green);
    color: var(--dark-gray);
    box-shadow: var(--shadow-light);
}

.btn-send {
    width: 100%;
    margin-top: 20px;
}

/* Estilo para el contenedor de botones en el hero */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Espacio entre los botones */
    flex-wrap: wrap; /* Para que se ajusten en pantallas pequeñas */
}

.btn-social { /* Nuevo estilo para el botón social */
    background-color: var(--medium-gray);
    color: var(--light-gray); /* Color inicial del icono */
    border: 2px solid var(--border-gray);
    padding: 12px 20px; /* Ajuste de padding para iconos */
    font-size: 1.1rem; /* Tamaño del icono */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-social:hover {
    background-color: var(--primary-green);
    color: var(--dark-gray);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-light);
}

/* Secciones generales */
section {
    padding: 80px 0;
    position: relative;
    z-index: 1; /* Para asegurar que el contenido esté sobre el fondo animado */
}

.section-description {
    text-align: center;
    max-width: 800px; /* Cambiado de 600px a 800px */
    margin: 15px auto 40px auto;
    color: var(--light-gray);
    font-size: 1.1rem;
    text-wrap: balance;
}

h1, h2 {
    text-align: center;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.8rem;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

p {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Sección Hero */
.hero {
    min-height: 90vh; /* Ajustado para dejar espacio al header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 70%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    animation: fade-in-up 1s ease-out;
}

.hero-content h1 {
    font-size: 4.2rem;
    margin-bottom: 25px;
    background: linear-gradient(45deg, var(--white), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.5));
}

.hero-content h1:nth-of-type(2) {
    font-size: 3.2rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--light-gray);
    line-height: 1.5;
}

.hero .btn {
    margin: 0; /* Eliminar margen para que el gap del flexbox lo maneje */
    padding: 15px 35px;
    font-size: 1.1rem;
}

@keyframes fade-in-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}


/* Sección Nosotros */
.about {
    background-color: var(--dark-gray);
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
}

.about-content p {
    text-align: center;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.about-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.about-item {
    background-color: var(--medium-gray);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    flex: 1 1 calc(33% - 40px); /* 3 ítems por fila */
    max-width: 350px;
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--border-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.2);
}

.about-item i {
    font-size: 3.5rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    text-shadow: var(--glow-effect);
}

.about-item h3 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.about-item p {
    color: var(--light-gray);
}

.about-cards {
    display: flex;
    gap: 30px;
    margin: 30px 0 50px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.about-card {
    background-color: var(--medium-gray);
    padding: 25px;
    border-radius: 12px;
    flex: 1;
    min-width: 350px;
    max-width: 500px;
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.15);
}

.about-card h4 {
    color: var(--primary-green);
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-align: center;
}

.about-card p {
    text-align: center;
    margin-bottom: 0;
}

/* Sección Servicios */
.services {
    background-color: #111; /* Un gris aún más oscuro para contraste */
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--medium-gray);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--border-gray);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: #383838; /* Ligeramente más claro en hover */
    border-color: var(--primary-green);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.2);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--gradient-electric);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: var(--glow-effect);
    animation: pulse-icon 2s infinite ease-in-out;
}

@keyframes pulse-icon {
    0% { transform: scale(1); box-shadow: 0 0 10px var(--primary-green); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px var(--electric-green); }
    100% { transform: scale(1); box-shadow: 0 0 10px var(--primary-green); }
}

.service-card i {
    font-size: 2.8rem;
    color: var(--dark-gray); /* Icono oscuro dentro del wrapper brillante */
}

.service-card h3 {
    color: var(--white);
    font-size: 1.7rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--light-gray);
    font-size: 1rem;
}


/* Sección Proyectos */
.projects {
    background-color: var(--dark-gray);
    border-top: 1px solid var(--border-gray);
    padding: 60px 0;
}

.projects-grid {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 40px;
}

.projects-carousel {
    display: flex;
    gap: 20px;
    animation: scroll-projects 40s linear infinite;
    width: fit-content;
}

@keyframes scroll-projects {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.projects-carousel:hover {
    animation-play-state: paused;
}

.project-card {
    background-color: var(--medium-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-gray);
    width: 400px;
    height: 200px;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.2);
}

.project-image-placeholder {
    width: 150px;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 2.2rem;
    position: relative;
    overflow: hidden;
    border-right: 2px solid var(--primary-green);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    transition: background 0.3s ease;
}

.project-card:hover .project-overlay {
    background: rgba(0, 255, 136, 0.15); /* Ligero overlay verde en hover */
}

.project-icon {
    z-index: 2;
    position: relative;
    text-shadow: var(--glow-effect);
    animation: float-icon 4s infinite ease-in-out;
}

@keyframes float-icon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}


/* Patrón de fondo tecnológico con SVG inlin */
.project-tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Un patrón de circuito simple usando SVG data URI */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,50 L20,50 L25,40 L40,40 L45,50 L60,50 L65,60 L80,60 L85,50 L100,50" stroke="rgba(0,255,136,0.1)" stroke-width="1" fill="none"/></svg>') repeat;
    background-size: 40px 40px;
    opacity: 0.3;
    animation: background-pan 20s linear infinite;
}

@keyframes background-pan {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100% 100%;
    }
}

.project-card h3 {
    padding: 15px 15px 8px;
    color: var(--white);
    font-size: 1rem;
    text-align: center;
}

.project-card p {
    padding: 0 15px 10px;
    color: var(--light-gray);
    font-size: 0.9rem;
}
.project-card p {
    display: none;
}

.project-tech-tags {
    margin-top: auto; /* Empuja las etiquetas hacia abajo */
    padding-top: 15px; /* Agrega espacio arriba de las etiquetas */
}
.project-tech-tags {
    padding: 0 15px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech-tags span {
    background-color: var(--dark-green);
    color: var(--white);
    font-size: 0.6rem;
    padding: 5px 12px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid var(--primary-green);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}
.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
}
/* Sección Contacto */
.contact {
    background-color: #111;
    text-align: center;
}

.contact-form {
    max-width: 700px;
    margin: 50px auto 0;
    background-color: var(--medium-gray);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--border-gray);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    background-color: var(--dark-gray);
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    padding: 50px 0 20px;
    border-top: 1px solid var(--border-gray);
    color: var(--light-gray);
    font-size: 0.95rem;
}

.footer .container {
    text-align: center;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-section {
    flex: 1 1 200px; /* Ajuste flexible */
    padding: 10px;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-align: left;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 1.5px;
}

.footer-section p,
.footer-section li {
    margin-bottom: 10px;
    color: var(--light-gray);
    line-height: 0.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    font-size: 2.5rem; /* Cambiado de 2rem a 2.5rem */
    color: var(--light-gray);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: var(--primary-green);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid var(--border-gray);
    padding-top: 20px;
    text-align: center;
    color: var(--text-gray);
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Nuevas animaciones de interacción */
.interactive-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.interactive-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15); /* Efecto de luz */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out;
    z-index: -1;
}

.interactive-button:hover::before {
    width: 200%;
    height: 200%;
}


/* Media Queries para Responsividad */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .nav-list {
        gap: 20px;
    }

    .about-item {
        flex: 1 1 calc(50% - 30px); /* 2 ítems por fila en tablets */
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* Ajuste para el logo en tabletas */
    .velthia-image-logo { /* Usar la nueva clase */
        height: 50px; /* Reducir un poco el tamaño */
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        margin-bottom: 15px;
        width: 100%;
        justify-content: center;
    }

    .nav {
        width: 100%;
        order: 3; /* Asegura que la nav quede abajo */
        text-align: center;
    }

    .nav-list {
        flex-direction: column;
        display: none; /* Oculto por defecto en móvil */
        width: 100%;
        background-color: rgba(26, 26, 26, 0.95);
        position: absolute;
        top: 75px; /* Altura del header + un poco más */
        left: 0;
        padding: 20px 0;
        border-top: 1px solid var(--border-gray);
        box-shadow: var(--shadow-dark);
        transition: all 0.3s ease-out;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
    }

    .nav-list.active {
        display: flex; /* Mostrar cuando está activo */
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-list li {
        margin: 10px 0;
    }

    .hamburger {
        display: block; /* Mostrar el icono de hamburguesa */
        position: absolute;
        right: 20px;
        top: 25px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero .btn {
        display: block;
        width: 80%;
        margin: 15px auto;
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column; /* Apilar botones en móvil */
        align-items: center;
    }
    
    .btn-social {
        width: 80%; /* Hacer el botón social del mismo ancho que los otros */
        margin-left: 0; /* Eliminar margen extra si se apila */
    }

    h2 {
        font-size: 2.2rem;
    }

    .footer-about h3,
.footer-section:last-child h3 {
    font-size: 1.2rem; /* Reducido de 1.4rem para coincidir con servicios */
}
    .about-item {
        flex: 1 1 100%; /* Un ítem por fila en móviles */
        max-width: 400px;
    }

    .project-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        flex: 1 1 auto;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-link {
    font-size: 3rem; /* Aumentado de 1.8rem */
    color: var(--light-gray);
    transition: color 0.3s ease, transform 0.3s ease;
}

    /* Ajuste para el logo en móviles */
    .velthia-image-logo { /* Usar la nueva clase */
        height: 45px; /* Reducir aún más el tamaño */
    }
}

@media (max-width: 768px) {
    .about-cards {
        flex-direction: column;
        gap: 20px;
    }
    
    .about-card {
        min-width: auto;
        max-width: none;
    }
    
    .project-card {
        width: 350px;
        height: 180px;
    }
    
    .project-image-placeholder {
        width: 120px;
    }
}
