/**
 * Zufuk'x Base Styles
 * Reset, estilos base y utilidades
 */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--zfx-font-family);
    font-size: var(--zfx-font-size-base);
    font-weight: var(--zfx-font-weight-normal);
    line-height: 1.6;
    color: var(--zfx-text-primary);
    background-color: var(--zfx-bg-main);
}

/* === TIPOGRAFÍA === */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--zfx-font-weight-semibold);
    line-height: 1.3;
    color: var(--zfx-text-primary);
    margin-bottom: var(--zfx-spacing-md);
}

h1 { font-size: var(--zfx-font-size-3xl); }
h2 { font-size: var(--zfx-font-size-2xl); }
h3 { font-size: var(--zfx-font-size-xl); }
h4 { font-size: var(--zfx-font-size-lg); }
h5 { font-size: var(--zfx-font-size-base); }
h6 { font-size: var(--zfx-font-size-sm); }

p {
    margin-bottom: var(--zfx-spacing-md);
}

a {
    color: var(--zfx-turquoise);
    text-decoration: none;
    transition: var(--zfx-transition-fast);
}

a:hover {
    color: var(--zfx-turquoise-dark);
}

/* === LISTAS === */
ul, ol {
    list-style: none;
}

/* === IMÁGENES === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === UTILIDADES === */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--zfx-text-muted); }
.text-secondary { color: var(--zfx-text-secondary); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--zfx-spacing-sm); }
.mt-2 { margin-top: var(--zfx-spacing-md); }
.mt-3 { margin-top: var(--zfx-spacing-lg); }
.mt-4 { margin-top: var(--zfx-spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--zfx-spacing-sm); }
.mb-2 { margin-bottom: var(--zfx-spacing-md); }
.mb-3 { margin-bottom: var(--zfx-spacing-lg); }
.mb-4 { margin-bottom: var(--zfx-spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--zfx-spacing-sm); }
.p-2 { padding: var(--zfx-spacing-md); }
.p-3 { padding: var(--zfx-spacing-lg); }
.p-4 { padding: var(--zfx-spacing-xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }

.gap-1 { gap: var(--zfx-spacing-sm); }
.gap-2 { gap: var(--zfx-spacing-md); }
.gap-3 { gap: var(--zfx-spacing-lg); }

/* === CONTENEDOR === */
.zfx-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--zfx-spacing-lg);
}

/* === GRID === */
.zfx-grid {
    display: grid;
    gap: var(--zfx-spacing-lg);
}

.zfx-grid-2 { grid-template-columns: repeat(2, 1fr); }
.zfx-grid-3 { grid-template-columns: repeat(3, 1fr); }
.zfx-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Desktop grande */
@media (min-width: 1440px) {
    .zfx-grid {
        gap: var(--zfx-spacing-xl);
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .zfx-grid-3,
    .zfx-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .zfx-grid-2,
    .zfx-grid-3,
    .zfx-grid-4 {
        grid-template-columns: 1fr;
    }
}
