/*
 * --------------------------------
 * ESTILOS BASE Y VARIABLES
 * --------------------------------
 */
:root {
    --primary-color: #007bff; /* Azul vibrante, ideal para tecnología */
    --secondary-color: #6c757d; /* Gris neutro */
    --background-light: #f8f9fa; /* Fondo claro */
    --text-dark: #343a40; /* Texto oscuro */
    --font-stack: 'Arial', sans-serif;
    --border-radius: 8px;
}

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

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: white; /* Blanco puro para contraste */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Títulos */
h1, h2, h3 {
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2em;
    font-size: 2em;
}

/*
 * --------------------------------
 * ESTILOS DE COMPONENTES
 * --------------------------------
 */

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    margin-top: 1em;
}

.btn-primary:hover {
    background-color: #0056b3; /* Tono más oscuro al pasar el ratón */
    transform: translateY(-2px);
}

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

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

/*
 * --------------------------------
 * HERO / CABECERA PRINCIPAL
 * --------------------------------
 */
.hero {
    background-color: var(--background-light); /* Un fondo suave para la sección de bienvenida */
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 5px solid var(--primary-color); /* Toque de color */
}

.hero h1 {
    font-size: 3em;
    color: var(--primary-color);
}

.hero h2 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 1em;
}

.hero p {
    font-size: 1.1em;
    max-width: 700px;
    margin: 15px auto 30px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
}

/*
 * --------------------------------
 * SECCIONES GENERALES
 * --------------------------------
 */
section {
    padding: 60px 0;
}

.about, .contact {
    background-color: white;
}

.services {
    background-color: var(--background-light);
}

.about ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.about li {
    background-color: white;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}


/*
 * --------------------------------
 * GRID DE SERVICIOS
 * --------------------------------
 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsivo con minmax */
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px); /* Efecto 3D al pasar el mouse */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-bottom: 4px solid var(--primary-color);
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/*
 * --------------------------------
 * CONTACTO Y PIE DE PÁGINA
 * --------------------------------
 */
.contact {
    text-align: center;
}

.contact-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    margin: 0 10px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.1em;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}


footer {
    background-color: var(--text-dark);
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

/*
 * --------------------------------
 * RESPONSIVIDAD (Media Queries)
 * --------------------------------
 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1.7em;
    }

    .service-grid {
        grid-template-columns: 1fr; /* Una sola columna en dispositivos pequeños */
    }

    .btn {
        width: 100%;
        margin-top: 15px;
    }
}
