/* Main Styles for InversionesInteligentes */

:root {
    /* Color Palette - Bright Corporate Eco-Minimalism */
    --primary: #0056b3;
    --primary-light: #007bff;
    --primary-dark: #004494;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

/* Base Styles */
body {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px; /* Account for fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--gray-900);
}

p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

a {
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.btn {
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--gray-700);
    position: relative;
}

.navbar-nav .nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover:before,
.navbar-nav .nav-link.active:before {
    width: 100%;
}

.navbar-nav .nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    display: flex;
    align-items: center;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Page Header for Internal Pages */
.page-header {
    position: relative;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: white;
    margin-bottom: 3rem;
}

/* Portfolio Section */
.portfolio-card {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-card .card-image {
    overflow: hidden;
    height: 220px;
}

.portfolio-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .card-image img {
    transform: scale(1.1);
}

/* Instructors/Experts Section */
.instructor-card {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.instructor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.instructor-card .card-image {
    height: 300px;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.instructor-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.instructor-card:hover .card-image img {
    transform: scale(1.05);
}

/* Innovation Section */
.innovation-card {
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.innovation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.innovation-card .card-image {
    height: 200px;
    overflow: hidden;
}

.innovation-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.innovation-card:hover .card-image img {
    transform: scale(1.1);
}

/* Team Card for About Page */
.team-card {
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-card .card-image {
    height: 250px;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.team-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .card-image img {
    transform: scale(1.05);
}

/* Contact Form */
.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-300);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

footer h5 {
    font-weight: 700;
    color: white;
}

footer p, footer a {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: white;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 1rem 0;
    z-index: 9999;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cookie-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-content a {
    color: var(--primary-light);
    text-decoration: underline;
}

.cookie-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-btn:hover {
    background-color: var(--primary-dark);
}

/* Resource Cards */
.resource-card {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.resource-card a {
    color: var(--primary);
    transition: all 0.3s ease;
}

.resource-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Accordion Styling */
.accordion-item {
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 500;
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: white;
}

.accordion-button:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
}

/* Privacy and Terms Pages */
.privacy-content h2,
.terms-content h2 {
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.privacy-content h3,
.terms-content h3 {
    color: var(--gray-800);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content ul,
.terms-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.privacy-content li,
.terms-content li {
    margin-bottom: 0.5rem;
}

/* Success Page */
.success-section {
    background-color: var(--gray-100);
}

.success-icon {
    animation: pop 0.5s ease-out;
}

@keyframes pop {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .page-header {
        height: 30vh;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Micro-interactions */
.btn {
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* Form Inputs Micro-interactions */
.form-control:focus, .form-select:focus {
    transform: translateY(-2px);
}

/* Image Container Styling */
.image-container {
    overflow: hidden;
    position: relative;
}

.image-container img {
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

/* Icon Box Styling */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--gray-100);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.icon-box img {
    max-width: 60%;
    max-height: 60%;
}

.card:hover .icon-box {
    background-color: var(--primary-light);
    transform: rotateY(180deg);
}

/* Achievement Items */
.achievement-item {
    padding: 2rem;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.achievement-item h3 {
    font-weight: 700;
    color: var(--primary);
}