/* styles.css */
/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS para colores y tipografía */
:root {
    --color-primary: #6a5acd; /* Ejemplo: Azul medio */
    --color-secondary: #f0f8ff; /* Ejemplo: Azul muy claro */
    --color-accent: #ff6b6b; /* Ejemplo: Coral */
    --color-text: #333;
    --color-background: #ffffff;
    --font-main: 'Arial', sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 0;
    position: sticky; /* Hace que el header se quede fijo al hacer scroll */
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px; /* Ajusta según el tamaño de tu logo */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-accent);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 150px); /* Ajusta según altura header + footer */
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(106, 90, 205, 0.8), rgba(106, 90, 205, 0.9)), url('imagenes/hero-bg-placeholder.jpg'); /* Coloca la imagen real */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #ff5252; /* Un tono más oscuro del coral */
}

/* Features Preview */
.features-preview {
    padding: 4rem 0;
    background-color: var(--color-secondary);
}

.features-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card img {
    width: 80px;
    height: 80px;
    object-fit: contain; /* Mantiene la proporción de la imagen */
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Business Types */
.business-types {
    padding: 4rem 0;
}

.business-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.business-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.business-card:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.business-card h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.business-card a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: bold;
}

.business-card a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: var(--color-text);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto; /* Empuja el footer hacia abajo */
}

.site-footer a {
    color: var(--color-accent);
}
.site-footer a:hover {
    color: #ff9aa2; /* Color complementario */
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .feature-grid,
    .business-grid {
        grid-template-columns: 1fr; /* Cambia a una columna en móvil */
    }
}