/* Variables de color y estilo */
:root {
    --primary: #0052cc;
    --dark: #1a1a1a;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --text: #333;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
}

/* Navegación */
header {
    height: 80px;
    display: flex;
    align-items: center;
    background: var(--white);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

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

.nav-links li a {
    text-decoration: none;
    color: var(--dark);
    margin-left: 2rem;
    font-weight: 400;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    padding: 100px 0;
    background: radial-gradient(circle at top right, #fdfdfd, #f0f4f8);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: #666;
}

/* Botones */
.btn-primary, .btn-secondary, .btn-small {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--primary);
}

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

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

.btn-small {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.2rem;
}

/* Servicios */
.services {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    background: var(--light-grey);
    border-radius: 10px;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; } /* Simplificación para móvil */
}

/* Sección FAQ */
.faq {
    padding: 80px 0;
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-grey);
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item summary {
    font-weight: 700;
    list-style: none;
    outline: none;
}

.faq-item p {
    margin-top: 1rem;
    color: #555;
    font-size: 0.95rem;
}

.faq-item[open] {
    background: #eef4ff; /* Un tono azul muy claro */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Botón WhatsApp Flotante */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
}

.whatsapp-btn img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}

.whatsapp-btn span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Ocultar texto en móviles muy pequeños para que solo quede el icono */
@media (max-width: 480px) {
    .whatsapp-btn span { display: none; }
    .whatsapp-btn { padding: 12px; border-radius: 50%; }
    .whatsapp-btn img { margin-right: 0; }
}

.portfolio {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.project-image {
    height: 200px;
    background-color: #e2e8f0;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    background-size: cover;
    background-position: center;
}

/* Colores de fondo temporales o imágenes */
.logistics { background: linear-gradient(135deg, #0052cc 0%, #002d72 100%); }
.store { background: linear-gradient(135deg, #1a1a1a 0%, #444 100%); }
.security { background: linear-gradient(135deg, #00b8d9 0%, #0052cc 100%); }

.badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    color: var(--dark);
}

.project-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    height: 60px; /* Mantiene las tarjetas alineadas */
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack span {
    background: var(--light-grey);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- ESTILOS PARA ICONOS (AGREGAR AL FINAL DE style.css) --- */

/* Contenedor del icono en Servicios */
.service-icon {
    background-color: #eef4ff; /* Azul muy claro de fondo */
    color: var(--primary); /* Azul principal para el icono */
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: 0.3s;
}

/* Efecto hover en el icono */
.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

/* Tamaño de los iconos SVG */
.service-icon i {
    width: 30px;
    height: 30px;
    stroke-width: 1.5px; /* Líneas finas y elegantes */
}

/* Icono inline en el portafolio */
.icon-inline {
    width: 16px;
    height: 16px;
    color: var(--gray);
    margin-left: 5px;
    vertical-align: middle;
}

/* Icono en el botón de WhatsApp */
.whatsapp-btn i {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}