/* ======================================================
   Stripe-Inspired Styles for 5Ingenieros
   ====================================================== */

/* --- Variables --- */
:root {
    /* Colors (Adjust primary color to match 5Ingenieros if desired) */
    --stripe-primary: #635bff; /* Stripe's Purple/Blue */
    --stripe-primary-rgb: 99, 91, 255;
    --stripe-primary-darker: #4a42e4;
    --stripe-secondary: #f6f9fc; /* Light background */
    --stripe-text: #333f5f;    /* Dark text */
    --stripe-text-muted: #6a7383; /* Lighter text */
    --stripe-border: #e6ebf1;   /* Subtle borders */
    --stripe-white: #ffffff;
    --stripe-black: #0a0a14;
    --stripe-success: #34c759;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

    /* Spacing & Radius */
    --section-padding: 6rem 0; /* 96px */
    --card-padding: 1.5rem; /* 24px */
    --border-radius: 8px;
    --border-radius-lg: 12px;

    /* Transitions */
    --transition-base: all 0.2s ease-in-out;
}

/* --- Base & Reset --- */
body.stripe-inspired-page {
    font-family: var(--font-primary);
    color: var(--stripe-text);
    background-color: var(--stripe-white);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600; /* Slightly lighter than default bold */
    color: var(--stripe-text);
    line-height: 1.3;
}

a {
    color: var(--stripe-primary);
    text-decoration: none;
    transition: var(--transition-base);
}
a:hover {
    color: var(--stripe-primary-darker);
    text-decoration: none; /* Keep clean */
}

p {
    color: var(--stripe-text-muted);
    margin-bottom: 1rem;
}
p.lead {
     color: var(--stripe-text); /* Lead paragraphs slightly darker */
     font-size: 1.15rem; /* Slightly larger */
     font-weight: 400;
}

/* --- Utility Classes --- */
.section-alt-bg {
    background-color: var(--stripe-secondary);
}
.text-primary-stripe {
    color: var(--stripe-primary) !important;
}

/* --- Header --- */
.site-header {
    background-color: var(--stripe-white);
    border-bottom: 1px solid var(--stripe-border);
    padding: 0.8rem 0;
    transition: var(--transition-base);
}
.site-header.scrolled { /* Optional: Add via JS on scroll */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.site-logo span {
    font-weight: 600;
    color: var(--stripe-text);
    font-size: 1.2rem;
}

.navbar-nav .nav-link {
    color: var(--stripe-text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition-base);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--stripe-primary);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* --- Buttons --- */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem; /* 12px 24px */
    font-size: 0.95rem;
    transition: var(--transition-base);
    border: none;
    letter-spacing: 0.2px;
}
.btn-lg {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
}

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

.btn-outline-primary-stripe {
    color: var(--stripe-primary);
    border: 1px solid var(--stripe-primary);
    background-color: transparent;
}
.btn-outline-primary-stripe:hover {
    background-color: var(--stripe-primary);
    color: var(--stripe-white);
    border-color: var(--stripe-primary);
    transform: translateY(-2px);
}


/* --- Sections --- */
section {
    padding: var(--section-padding);
}
.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2.2rem; /* Adjust as needed */
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
     .section-title {
        font-size: 1.8rem;
    }
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--stripe-white);
    padding-top: calc(var(--section-padding) / 1.5); /* Less padding top */
    padding-bottom: calc(var(--section-padding) / 1.5);
}
.hero-title {
    color: var(--stripe-black); /* Distinct hero title color */
}
.hero-description {
    color: var(--stripe-text-muted);
}
.hero-graphic img {
    max-width: 100%;
    height: auto;
    /* Add subtle animation or effect if desired */
}

/* --- About Section --- */
.about-section .badge {
    font-weight: 500;
    border-color: var(--stripe-border) !important;
}

/* --- Services / Features Section (Cards) --- */
.stripe-card {
    background-color: var(--stripe-white);
    border-radius: var(--border-radius-lg);
    padding: var(--card-padding);
    border: 1px solid var(--stripe-border);
    transition: var(--transition-base);
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}
.stripe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
    border-color: rgba(var(--stripe-primary-rgb), 0.3);
}

.card-icon {
    /* Styles for icon wrapper if needed, e.g., background circle */
    display: inline-block;
}
.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--stripe-text);
}
.card-text {
    font-size: 0.9rem;
    color: var(--stripe-text-muted);
    line-height: 1.5;
}

/* --- Portfolio Section --- */
.portfolio-item-stripe {
     /* Using Bootstrap card as base */
     border-radius: var(--border-radius-lg);
}
.portfolio-image-col img {
    max-width: 100%;
}
.portfolio-item-stripe .app-title {
    color: var(--stripe-text);
}
.portfolio-item-stripe .app-text {
    font-size: 0.95rem;
}
.portfolio-item-stripe .feature-list {
    padding-left: 0;
    font-size: 0.85rem;
}
.portfolio-item-stripe .feature-item i {
    color: var(--stripe-success); /* Use success color for checks */
    width: 16px; /* Align icons */
    text-align: center;
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--stripe-white);
}

.contact-form-stripe {
    background-color: var(--stripe-white); /* Or secondary bg */
    /* border: 1px solid var(--stripe-border); */ /* Already added in HTML */
}
.contact-form-stripe .form-label {
    color: var(--stripe-text-muted);
    margin-bottom: 0.3rem;
}
.contact-form-stripe .form-control {
    border: 1px solid var(--stripe-border);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition-base);
}
.contact-form-stripe .form-control:focus {
    border-color: var(--stripe-primary);
    box-shadow: 0 0 0 3px rgba(var(--stripe-primary-rgb), 0.1);
}
.map-container iframe {
    filter: grayscale(80%); /* Optional subtle map styling */
    transition: var(--transition-base);
}
.map-container:hover iframe {
    filter: grayscale(0%);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--stripe-secondary);
    border-top: 1px solid var(--stripe-border);
    font-size: 0.9rem;
}
.footer-logo span {
    font-weight: 600;
    color: var(--stripe-text);
    font-size: 1.1rem;
}
.footer-text {
    color: var(--stripe-text-muted);
}
.footer-title {
    color: var(--stripe-text);
    letter-spacing: 0.5px;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: var(--stripe-text-muted);
    font-weight: 400;
}
.footer-links a:hover {
    color: var(--stripe-primary);
}
.footer-divider {
    border-color: var(--stripe-border);
    opacity: 0.7;
}
.footer-copyright {
    letter-spacing: 0.2px;
}
.footer-social-links a {
    color: var(--stripe-text-muted);
    font-size: 1.1rem;
    margin-right: 1rem;
    display: inline-block;
}
.footer-social-links a:last-child {
    margin-right: 0;
}
.footer-social-links a:hover {
    color: var(--stripe-primary);
    transform: scale(1.1);
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) { /* Below LG */
    .navbar-nav {
        margin-top: 1rem;
        border-top: 1px solid var(--stripe-border);
        padding-top: 1rem;
    }
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
     .navbar-nav .nav-item:last-child {
        margin-bottom: 0;
    }
    .navbar-nav .btn-primary-stripe {
        width: 100%;
        margin-top: 0.5rem;
    }
    .hero-content {
        text-align: center;
    }
    .hero-graphic {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) { /* Small devices */
    body.stripe-inspired-page {
        font-size: 15px;
    }
     p.lead {
        font-size: 1.05rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
     .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    .footer-social-links a {
        margin-right: 0.8rem;
        font-size: 1rem;
    }
}
.site-header {
    position: relative;
    background: url('images/new_logo_principal.png') no-repeat center center !important;
    background-size: cover !important;
    height: 150px; /* Ajusta la altura según lo necesites */
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header .navbar {
    position: relative;
    z-index: 2; /* Asegura que los botones y el texto estén por encima del fondo */
}

.site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Oscurece un poco para mayor legibilidad */
    z-index: 1;
}
.navbar-brand.site-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding-left: 15px;
}
@media (max-width: 991px) {
    .navbar-brand.site-logo {
        position: relative;
        top: auto;
        transform: none;
        padding-left: 10px;
        margin-bottom: 10px;
    }
}
