/* =========================================
   GLOBAL STYLES
========================================= */


/* RESET BÁSICO */

* {
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}


/* HTML */

html {
    scroll-behavior: smooth;
}


/* BODY */

body {
    font-family: 'Poppins', sans-serif;

    font-family: var(--font-primary);

    background: #ffffff;

    color: var(--navy);

    overflow-x: hidden;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* IMÁGENES */

img {
    max-width: 100%;

    display: block;
}


/* VIDEOS */

video {
    max-width: 100%;

    display: block;
}


/* LINKS */

a {
    text-decoration: none;

    color: inherit;
}


/* LISTAS */

ul,
ol {
    list-style: none;
}


/* BOTONES */

button {
    border: none;

    background: none;

    font-family: inherit;

    cursor: pointer;
}


/* INPUTS */

input,
textarea,
select,
button {
    font: inherit;
}


/* TEXTAREA */

textarea {
    resize: none;
}


/* CONTENEDOR GLOBAL */

.container {
    width: 90%;
    max-width: 1400px;

    margin: 0 auto;
}


/* ESPACIADO GENERAL DE SECCIONES */

.section {
    position: relative;

    padding: 120px 0;
}


/* ENCABEZADOS GENERALES */

.section-header {
    text-align: center;

    margin-bottom: 4rem;
}


/* SUBTÍTULOS */

.section-subtitle {
    display: inline-block;

    color: var(--gold);

    font-size: 1.3rem;

    text-transform: uppercase;

    letter-spacing: 4px;

    font-weight: 600;

    margin-bottom: 1rem;
}


/* TÍTULOS */

.section-title {
    font-size: clamp(2rem, 4vw, 3.4rem);

    font-weight: 700;

    line-height: 1.15;

    letter-spacing: -1px;

    color: var(--navy);

    margin-bottom: 1.2rem;
}


/* PÁRRAFOS */

p {
    color: var(--text-light);
}


/* BOTONES BASE */

.btn {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    padding: 1rem 2.2rem;

    border-radius: 50px;

    font-weight: 600;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease,
        color 0.35s ease;
}


/* BOTÓN PRIMARIO */

.btn-primary {
    background:
        linear-gradient(
            135deg,
            var(--gold),
            var(--gold-light)
        );

    color: var(--navy);

    box-shadow:
        0 10px 28px rgba(212,175,55,0.3);
}


.btn-primary:hover {
    transform: translateY(-4px);

    box-shadow:
        0 16px 35px rgba(212,175,55,0.45);
}


/* BOTÓN SECUNDARIO */

.btn-secondary {
    border:
        1px solid rgba(255,255,255,0.25);

    color: white;

    background:
        rgba(255,255,255,0.04);

    backdrop-filter: blur(5px);
}


.btn-secondary:hover {
    background:
        rgba(255,255,255,0.1);

    transform: translateY(-4px);
}


/* SCROLLBAR */

::-webkit-scrollbar {
    width: 10px;
}


::-webkit-scrollbar-track {
    background: #f3f3f3;
}


::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            to bottom,
            var(--gold),
            var(--gold-light)
        );

    border-radius: 20px;
}


::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}


/* SELECCIÓN DE TEXTO */

::selection {
    background: rgba(212,175,55,0.3);

    color: var(--navy);
}


/* UTILIDADES */

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}


/* ANIMACIONES */

.fade-up {
    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.fade-up.show {
    opacity: 1;

    transform: translateY(0);
}


/* SOMBRAS GENERALES */

.shadow-soft {
    box-shadow:
        0 10px 30px rgba(0,0,0,0.08);
}


/* BORDES PREMIUM */

.radius-xl {
    border-radius: 32px;
}


/* FONDO CLARO */

.bg-light {
    background: #faf7f1;
}


/* FONDO OSCURO */

.bg-dark {
    background: var(--navy);

    color: white;
}

/* =========================================
   SCROLL TOP BUTTON
========================================= */

.scroll-top-btn {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 52px;
    height: 52px;

    border: none;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #d4af37,
            #f2d67d
        );

    color: var(--navy);

    font-size: 1.2rem;

    font-weight: 700;

    cursor: pointer;

    z-index: 999;

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);

    box-shadow:
        0 10px 28px rgba(212,175,55,0.3);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        visibility 0.35s ease;
}


/* SHOW */

.scroll-top-btn.show {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


/* HOVER */

.scroll-top-btn:hover {
    transform: translateY(-5px);

    box-shadow:
        0 16px 35px rgba(212,175,55,0.45);
}




/* =========================================
   RIPPLE EFFECT
========================================= */

.btn {
    position: relative;

    overflow: hidden;
}


.ripple {
    position: absolute;

    border-radius: 50%;

    transform: scale(0);

    background:
        rgba(255,255,255,0.4);

    animation:
        ripple-animation 0.7s linear;
}


@keyframes ripple-animation {

    to {
        transform: scale(4);

        opacity: 0;
    }

}

/* =========================================
   HEADINGS
========================================= */

.hero-title,
.section-title,
.service-card h3,
.portfolio-info h3,
.step-card h3,
.testimonial-card h4,
.contact .section-title {
    font-family: var(--font-heading);
}

