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

:root {
    --wine: #cf2e2e;
    --charcoal: #2c1f14;
    --beige: #f5f0e8;
    --stone: #e8e0d4;
    --earth: #593a24;
    --white: #ffffff;
    --black: #000000;
    --primary: var(--wine);
    --foreground: var(--charcoal);
    --background: var(--beige);
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    --transition-smooth: all 0.3s ease-out;
    --transition-header: all 0.5s ease-in-out;
    --transition-scale: transform 1s ease-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: -0.5px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================================================
   HEADER
   ============================================================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-header);
    border-bottom: 1px solid transparent;
}

.header--transparent {
    background-color: transparent;
    color: var(--white);
}

.header--scrolled {
    background-color: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(8px);
    border-bottom-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: var(--foreground);
    padding: 1rem 0;
}

.header__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo img {
    height: 80px;
    width: auto;
    display: block;
}


.header__logo:hover {
    opacity: 0.8;
}

.header__nav {
    display: flex;
    gap: 2rem;
}

.header__link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    transition: color 0.3s ease;
    cursor: pointer;
}

.header__link:hover {
    color: var(--primary);
}

.header--scrolled .header__link {
    color: rgba(44, 31, 20, 0.7);
}

.header--scrolled .header__link:hover {
    color: var(--primary);
}

.header__menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.375rem;
    padding: 0.5rem;
}

.header__menu-line {
    width: 1.5rem;
    height: 0.125rem;
    background-color: currentColor;
    transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
    .header__nav {
        display: none;
    }
    
    .header__menu-toggle {
        display: flex;
    }
    
    .header__container {
        padding: 1rem 1.5rem;
    }
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__image {
    position: absolute;
    inset: 0;
    background-image: url('attached_assets/generated_images/hero-gredos.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
}

.hero__overlay {
    position: absolute;
    inset: 0;
}

.hero__overlay--dark {
    background-color: rgba(0, 0, 0, 0.4);
    mix-blend-mode: multiply;
}

.hero__overlay--gradient {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: var(--white);
}

.hero__text {
    max-width: 60rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero__subtitle {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.8;
    font-weight: 400;
    font-family: var(--font-sans);
}

.hero__title {
    font-size: clamp(2.5rem, 10vw, 6rem);
    line-height: 0.9;
    letter-spacing: -1px;
}

.hero__title--italic {
    font-style: italic;
    font-weight: 300;
}

.hero__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.8;
    font-family: var(--font-sans);
    margin-top: 1.5rem;
}

.hero__scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero__scroll span {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.6;
}

.hero__scroll-line {
    width: 1px;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.2);
}

/* ============================================================================
   CONTENT SECTION
   ============================================================================ */

.content-section {
    padding: 6rem 0;
    background-color: var(--background);
    overflow: hidden;
}

.content-section__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-section__layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
}

.content-section__layout--reversed {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .content-section__layout,
    .content-section__layout--reversed {
        flex-direction: column;
        gap: 2rem;
    }
}

.content-section__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-section__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
}

.content-section__line {
    display: inline-block;
    width: 2rem;
    height: 1px;
    background-color: var(--primary);
}

.content-section__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    color: var(--foreground);
}

.content-section__description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(44, 31, 20, 0.7);
    font-weight: 300;
}

.content-section__button {
    align-self: flex-start;
    background: none;
    border: none;
    padding: 2rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    font-family: var(--font-sans);
}

.content-section__button:hover {
    color: var(--foreground);
}

.content-section__button-line {
    display: inline-block;
    width: 1rem;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.content-section__button:hover .content-section__button-line {
    width: 2rem;
}

.content-section__image {
    flex: 1;
    width: 100%;
}

.content-section__image-wrapper {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: var(--stone);
}

.content-section__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-scale);
}

.content-section__image-wrapper:hover img {
    transform: scale(1.05);
}

.content-section__frame {
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

/* ============================================================================
   CONTACT SECTION
   ============================================================================ */

.contact {
    padding: 6rem 2rem;
    background-color: var(--stone);
    text-align: center;
}

.contact__container {
    max-width: 50rem;
    margin: 0 auto;
}

.contact__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    font-family: var(--font-sans);
}

.contact__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.2;
    color: var(--foreground);
}

.contact__description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(44, 31, 20, 0.7);
}

.contact__button {
    display: inline-block;
    border: 1px solid rgba(44, 31, 20, 0.2);
    padding: 1rem 2.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-sans);
    margin-top: 2rem;
}

.contact__button:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
    background-color: var(--foreground);
    color: var(--white);
    padding: 5rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer__column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer__title {
    font-size: 1.5rem;
    font-weight: 500;
}

.footer__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    opacity: 0.4;
    font-family: var(--font-sans);
}

.footer__text {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    max-width: 20rem;
    font-weight: 300;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__contact p {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer__contact a {
    display: block;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

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

.footer__social {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer__social a {
    transition: color 0.3s ease;
}

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

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.3;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__links a {
    transition: opacity 0.3s ease;
}

.footer__links a:hover {
    opacity: 0.6;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

::selection {
    background-color: rgba(207, 46, 46, 0.2);
    color: var(--primary);
}
