/* 
   ASOCIACIÓN MORELLI - HIGH-END PREMIUM DESIGN
   Concept: "Human Trust"
   Expert UI/UX Implementation
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-main: #f9fafb;
    --navy: #507270;
    /* Sage Green from logo */
    --navy-light: #7ea098;
    --brand-orange: #F8B133;
    --brand-slate: #3D545E;
    --brand-heart: #A1232B;
    --gold: #d4af37;
    --cyan: #06b6d4;
    --text-main: #1f2937;
    --text-muted: #4b5563;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: 'Playfair Display', serif;
}

/* Custom Utilities for High-End Feel */
.shadow-premium {
    box-shadow: 0 20px 40px -10px rgba(80, 114, 112, 0.15), 0 10px 15px -5px rgba(80, 114, 112, 0.05);
}

.hero-mask {
    -webkit-mask-image: linear-gradient(to left, black 60%, transparent 100%);
    mask-image: linear-gradient(to left, black 60%, transparent 100%);
}

.glass-light {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(80, 114, 112, 0.15);
    /* More visible sage-based border */
}

/* Organic background shapes */
.organic-bg {
    position: absolute;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
}

/* Vibrant Images */
.img-vibrant {
    filter: saturate(1.1) contrast(1.05);
}

/* Button Shimmer Effect */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
}

.btn-shimmer:hover::after {
    left: 100%;
}

/* Animate on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header transition */
#header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(249, 250, 251, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(80, 114, 112, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#header.scrolled {
    background: rgba(249, 250, 251, 0.98);
    backdrop-filter: blur(8px);
    height: 70px !important;
    box-shadow: 0 10px 30px -10px rgba(80, 114, 112, 0.1);
    border-bottom: 1px solid rgba(80, 114, 112, 0.1);
}

/* CTA Gradient */
.bg-cta-gradient {
    background: linear-gradient(135deg, #507270 0%, #3e5a58 100%);
}

/* Timeline */
.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--cyan);
}

.timeline-line {
    width: 2px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
}

/* Logo Hexagon Architectural Piece (Integrated) */
.logo-hexagon-integrated {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    width: 160px;
    /* RESERVES SPACE IN THE FLEX FLOW */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(20px);
    /* Dips into content naturally */
}

@media (max-width: 1024px) {
    .logo-hexagon-integrated {
        width: 100px;
        transform: translateY(10px) scale(0.85);
    }

    .logo-hexagon {
        width: 100px;
        height: 110px;
    }
}

@media (max-width: 768px) {
    .logo-hexagon-integrated {
        width: 80px;
        transform: translateY(5px) scale(0.8);
    }

    .logo-hexagon {
        width: 80px;
        height: 90px;
    }

    .divider {
        height: 50px;
        margin-bottom: 20px;
    }

    section {
        margin-bottom: 40px !important;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}


.logo-hexagon {
    width: 130px;
    height: 145px;
    background: white;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    cursor: pointer;
    filter: drop-shadow(0 15px 30px rgba(80, 114, 112, 0.3));
    box-shadow: inset 0 0 40px rgba(80, 114, 112, 0.05);
}

.logo-hexagon:hover {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 20px 40px rgba(80, 114, 112, 0.4));
}

#header.scrolled .logo-hexagon-integrated {
    transform: translateY(0px) scale(0.7);
}

.logo-hexagon img {
    width: 82%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.logo-hexagon:hover img {
    transform: scale(1.1);
}

/* Divider Architectural Component */
.divider {
    background: var(--navy);
    background-size: contain;
    height: 80px;
    position: relative;
    margin-bottom: 37px;
    z-index: 10;
}

.divider:after {
    background: url(../images/bg_white.png) no-repeat 50% 0;
    height: 30px;
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    bottom: 0;
}