/* Styles for the main layout */
/* PHLoops */

/* Reset some default styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0f0f0f;
    --color-bg-secondary: #181818;

    --color-text: #EEEDE7;
    --color-text-secondary: #b8b8b8;
    --color-text-dark: #0f0f0f;
    --color-text-dark-hover: #333333;

    --color-primary: #FC4813;
    --color-primary-hover: #FFD500;
    --color-secondary: #F71C06;
    --color-secondary-hover: #FFBE1A;

    --color-border: rgba(252, 72, 19, 0.2);
    --color-border-hover: rgba(252, 72, 19, 0.5);

    --color-shadow: rgba(252, 72, 19, 0.15);
    --color-shadow-hover: rgba(252, 72, 19, 0.25);

    --color-bg-transparent-20: rgba(15, 15, 15, 0.20);
    --color-bg-transparent-40: rgba(15, 15, 15, 0.40);
    --color-bg-transparent-60: rgba(15, 15, 15, 0.60);
    --color-bg-transparent-80: rgba(15, 15, 15, 0.80);

    --gradient-bg-transparent: radial-gradient(ellipse at center, var(--color-bg-transparent-20) 0%, var(--color-bg-transparent-40) 25%, var(--color-bg-transparent-60) 50%, var(--color-bg-transparent-80) 75%, var(--color-bg) 100%);

    --max-width: 1200px;

    --font-heading: 'Instrument Serif', serif;
    --font-body: 'Bricolage Grotesque', sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-color: var(--color-primary) var(--color-bg);
    scrollbar-width: thin;

}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

section {
    padding: 4rem 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.1;
    font-weight: 400;
}

h1 {
    font-size: clamp(2.8rem, 13vw, 4.7rem);
}

h2 {
    font-size: clamp(2.5rem, 11vw, 4rem);
}

h3 {
    font-size: clamp(2rem, 9vw, 3.5rem);
}

h4 {
    font-size: clamp(1.3rem, 1.8vw, 1.7rem);
}

h5 {
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
}

h6 {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
}

p {
    margin-bottom: 1em;
}

a,
button,
input,
textarea,
select {
    transition: all 0.2s ease;
}

textarea {
    resize: none;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Lists */
ul,
ol {
    margin-left: 2em;
    margin-bottom: 1em;
}

li {
    margin-bottom: 0.5em;
}

/* Forms */
input,
textarea,
select {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.5em;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgb(0 102 204 / 20%);
}

/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

button {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.5em 1em;
    border: none;
    border-radius: 4px;
    background-color: var(--color-primary);
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: var(--color-primary-hover);
}

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

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.border {
    border: 1px solid white;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 500;
}



/* Header */
.header {
    display: grid;
    grid-template-columns: 1fr;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1000;

    background-image: var(--gradient-bg-transparent);

    transition: background-color 0.6s ease,
        box-shadow 0.6s ease;
}


/* Aplica solo cuando se hace scroll */
.header.scrolled {
    background-color: var(--color-bg);
    box-shadow: 0 2px 4px var(--color-shadow);
}

.header.scrolled .header-logo {
    height: 90px;
}

.header.scrolled .nav {
    padding-top: 2rem;
}

/* ==================================== */

.header-top {
    grid-row: 1 / 2;
    position: relative;
}

.header-logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.header-logo {
    height: 120px;
    transition: height 0.6s ease;
    width: auto;
}

.nav {
    grid-row: 2 / 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 2rem;
    padding: 4rem 0 1rem 0;
    border-radius: 12px;

    transition: padding 0.6s ease;
}

.nav-list {
    display: flex;
    margin: 0;
    gap: 2rem;
    list-style: none;
}

.nav-list li {
    margin: 0;
}

.nav-list li a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-list li a:hover,
.nav-list li a.selected {
    color: var(--color-primary-hover);
}

.header-cta {
    background-color: var(--color-primary);
    color: var(--color-text);
    border-bottom-left-radius: 30px;
    border-top-right-radius: 30px;
    transition:
        transform 0.3s ease
}

.header-cta:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

/* Hamburguer header */

.hamburger-btn {
    width: 50px;
    height: 50px;

    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;

    border: none;
    background: transparent;
    cursor: pointer;
}



.hamburger-btn span {
    width: 28px;
    height: 3px;

    background-color: white;
    border-radius: 999px;

    transition: all .3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Header */

.hero-section {
    position: relative;
    height: 100vh;
    text-align: center;
    padding: 0;
    max-width: 100%;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .6),
            rgba(0, 0, 0, .45));
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    z-index: -1;

    animation: zoomOut 1.5s ease-out forwards;

}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-white);
    text-align: center;
    z-index: 2;

    width: 60%;
}

.hero-content h1 {
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-weight: bold;
    text-shadow:
        0 0 10px rgba(255, 87, 34, 0.3),
        0 0 20px rgba(255, 87, 34, 0.15);
}

.hero-content .hero-subtitle {
    margin-bottom: 2rem;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-cta-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-cta-primary {
    background-color: var(--color-primary);
    color: var(--color-text);
    padding: 0.75rem 1.5rem;

    box-shadow: 0 0 15px color-mix(in srgb,
            var(--color-primary) 40%,
            transparent);

    transition:
        background-color 0.6s ease,
        color 0.4s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.hero-cta-primary:hover {
    background-color: var(--color-bg-secondary);
    color: var(--color-primary);

    transform: translateY(-4px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .3),
        0 0 20px rgba(255, 87, 34, .45);


    text-decoration: none;
}

.hero-cta-secondary {
    background-color: var(--color-bg-secondary);
    color: var(--color-primary);
    padding: 0.75rem 1.5rem;

    transition: background-color 0.6s ease, color 0.4s ease, transform 0.25s ease;
}

.hero-cta-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text);
    transform: translateY(-4px);
    text-decoration: none;
}

/* Footer */
.footer {
    background-color: var(--color-bg-secondary);
    padding: 2rem 0 1.2rem 0;
}

.footer::before {
    content: "";
    display: block;
    height: 1px;
    border-top: 2px solid var(--color-border);
    margin: 2rem 0;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.footer-logo-column {
    display: flex;
    flex-direction: column;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    height: 120px
}

.footer-logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.footer-logo {
    height: 100%;
    width: auto;
}

.footer-description {
    margin-top: 1rem;
    text-align: start;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-container h3 {
    font-size: 1.2rem;
    margin-bottom: .25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links ul {
    gap: 1rem;
}

.footer-links ul,
.footer-links li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1rem;
}

.footer-links a:hover {
    color: var(--color-primary-hover);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.footer-cta {
    background-color: var(--color-primary);
    color: var(--color-text);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform 0.4s ease;
    width: 100%;
}

.footer-cta:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.footer-cta i {
    margin-right: 0.5rem;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    margin: 0;
}

.footer-social-link {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.footer-social-link:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    display: flex;
    gap: .5rem;
}

.footer-bottom a {
    color: var(--color-primary);
}

.footer-bottom a:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
}

.footer-bottom p {
    margin: 0;
}

/*  Whatsapp btn */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: var(--color-text);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow:
        0 0 10px rgba(0, 0, 0, .3),
        0 0 20px rgba(0, 0, 0, .15);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    z-index: 9999;
}

.whatsapp-btn:hover {
    transform: translateY(-4px);
}

@media (max-width: 1024px) {
    .header.scrolled .hamburger-btn {
        top: 2rem;
        right: 2rem;
    }

    .header-logo-container {
        position: relative;
        left: auto;
        transform: none;
        display: flex;
        justify-content: center;
    }

    .hamburger-btn {
        display: flex;
        position: fixed;
        top: 3rem;
        right: 4rem;
        z-index: 2000;
    }

    .hamburger-btn:hover,
    .hamburger-btn:active {
        background-color: transparent;
    }

    .nav {
        position: fixed;
        inset: 0;

        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;

        background-color: rgba(0, 0, 0, .95);

        opacity: 0;
        visibility: hidden;

        transition: .3s;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-list a {
        font-size: 2rem;
    }

    .hero--image {
        height: 100vh;
        width: auto;
    }

    .hero-content {
        top: 50%;
        transform: translate(-50%, -50%);
        padding-top: 0;
        width: 80%;
    }

    /* footer */

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-logo-column {
        align-items: center;
    }

    .footer-description {
        text-align: center;
    }

    .footer-cta {
        width: 40%;
    }
}

@media (max-width: 768px) {
    .nav {
        margin: 0 1rem;
        padding: 1.5rem;
        padding-top: 3rem;
    }

    .nav-list {
        gap: 1.5rem;
    }

    /* footer */


    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-cta {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .hamburger-btn {
        top: 1.5rem;
        right: 1.5rem;
    }

    .header.scrolled .hamburger-btn {
        top: 1.2rem;
        right: 1.2rem;
    }

    .header-logo {
        height: 90px;
    }

    .header.scrolled .header-logo {
        height: 80px;
    }

    .nav {
        padding: 1rem;
        padding-top: 2rem;
    }

    .nav-list a {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 4vw, 3rem);
    }

    .hero-content .hero-subtitle {
        font-size: clamp(1.2rem, 3vw, 2.2rem);
    }

    .hero-cta-container {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 360px) {
    .header-logo {
        height: 80px;
    }

    .header.scrolled .header-logo {
        height: 70px;
    }

    .nav-list a {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }

    .hero-content h2 {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }
}

/* Animaciones */

.animation-moveUp {
    animation: moveUp;
    animation-duration: 2s;
    animation-fill-mode: forwards;
}

@keyframes moveUp {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animation-scrolled {
    animation: scrolled linear;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
    animation-fill-mode: both;
}

@keyframes scrolled {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        translate: 0 100px;
        scale: .5;
    }

    to {
        opacity: 1;
        translate: 0 0;
        scale: 1;
    }
}

@keyframes zoomOut {
    from {
        opacity: 0;
        transform: scale(1.2);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}