/* Estilos modernos y elegantes (Dark Theme con acentos azules) */
:root {
    --bg-color: #0f172a; /* Azul muy oscuro */
    --text-color: #f8fafc;
    --accent-color: #3b82f6; /* Azul eléctrico */
    --card-bg: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(15, 23, 42, 0.9);
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo span {
    color: var(--accent-color);
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

.btn-contacto {
    background-color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 5px;
}

.hero {
    text-align: center;
    padding: 100px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.portfolio {
    padding: 80px 50px;
}

.portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #334155;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.card p {
    margin-bottom: 20px;
    color: #94a3b8;
}

.card a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.card a:hover {
    text-decoration: underline;
}

/* Botón Flotante de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* Verde oficial de WhatsApp */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1); /* Efecto de crecimiento al pasar el mouse */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    background-color: #1ebe57; /* Verde ligeramente más oscuro al hacer hover */
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* Ajuste para pantallas móviles (para que no estorbe tanto en celulares) */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-btn svg {
        width: 30px;
        height: 30px;
    }
}