/* =============================================
   PÁGINA SERVICIOS - ESTILOS
   ============================================= */

/* Hero Interno */
.page-hero {
    padding: 120px 40px 80px 40px;
    background: linear-gradient(135deg, var(--negro) 0%, #0d0d0d 100%);
    text-align: center;
}

.page-hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--blanco);
    font-weight: 700;
}

.page-hero-subtitle {
    font-size: 20px;
    color: var(--gris);
    line-height: 1.6;
}

/* Services Section */
.services-section {
    padding: 80px 40px;
    background: var(--negro);
}

.services-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    align-items: stretch;
    grid-auto-columns: 1fr;
}

.services-container > .service-card {
    min-width: 0;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#calcular-remodelacion {
    grid-column: span 1 !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    justify-self: stretch;
    box-sizing: border-box;
}

#calcular-remodelacion .service-card-content {
    min-width: 0 !important;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
}

#calcular-remodelacion button {
    margin-top: auto !important;
}

.service-calculator-container {
    width: 100%;
    margin-top: 20px;
}

.service-calculator-container > .calc-wrapper {
    width: 100%;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: auto;
    min-width: 0;
    background: var(--gris-oscuro);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid rgba(255, 99, 3, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--naranja);
    box-shadow: 0 20px 50px rgba(255, 99, 3, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--naranja), #e55a00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 32px;
    color: var(--blanco);
}

.service-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.service-card p,
.service-card ul {
    text-align: left;
}

.service-card button,
.service-card a.btn {
    margin-top: auto;
    width: 100%;
}

.service-title {
    font-size: 26px;
    color: var(--blanco);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-description {
    color: var(--gris);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    color: var(--gris);
    font-size: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding-left: 25px;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--naranja);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--azul), #0660d1);
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    color: var(--blanco);
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .services-section {
        padding: 60px 20px;
    }
    
    .page-hero-title {
        font-size: 36px;
    }
}
