/**
 * FISav - Base Styles
 * Estilos fundamentales adaptados del tema Consultive
 */

/* Reset y normalización */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    line-height: var(--line-height-base);
    font-weight: 300;
    background-color: var(--bg-white);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }
h5 { font-size: var(--h5-size); }
h6 { font-size: var(--h6-size); }

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

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-base);
}

a:hover,
a:focus {
    color: var(--primary-dark);
    outline: none;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Buttons */
button {
    border: none;
   /* background: transparent; */
    cursor: pointer;
    font-family: inherit;
}

button:focus {
    outline: none;
}

.btn,
.thm-btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    padding: 11px 35px 9px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--primary);
    background-color: var(--primary);
    color: var(--text-white);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    line-height: 1;
}

.btn:hover,
.thm-btn:hover {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--text-primary);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary);
}

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

/* Container */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 576px) {
    .container {
        max-width: var(--container-sm);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: var(--container-md);
    }
}

@media (min-width: 992px) {
    .container {
        max-width: var(--container-lg);
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: var(--container-xl);
    }
}

.container-fluid {
    width: 100%;
    padding: 0 15px;
}

/* Section */
.section {
    padding: var(--section-padding) 0;
}

.section-sm {
    padding: var(--section-padding-sm) 0;
}

/* Section Title - Adaptado de Consultive */
.sec-title {
    margin-top: -5px;
 
    position: relative;
    text-align: center;
}

.sec-title h1,
.sec-title h2 {
    font-size: var(--h2-size);
    margin: 0 0 16px;
}

.sec-title .border-center {
    width: 200px;
    height: 1px;
    background: var(--border-light);
    display: block;
    margin: 0 auto;
    position: relative;
}

.sec-title .border-center::before {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 1px;
    background: var(--primary);
    content: "";
}

.sec-title p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    font-weight: 300;
    margin: 25px auto 0;
    line-height: var(--line-height-base);
    max-width: 800px;
}

/* Grid System simple */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

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

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--spacing-xs); }
.pt-2 { padding-top: var(--spacing-sm); }
.pt-3 { padding-top: var(--spacing-md); }
.pt-4 { padding-top: var(--spacing-lg); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--spacing-xs); }
.pb-2 { padding-bottom: var(--spacing-sm); }
.pb-3 { padding-bottom: var(--spacing-md); }
.pb-4 { padding-bottom: var(--spacing-lg); }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

/* Float */
.float-left { float: left; }
.float-right { float: right; }
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Preloader (del tema Consultive) */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader .boxes {
    display: flex;
    gap: 8px;
}

.preloader .box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preloader .box div {
    width: 15px;
    height: 15px;
    background-color: var(--primary);
    animation: preloader-animation 1.5s infinite;
}

.preloader .box:nth-child(2) div {
    animation-delay: 0.2s;
}

.preloader .box:nth-child(3) div {
    animation-delay: 0.4s;
}

.preloader .box:nth-child(4) div {
    animation-delay: 0.6s;
}

@keyframes preloader-animation {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}
