/* --- assets/css/base.css --- */
@import url("fontawesome-all.min.css");
@import url("https://fonts.googleapis.com/css?family=Roboto:400,700");

/* 1. RESET & BASIC SETUP */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
    -webkit-text-size-adjust: none;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

html {
    box-sizing: border-box;
    height: 100%;
    width: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/* 2. BODY LAYOUT & TYPOGRAPHY */
body {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Para permitir scroll si es necesario */
    background-color: #000;
    padding: 6em 4em 4em 4em;
    color: rgba(255, 255, 255, 0.75);
    font-family: "Roboto", sans-serif;
    font-size: 16pt;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.65em;
    overflow-x: hidden;
}

/* Responsive Padding */
@media screen and (max-width: 1680px) {
    body {
        padding: 6em 3.5em 3.5em 3.5em;
        font-size: 12pt;
    }
}

@media screen and (max-width: 736px) {
    body {
        padding: 5em 2em 2em 2em;
        font-size: 12pt;
    }
}

@media screen and (max-width: 360px) {
    body {
        padding: 5em 1.25em 1.25em 1.25em;
    }
}

/* Preload animation handling */
body.is-preload *,
body.is-preload *:before,
body.is-preload *:after {
    animation: none !important;
    transition: none !important;
}

/* 3. HEADINGS & LINKS */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #fff;
    font-weight: 700;
    line-height: 1em;
    margin: 0 0 1em 0;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
    color: inherit;
    text-decoration: none;
}

h1 {
    font-size: 2.5em;
    line-height: 1.25em;
}

h2 {
    font-size: 1.75em;
    line-height: 1.5em;
}

p {
    margin: 0 0 2em 0;
}

a {
    transition: border-bottom-color 0.2s ease, color 0.2s ease;
    border-bottom: dotted 1px rgba(255, 255, 255, 0.25);
    color: #1cb495;
    text-decoration: none;
}

a:hover {
    border-bottom-color: transparent;
    color: #1cb495 !important;
}

strong,
b {
    color: #fff;
    font-weight: 700;
}

/* 4. BACKGROUND ANIMATION (Ken Burns / Generic) */
#bg {
    transition: opacity 2s ease-in-out;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.375;
}

#bg div {
    background-size: cover;
    /* Cambiado de auto 100% a cover para modernizar */
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out;
}

#bg div.visible {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    animation: bg 45s linear infinite;
    /* Animation defined below */
}

#bg div.visible.top {
    z-index: 2;
}

body.is-preload #bg {
    opacity: 0;
}

@keyframes bg {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }

    /* Efecto zoom suave */
}

/* 5. Z-INDEX LAYERING */
body>* {
    position: relative;
    z-index: 2;
}