/*
 * CSS File for 'Diseño-Colombia' Website
 * Design System: Neomorphism & Adaptive Typography
 * Color Scheme: Tetradic
 * Animation: Parallax & Scroll Animations
*/

/* ---------------------------------- */
/*      1. CSS Variables & Setup      */
/* ---------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    /* Color Palette */
    --color-bg: #E0E5EC;
    --color-primary: #5F9EA0; /* Cadet Blue */
    --color-secondary: #FF7F50; /* Coral */
    --color-accent: #6B8E23; /* Olive Drab */
    --color-text: #374151;
    --color-text-light: #5a6b82;
    --color-white: #FFFFFF;
    --color-dark: #222222;

    /* Neomorphism Shadows */
    --shadow-distance: 6px;
    --shadow-blur: 12px;
    --shadow-light: rgba(255, 255, 255, 0.9);
    --shadow-dark: rgba(163, 177, 198, 0.6);
    
    /* Neomorphism Styles */
    --neumorphic-outset: 
        calc(var(--shadow-distance) * -1) calc(var(--shadow-distance) * -1) var(--shadow-blur) var(--shadow-light),
        var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) var(--shadow-dark);
    
    --neumorphic-inset: 
        inset calc(var(--shadow-distance) * -1) calc(var(--shadow-distance) * -1) var(--shadow-blur) var(--shadow-light),
        inset var(--shadow-distance) var(--shadow-distance) var(--shadow-blur) var(--shadow-dark);

    /* Transitions */
    --transition-fast: all 0.2s ease-in-out;
    --transition-medium: all 0.3s ease-in-out;
}

/* ---------------------------------- */
/*         2. Global Styles           */
/* ---------------------------------- */

body {
    background-color: var(--color-bg);
    font-family: 'DM Sans', sans-serif;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--color-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Adaptive Typography */
h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw + 1rem, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
}

a {
    transition: var(--transition-fast);
}

.container {
    max-width: 1200px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    color: var(--color-primary);
}


/* ---------------------------------- */
/*         3. Header & Navigation     */
/* ---------------------------------- */

#header {
    background-color: transparent;
    transition: var(--transition-medium);
}

#header.scrolled {
    background-color: rgba(224, 229, 236, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    color: var(--color-text);
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-medium);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50px;
    box-shadow: var(--neumorphic-outset);
    transition: var(--transition-fast);
}

.nav-link-button:hover {
    box-shadow: var(--neumorphic-inset);
    background-color: #558e90; /* Slightly darker primary */
}

/* Mobile Navigation */
.mobile-nav-link {
    font-size: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--color-text);
}

.mobile-nav-link-button {
    font-size: 1.5rem;
    padding: 0.75rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50px;
}


/* ---------------------------------- */
/*           4. Hero Section          */
/* ---------------------------------- */
#hero {
    color: var(--color-white);
}

#hero .parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax Effect */
    z-index: -1;
}

#hero h1, #hero p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* ---------------------------------- */
/*    5. Buttons & Interactive Elements  */
/* ---------------------------------- */

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    background-color: var(--color-secondary);
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--neumorphic-outset);
    transition: var(--transition-medium);
}

.cta-button:hover, .cta-button:focus {
    color: var(--color-white);
    box-shadow: var(--neumorphic-inset);
    transform: translateY(1px);
}

/* ---------------------------------- */
/*       6. Neomorphic Components     */
/* ---------------------------------- */

/* Generic Card Style */
.card {
    background: var(--color-bg);
    border-radius: 20px;
    box-shadow: var(--neumorphic-outset);
    transition: var(--transition-medium);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards in a grid have same height */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 
        -10px -10px 20px var(--shadow-light),
        10px 10px 20px var(--shadow-dark);
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to fill the card */
    text-align: left;
}
.card-content h3 {
    color: var(--color-primary);
}

/* Image container within a card */
.card-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Neomorphic Outset Utility */
.neumorphic-outset {
    border-radius: 12px;
    box-shadow: var(--neumorphic-outset);
    background-color: var(--color-bg);
}

/* Gallery image specific style */
.neumorphic-gallery {
    box-shadow: var(--neumorphic-outset);
    transition: var(--transition-medium);
}
.neumorphic-gallery:hover {
     transform: scale(1.03);
     box-shadow: 
        -10px -10px 20px var(--shadow-light),
        10px 10px 20px var(--shadow-dark);
}


/* ---------------------------------- */
/*       7. Section Specific Styles   */
/* ---------------------------------- */

/* --- Process Section --- */
.process-step {
    text-align: center;
    position: relative;
    padding-top: 4rem; /* space for the number */
}

.step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg);
    box-shadow: var(--neumorphic-inset);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    font-family: 'Space Grotesk', sans-serif;
}

.step-title {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.step-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
}


/* --- External Resources Section --- */
.link-button {
    display: inline-block;
    margin-top: auto; /* Pushes button to the bottom */
    padding: 0.6rem 1.2rem;
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: var(--transition-medium);
}
.link-button:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}


/* --- FAQ Section --- */
.faq-item {
    background: var(--color-bg);
    margin-bottom: 1rem;
    border-radius: 15px;
    box-shadow: var(--neumorphic-outset);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    background: transparent;
    border: none;
}

.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* --- Contact Form --- */
.contact-form {
    padding: 2.5rem;
    border-radius: 20px;
    background: var(--color-bg);
    box-shadow: var(--neumorphic-outset);
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 12px;
    background: var(--color-bg);
    box-shadow: var(--neumorphic-inset);
    color: var(--color-text);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input::placeholder {
    color: var(--color-text-light);
}

.form-input:focus {
    outline: none;
    box-shadow: var(--neumorphic-inset), 0 0 0 2px var(--color-primary);
}


/* ---------------------------------- */
/*           8. Footer                */
/* ---------------------------------- */
footer {
    border-top: 1px solid rgba(163, 177, 198, 0.4);
}

.footer-link {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

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


/* ---------------------------------- */
/*     9. Standalone & Utility Pages  */
/* ---------------------------------- */

/* --- Success Page --- */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
}

.success-card {
    max-width: 600px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--color-bg);
    box-shadow: var(--neumorphic-inset);
}
.success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
}

/* --- Privacy & Terms Pages --- */
.legal-page-container {
    padding: 120px 1rem 4rem 1rem; /* 120px top padding for fixed header */
}

.legal-page-container h1 {
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.legal-page-container h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.legal-page-container p, 
.legal-page-container li {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.legal-page-container ul {
    list-style-type: disc;
    padding-left: 2rem;
}


/* ---------------------------------- */
/*      10. Responsive Adjustments    */
/* ---------------------------------- */

@media (max-width: 768px) {
    .section-title {
        margin-bottom: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }

    .process-step {
        padding-top: 3.5rem;
        margin-bottom: 2.5rem;
    }
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}