/* =========================================
   SERVICIOS PAGE — servicios.css
   ========================================= */

/* Active nav link */
.nav-active {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
}

/* ── HERO ── */
.servicios-hero {
    position: relative;
    height: 380px;
    background-image: url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1800&q=80');
    background-size: cover;
    background-position: center 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.servicios-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(240,158,168,0.55) 0%, rgba(30,30,30,0.60) 100%);
}

.servicios-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    animation: heroFadeIn 0.9s ease forwards;
}

.servicios-hero-eyebrow {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 16px;
}

.servicios-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
    margin-bottom: 24px;
}

.hero-divider {
    width: 80px;
    height: 2px;
    background: #fff;
    margin: 0 auto;
    opacity: 0.7;
}

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

/* ── INTRO ── */
.servicios-intro {
    padding: 70px 20px 40px;
    text-align: center;
}

.servicios-intro h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.servicios-intro h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    margin: 14px auto 0;
}

.servicios-intro p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.9;
}

/* ── SERVICES GRID ── */
.servicios-grid-section {
    padding: 50px 20px 80px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.servicio-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    position: relative;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.servicio-card:hover::before {
    transform: scaleX(1);
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.13);
}

.servicio-card-inner {
    padding: 40px 36px;
}

/* Icon wrapper */
.servicio-icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 22px;
    transition: transform 0.3s ease;
}

.servicio-card:hover .servicio-icon-wrap {
    transform: scale(1.12) rotate(-5deg);
}

.servicio-icon-rose  { background: #fce8eb; color: #e07080; }
.servicio-icon-teal  { background: #e0f4f2; color: #3dbfb8; }
.servicio-icon-gray  { background: #f0f0f0; color: #888; }
.servicio-icon-blue  { background: #e8eef8; color: #557db5; }

/* Card headings & text */
.servicio-card h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.servicio-card p {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Feature list */
.servicio-list {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.servicio-list li {
    font-size: 0.88rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.servicio-list li i {
    font-size: 0.85rem;
}

.servicio-icon-rose  ~ ul .servicio-list li i,
#card-comprar .servicio-list i  { color: #e07080; }
#card-rentar .servicio-list i   { color: #3dbfb8; }
#card-alquilar .servicio-list i { color: #888; }
#card-vender .servicio-list i   { color: #557db5; }

/* Card buttons */
.btn-servicio {
    display: inline-block;
    padding: 11px 24px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-rose  { background: #e07080; color: #fff; }
.btn-rose:hover  { background: transparent; border-color: #e07080; color: #e07080; }

.btn-teal  { background: #3dbfb8; color: #fff; }
.btn-teal:hover  { background: transparent; border-color: #3dbfb8; color: #3dbfb8; }

.btn-gray  { background: #888; color: #fff; }
.btn-gray:hover  { background: transparent; border-color: #888; color: #888; }

.btn-blue  { background: #557db5; color: #fff; }
.btn-blue:hover  { background: transparent; border-color: #557db5; color: #557db5; }

/* ── CTA BANNER ── */
.servicios-cta {
    background-color: var(--bg-light);
    padding: 0;
    overflow: hidden;
}

.servicios-cta-inner {
    display: flex;
    align-items: stretch;
    min-height: 420px;
}

.servicios-cta-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 70px;
    background: var(--primary-color);
    color: #fff;
}

.servicios-cta-text h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.3;
}

.servicios-cta-text p {
    font-size: 0.93rem;
    line-height: 1.9;
    opacity: 0.9;
    margin-bottom: 30px;
}

.servicios-cta-text .btn-primary {
    background: #fff;
    color: var(--primary-color);
    align-self: flex-start;
    font-weight: 600;
    border: 2px solid #fff;
    transition: all 0.3s;
}

.servicios-cta-text .btn-primary:hover {
    background: transparent;
    color: #fff;
}

.servicios-cta-img {
    flex: 1;
    min-height: 350px;
}

.servicios-cta-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .servicios-cta-inner {
        flex-direction: column;
    }

    .servicios-cta-text {
        padding: 40px 30px;
    }

    .servicios-cta-img {
        min-height: 280px;
    }
}

/* ── WHY US ── */
.servicios-why {
    padding: 80px 20px;
    background: #fff;
}

.servicios-why h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 55px;
}

.servicios-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .servicios-why-grid {
        grid-template-columns: 1fr;
    }
}

.why-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    transition: background 0.3s, box-shadow 0.3s;
}

.why-item:hover {
    background: var(--bg-light);
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
}

.why-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--primary-color);
    transition: background 0.3s, color 0.3s;
}

.why-item:hover .why-icon {
    background: var(--primary-color);
    color: #fff;
}

.why-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.why-item p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* ── FOOTER EXTRAS ── */
.servicios-footer {
    border-top: 1px solid #f2eaea;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    transition: background 0.3s, color 0.3s;
}

.footer-socials a:hover {
    background: var(--primary-color);
    color: #fff;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--text-light);
}

.footer-legal a {
    color: var(--text-light);
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

.footer-legal span {
    opacity: 0.4;
}

.footer-copy {
    margin-top: 14px;
    font-size: 0.82rem;
    color: #bbb !important;
}
