/* Inherit variables from inicio.css (loaded previously) but declaring here for reference/fallback if needed */
/* Note: Since we load inicio.css first, these variables are already available. 
   We will add specific styles for the services page here. */

.services-page-container {
    padding-top: 100px;
    /* Account for fixed header */
    min-height: 80vh;
    padding-bottom: 4rem;
    background: linear-gradient(to bottom, #f8fbfe, #ffffff);
}

.services-header {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.services-header h2 {
    font-size: 2.5rem;
    color: var(--blue-primary);
    margin-bottom: 1rem;
}

.services-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.services-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Service Card Styles (Enhancing existing ones or creating specific overrides) */
.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(20px);
    /* visible class added by JS */
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(30, 60, 114, 0.15);
    border-color: rgba(30, 60, 114, 0.1);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--blue-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-icon {
    width: 32px;
    height: 32px;
    color: var(--blue-secondary);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--blue-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
    /* Pushes button to bottom */
}

.service-btn {
    align-self: flex-start;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-secondary) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(30, 60, 114, 0.2);
    margin-top: 1rem;
}

.service-btn:hover {
    background: linear-gradient(135deg, var(--blue-secondary) 0%, var(--blue-accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
    color: white;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .services-header h1 {
        font-size: 2rem;
    }

    .services-grid-container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }
}