/* Importar fuentes de Google Fonts (ejemplo) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* Estilos generales */
:root {
    --color-dark: #121212;
    --color-light-gray: #1a1a1a;
    --color-white: #f5f5f7;
    --color-accent: #007aff;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--color-dark);
    color: var(--color-white);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-weight: 700;
}

section {
    padding: 80px 5%;
}

/* Botón flotante de WhatsApp */
.whatsapp-btn {
    text-decoration: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

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

/* Encabezado y navegación */
header {
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}
.logo{
     display: flex;
     align-items: center;
}
.logo a {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    margin-left: 5px;
}
.logo img{
     max-width: 50px;
     max-height: 50px;
     border-radius: 6em;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

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

/* Sección Hero */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1518770660439-4630097610b3?auto=format&fit=crop&q=80&w=2070&ixlib=rb-4.0.3');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #005bb5;
}

/* Secciones generales */
h2 {
    font-size: 3em;
    text-align: center;
    margin-bottom: 60px;
}

/* Secciones de tarjetas (Servicios y Portafolio) */
.services-section, .portfolio-section {
    background-color: var(--color-light-gray);
    text-align: center;
}

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

.service-card, .portfolio-item {
    background-color: var(--color-dark);
    padding: 20px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover, .portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.service-card img, .portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;
}

/* Sección de Contacto */
.contact-section {
    background-color: var(--color-dark);
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input, textarea {
    padding: 15px;
    border: 1px solid #333;
    background-color: #222;
    color: white;
    border-radius: 10px;
    font-size: 1em;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

button[type="submit"] {
    padding: 15px;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #005bb5;
}

/* Pie de página */
footer {
    background-color: #000;
    text-align: center;
    padding: 30px;
    font-size: 0.9em;
    color: #888;
}

/* Media Queries para diseño responsivo */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(5px);
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #333;
    }
    
    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    h2 {
        font-size: 2em;
    }
}