/* style.css */

/* CSS Variables for Tetrade Color Scheme */
:root {
    /* Primary Colors */
    --color-primary: #FF6F61; /* Coral */
    --color-secondary: #6B5B95; /* Indigo */
    --color-accent-1: #88B04B; /* Green */
    --color-accent-2: #F7CAC9; /* Pink */

    /* Background and Text Colors */
    --color-background: #FDF6E3; /* Light Cream */
    --color-text: #333333; /* Dark Gray */
    --color-muted: #777777; /* Medium Gray */

    /* Gradient Background */
    --color-gradient: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent-1), var(--color-accent-2));

    /* Fonts */
    --font-heading: 'Archivo Black', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Transitions */
    --transition-speed: 0.3s;

    /* Shadows */
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: center;
}

p {
    font-family: var(--font-body);
    color: var(--color-text);
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--color-accent-1);
}

/* Buttons */
.btn {
    font-family: var(--font-body);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-accent-1);
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--color-accent-1);
    color: #ffffff;
}

.btn-warning:hover {
    background-color: var(--color-accent-2);
    transform: translateY(-2px);
}

/* Navigation */
header {
    background-color: var(--color-secondary);
    color: #ffffff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: #ffffff;
    font-family: var(--font-body);
    transition: color var(--transition-speed);
}

nav ul li a:hover {
    color: var(--color-accent-1);
}

/* Burger Menu */
.navbar-toggler {
    border: none;
    background: none;
}

.navbar-toggler:focus {
    outline: none;
}

/* Hero Section */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 2rem 1rem;
    animation: fadeIn 1s ease-out;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero .btn {
    font-size: 1rem;
}

/* Features Section */
.features {
    padding: 5rem 1rem;
    background-color: #ffffff;
    animation: fadeInUp 1s ease-out;
}

.features .card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    background-color: #ffffff;
}

.features .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.features .card img {
    width: 100%;
    height: auto;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.features .card-title {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-top: 1rem;
}

.features .card-text {
    color: var(--color-muted);
    font-size: 1rem;
}

/* Mission Section */
.mission {
    padding: 5rem 1rem;
    background-color: var(--color-secondary);
    color: #ffffff;
    animation: fadeInUp 1s ease-out;
    position: relative;
    overflow: hidden;
}

.mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-gradient);
    opacity: 0.2;
    z-index: 0;
}

.mission .container {
    position: relative;
    z-index: 1;
}

.mission p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Insights Section */
.insights {
    padding: 5rem 1rem;
    background-color: #f7f7f7;
    animation: fadeIn 1s ease-out;
}

.insights .card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    background-color: #ffffff;
}

.insights .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.insights .card img {
    width: 100%;
    height: auto;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.insights .card-title {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-top: 1rem;
}

.insights .card-text {
    color: var(--color-muted);
    font-size: 1rem;
}

.insights .btn-primary {
    background-color: var(--color-primary);
    transition: background-color var(--transition-speed);
}

.insights .btn-primary:hover {
    background-color: var(--color-accent-1);
}

/* Careers Section */
.careers {
    padding: 5rem 1rem;
    background-color: #ffffff;
    animation: fadeInUp 1s ease-out;
    text-align: center;
}

.careers p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.careers .btn {
    background-color: var(--color-primary);
    color: #ffffff;
}

.careers .btn:hover {
    background-color: var(--color-accent-1);
}

/* Contact Section */
.contact {
    padding: 5rem 1rem;
    background-color: #f7f7f7;
    animation: fadeIn 1s ease-out;
}

#contact-form {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(5px);
}

#contact-form .form-label {
    font-weight: bold;
}

#contact-form .form-control {
    border-radius: 5px;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

#contact-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 111, 97, 0.25);
}

#contact-form .btn {
    background-color: var(--color-primary);
    color: #ffffff;
}

#contact-form .btn:hover {
    background-color: var(--color-accent-1);
}

/* Footer */
footer {
    background-color: var(--color-secondary);
    color: #ffffff;
    padding: 2rem 1rem;
    animation: fadeInUp 1s ease-out;
}

footer h5 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

footer p, footer a {
    font-family: var(--font-body);
    color: #ffffff;
    font-size: 1rem;
}

footer a:hover {
    color: var(--color-accent-1);
}

footer .social-icons a {
    color: #ffffff;
    margin-right: 1rem;
    transition: color var(--transition-speed);
}

footer .social-icons a:hover {
    color: var(--color-accent-1);
}

footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

footer .text-center p {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* External Resources Section */
.external-resources {
    padding: 5rem 1rem;
    background-color: #ffffff;
    animation: fadeIn 1s ease-out;
}

.external-resources .list-group-item {
    transition: background-color var(--transition-speed), color var(--transition-speed);
    border: none;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.external-resources .list-group-item:hover {
    background-color: var(--color-accent-1);
    color: #ffffff;
}

.external-resources .list-group-item h5 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.external-resources .list-group-item p {
    font-family: var(--font-body);
    font-size: 1rem;
}

/* Utility Classes */
.text-contrast {
    color: #ffffff;
    text-shadow: 1px 1px 2px #000000;
}

.img-responsive {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.fixed-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

/* Parallax Effect */
.hero {
    background-attachment: fixed;
}

/* Glassmorphism */
.mission, 
.contact, 
.features, 
.insights, 
.careers {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.3);
}

/* Hover Effects for 'Leer Más' Links */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all var(--transition-speed);
    mix-blend-mode: overlay;
}

.btn-primary:hover::after {
    left: 0;
}

/* Styled Links for 'Leer Más' */
.external-resources a .btn {
    font-size: 0.9rem;
}

/* Social Media Icons */
footer .social-icons a {
    font-size: 1.5rem;
    display: inline-block;
    transition: transform var(--transition-speed);
}

footer .social-icons a:hover {
    transform: scale(1.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .features .card, 
    .insights .card {
        margin-bottom: 2rem;
    }

    footer .social-icons a {
        margin-right: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

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

/* Image Styles */
.hero {
    background-image: url('image/hero-finanzas.jpg');
    /* Image Description: A retro-styled illustration of financial growth with graphs and vintage elements */
}

.features .card img {
    /* Example Image Path: image/feature1.jpg */
    /* Image Description: Hand-drawn financial planning icon */
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.insights .card img {
    /* Example Image Path: image/insight1.jpg */
    /* Image Description: Hand-drawn investment trends graph */
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.mission {
    background-image: url('image/mission-background.jpg');
    /* Image Description: Retro-themed mission statement with financial growth imagery */
    background-size: cover;
    background-position: center;
}

.contact {
    background-image: url('image/contact-background.jpg');
    /* Image Description: Hand-drawn contact form background with financial motifs */
    background-size: cover;
    background-position: center;
}

footer {
    background-image: url('image/footer-background.jpg');
    /* Image Description: Retro-styled footer background with subtle financial icons */
    background-size: cover;
    background-position: center;
}