.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Hace la foto redonda */
    object-fit: cover;    /* Evita que la foto se estire */
    border: 4px solid #0056b3; /* Borde azul de ingeniería */
    display: block;
    margin: 20px auto;   /* Centra la foto */
}

.site-header {
    text-align: center;  /* Centra el nombre y la biografía */
    padding: 30px;
    background-color: #f4f4f4;
}
.skills-container {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; 
}

.tag {
    background-color: #0056b3; 
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}
#nombre {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin-top: 15px;
}
#nombre {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin-top: 15px;
}
.contacto-container {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #ddd;
}

.contacto-container h3 {
    font-family: Arial, sans-serif;
    color: #333;
    margin-bottom: 20px;
}

.btn-contacto {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-family: sans-serif;
    transition: 0.3s;
}

.whatsapp {
    background-color: #25d366;
    color: white;
}

.btn-contacto {
    background-color: #0056b3;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
}

.btn-contacto:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}
.btn-contacto i {
    margin-right: 10px; /* Separa el icono del texto */
    font-size: 1.2rem;   /* Hace el icono un poco más grande */
}

.whatsapp {
    background-color: #25d366 !important; /* Color oficial de WhatsApp */
}
.productos-grid {
    display: flex;
    flex-wrap: wrap; /* Esto hace que si no caben 10 en fila, bajen automáticamente */
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.producto-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    width: 280px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.foto-producto {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Evita que la foto se vea estirada */
    border-radius: 10px;
}

.btn-compra {
    display: block;
    background-color: #25d366; /* Verde WhatsApp */
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    margin-top: 10px;
}
.productos-grid {
    display: flex;
    flex-wrap: wrap; /* Permite que los productos "salten" a la siguiente fila */
    justify-content: center; /* Los centra todos */
    gap: 20px; /* Deja un espacio de 20px entre cada tarjeta */
}
/* --- ESTILOS PARA EL FORMULARIO Y BOTONES (LÍNEA 132+) --- */

form {
    max-width: 500px;    /* Hace que el formulario sea más angosto y estético */
    margin: 40px auto;   /* Lo separa de arriba y lo centra horizontalmente */
    padding: 25px;       /* Espacio interno para que no esté todo pegado */
    background-color: #f0f7f4; 
    border: 2px solid #25d366; /* Borde azul profesional */
    border-radius: 12px; /* Bordes redondeados modernos */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra suave para que resalte */
}

/* Estilo para los campos de entrada */
input, textarea {
    width: 100%;         /* Se ajustan al nuevo ancho del formulario */
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box; /* Evita que los campos se salgan del borde */
}

/* Estilo para el botón de enviar (Azul Profesional) */
button[type="submit"] {
    width: 100%;
    background-color: #005080; /* El azul oscuro que elegimos */
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
}

/* Efecto cuando pasas el mouse por encima */
button[type="submit"]:hover {
    background-color: #003d60; /* Se oscurece un poco al tocarlo */
    transform: scale(1.02); /* Crece un poquito para dar feedback */
}
/* Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Cabecera y Navegación */
header {
    background: #1a1a1a;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ffcc;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00ffcc;
}

.btn-nav {
    background: #00ffcc;
    color: #1a1a1a !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
}

/* Hero Section */
.hero {
   background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(44, 62, 80, 0.8)), url('fondo-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    padding: 6rem 2rem;
}

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

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

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

.btn-primary {
    background: #00ffcc;
    color: #1a1a1a;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #00ffcc;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

/* Secciones Generales */
section {
    padding: 4rem 10%;
}

section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    color: #1a1a1a;
}

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

.card, .service-item, .portfolio-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.card h3, .service-item h3, .portfolio-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.tech-tag {
    display: inline-block;
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 1rem;
    margin-right: 0.5rem;
}

/* Stack Tecnológico */
.tech-stack {
    background: #e9ecef;
    text-align: center;
}

/* --- ESTILOS DE LA INTRO DE BIENVENIDA --- */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.intro-backdrop-tech {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 15, 35, 0.82) 0%, rgba(10, 25, 47, 0.92) 100%);
    z-index: 2;
}

.intro-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
    padding-bottom: 60px;
}

.intro-brand-badge {
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.4);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-family: monospace;
    letter-spacing: 1px;
    margin-bottom: 15px;
    backdrop-filter: blur(4px);
}

.badge-civil { color: #ffb703; font-weight: bold; }
.badge-code { color: #00f5d4; font-weight: bold; }

.intro-title {
    color: #ffffff;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    padding: 0 20px;
}

.btn-saltar-intro {
    background: rgba(0, 245, 212, 0.15);
    border: 1px solid #00f5d4;
    color: #00f5d4;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.btn-saltar-intro:hover {
    background: #00f5d4;
    color: #0a192f;
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.5);
    transform: translateY(-2px);
}

.intro-scroll-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.intro-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}