:root {
    --color-green: #002D2A;
    --color-gold: #C4871C;
    --color-ivory: #F5F1EA;
    --color-dark: #171715;
    --color-white: #FFFFFF;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-text: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    color: var(--color-dark);
    background-color: var(--color-ivory);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Text Utilities */
.text-gold {
    color: var(--color-gold);
}
.font-light {
    font-weight: 300;
}

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

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-green);
    color: var(--color-white);
    padding: 12px 24px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--color-green);
    transition: background-color 0.3s, color 0.3s;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-green);
}

.btn-outline-gold {
    display: inline-block;
    background-color: transparent;
    color: var(--color-gold);
    padding: 14px 32px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--color-gold);
    transition: background-color 0.3s, color 0.3s;
}

.btn-outline-gold:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: var(--color-dark);
    padding: 14px 32px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(23, 23, 21, 0.2);
    transition: border-color 0.3s;
}

.btn-outline-dark:hover {
    border-color: var(--color-dark);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-ivory);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    cursor: pointer;
}

.logo-img {
    height: 70px;
    width: auto;
}

.footer-logo-img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
}

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

.logo-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-green);
}

.footer-logo .logo-title {
    color: var(--color-white);
}

.logo-subtitle {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--color-gold);
    margin-top: 5px;
}

.footer-logo .logo-subtitle {
    color: var(--color-gold);
}

.nav-ornament {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-ornament-line {
    width: 36px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-gold));
    transform-origin: left center;
    transition: none;
}

.nav-ornament-line:last-child {
    background: linear-gradient(to left, transparent, var(--color-gold));
    transform-origin: left center;
}

.nav-ornament-diamond {
    width: 6px;
    height: 6px;
    background-color: var(--color-gold);
    transform: rotate(45deg);
    opacity: 0.7;
}

/* Hover: draw-from-zero animation — triggers on any navbar hover */
.navbar:hover .nav-ornament-line:first-child {
    animation: sweepLine 0.45s ease forwards;
}

.navbar:hover .nav-ornament-diamond {
    animation: popDiamond 0.3s ease 0.25s both;
}

.navbar:hover .nav-ornament-line:last-child {
    animation: sweepLine 0.45s ease 0.35s both;
}

@keyframes sweepLine {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes popDiamond {
    from {
        transform: rotate(45deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(45deg) scale(1);
        opacity: 0.7;
    }
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-dark);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-gold);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-gold);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-green);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    margin-top: 90px; /* Offset for navbar */
    overflow: hidden;
    background-color: #002D2A;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(0, 45, 42, 0.7) 0%, rgba(0, 45, 42, 0.3) 50%, rgba(0, 45, 42, 0.05) 100%), url('hero-bg.png');
    background-size: cover;
    background-position: left center;
    z-index: 1;
}

.hero-container {
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    color: var(--color-white);
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-content p {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-gold);
    font-size: 24px;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* Commitment Section */
.commitment {
    padding: 100px 0;
    text-align: center;
    background-color: var(--color-ivory);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.section-header .line {
    height: 1px;
    width: 60px;
    background-color: rgba(23, 23, 21, 0.2);
}

.section-title {
    font-size: 16px;
    font-family: var(--font-text);
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    padding: 40px 20px;
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.07);
}

.feature-card.with-borders {
    border-left: 1px solid rgba(23, 23, 21, 0.1);
    border-right: 1px solid rgba(23, 23, 21, 0.1);
}

.feature-card.with-borders:hover {
    border-color: rgba(23, 23, 21, 0.1);
}

.icon-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover .feature-icon-img {
    transform: scale(1.08) translateY(-4px);
}

.feature-card h3 {
    font-size: 18px;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 13px;
    color: rgba(23, 23, 21, 0.7);
    line-height: 1.8;
}

/* Generations Section */
.generations {
    display: flex;
    min-height: 600px;
}

.gen-image {
    flex: 1;
    position: relative;
}

.gen-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('generations-bg.jpg');
    background-size: cover;
    background-position: center;
}

.gen-content {
    flex: 1;
    background-color: var(--color-green);
    color: var(--color-white);
    display: flex;
    align-items: center;
    padding: 80px;
}

.gen-content-inner {
    max-width: 500px;
}

.gen-icon {
    margin-bottom: 30px;
}

.gen-content h2 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 40px;
}

.gen-content p {
    font-size: 15px;
    font-weight: 300;
    opacity: 0.95;
    line-height: 1.8;
}

.text-separator {
    width: 80px;
    height: 2px;
    background-color: var(--color-gold);
    margin: 25px 0;
}

.text-separator-small {
    width: 40px;
    height: 1px;
    background-color: rgba(255,255,255,0.2);
    margin: 20px 0;
}

/* CTA Banner */
.cta-banner {
    padding: 70px 0;
    background-color: var(--color-ivory);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-text-group {
    display: flex;
    align-items: center;
    gap: 35px;
}

.cta-text h3 {
    font-size: 26px;
    line-height: 1.35;
}

/* CTA Animated Icon */
.cta-icon-animated {
    flex-shrink: 0;
    cursor: default;
}

.cta-icon-animated svg polyline,
.cta-icon-animated svg line,
.cta-icon-animated svg path {
    transition: stroke-dashoffset 0.6s ease;
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
}

.cta-icon-animated:hover svg {
    animation: drawLines 0.7s ease forwards;
}

@keyframes drawLines {
    0%   { opacity: 0.4; transform: scale(0.92); }
    50%  { opacity: 1;   transform: scale(1.08); }
    100% { opacity: 1;   transform: scale(1); }
}

/* Footer */
.footer {
    background-color: var(--color-green);
    color: var(--color-white);
    padding: 80px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}

.footer-nav-grid {
    display: flex;
    gap: 80px;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav-col a {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.footer-nav-col a:hover {
    color: var(--color-gold);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-grulu {
    text-align: right;
}

.grulu-label {
    display: block;
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 15px;
}

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

.grulu-title {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--color-gold);
    line-height: 1;
}

.grulu-subtitle {
    font-size: 11px;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.6);
    margin-top: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer-legal {
    display: flex;
    gap: 40px;
}

.footer-legal a:hover {
    color: var(--color-white);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: var(--color-gold);
    color: var(--color-green);
    border-color: var(--color-gold);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 52px;
    }
    
    .features-grid {
        gap: 20px;
    }
    
    .gen-content {
        padding: 50px;
    }
    
    .footer-nav-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links, .navbar .btn-primary {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .logo-img {
        height: 55px;
    }

    .footer-logo-img {
        height: 50px;
        width: 50px;
    }

    .logo-title {
        font-weight: 400;
        font-size: 22px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card.with-borders {
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(23, 23, 21, 0.1);
        border-bottom: 1px solid rgba(23, 23, 21, 0.1);
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .generations {
        flex-direction: column;
    }
    
    .gen-image {
        min-height: 400px;
    }
    
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .cta-text-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
    
    .footer-grulu {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 36px;
    }
}

/* ==========================================
   LEGAL PAGES STYLING (Aviso Legal, Privacidad, Cookies)
   ========================================== */
.legal-body {
    background-color: var(--color-ivory);
    color: var(--color-dark);
}

.legal-page-main {
    padding-top: 110px;
    padding-bottom: 80px;
}

.legal-hero {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(180deg, rgba(28, 59, 44, 0.04) 0%, transparent 100%);
    border-bottom: 1px solid rgba(196, 135, 28, 0.15);
    margin-bottom: 50px;
}

.legal-hero .section-tag {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.legal-title {
    font-family: 'Cinzel', serif;
    font-size: 42px;
    color: var(--color-green);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.legal-subtitle {
    font-size: 15px;
    color: #555550;
    max-width: 680px;
    margin: 0 auto 25px;
    line-height: 1.6;
    font-weight: 400;
}

.gold-line.centered {
    margin: 0 auto;
    width: 60px;
    height: 2px;
    background: var(--color-gold);
}

.legal-container {
    max-width: 900px;
}

.legal-article {
    background: var(--color-white);
    padding: 60px 70px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(196, 135, 28, 0.12);
}

.legal-block {
    margin-bottom: 45px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-block:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.legal-block h2 {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    color: var(--color-green);
    margin-bottom: 20px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-block p {
    font-size: 15px;
    line-height: 1.85;
    color: #444440;
    margin-bottom: 18px;
    text-align: justify;
}

.legal-block p:last-child {
    margin-bottom: 0;
}

.legal-block strong {
    color: var(--color-green);
    font-weight: 600;
}

.legal-block p a,
.legal-block ul a {
    color: var(--color-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.legal-block p a:hover,
.legal-block ul a:hover {
    color: var(--color-green);
}

.legal-list {
    list-style: none;
    margin: 20px 0 25px 0;
    padding-left: 0;
}

.legal-list li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    line-height: 1.8;
    color: #444440;
    margin-bottom: 14px;
}

.legal-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-gold);
    font-size: 11px;
}

.legal-back-nav {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px dashed rgba(196, 135, 28, 0.3);
    display: flex;
    justify-content: flex-start;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background-color: var(--color-green);
    color: var(--color-white) !important;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(28, 59, 44, 0.15);
}

.btn-back:hover {
    background-color: var(--color-gold);
    color: var(--color-white) !important;
    transform: translateX(-4px);
    box-shadow: 0 6px 20px rgba(196, 135, 28, 0.25);
    text-decoration: none !important;
    border-bottom: none !important;
}

.footer-legal a.active {
    color: var(--color-gold);
    font-weight: 600;
}

@media (max-width: 768px) {
    .legal-article {
        padding: 35px 25px;
    }
    
    .legal-title {
        font-size: 32px;
    }
    
    .legal-block h2 {
        font-size: 19px;
    }
    
    .legal-block p, .legal-list li {
        font-size: 14px;
        text-align: left;
    }
}

