/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Paleta de colores actualizada */
:root {
    --primary-blue: #1976d2;
    --primary-dark: #1565c0;
    --primary-light: #42a5f5;
    --accent-orange: #ff6f00;
    --background-gradient: linear-gradient(to bottom, 
        var(--primary-blue) 0%,
        #1976d2 15%,
        #2196f3 35%,
        #42a5f5 60%,
        #bbdefb 85%,
        #ffffff 100%);
    --surface-white: #ffffff;
    --text-dark: #2c3e50;
    --text-gray: #555;
    --divider: #eaeaea;
}

/* Estructura principal */
body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background-gradient);
    background-attachment: fixed;
}

/* Header */
header {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: var(--primary-blue);
    color: white;
    display: grid;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: auto auto;
    padding: 15px 5%;
}

.logo-title-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    cursor: pointer;
}

.logo-title-container:hover {
    opacity: 0.9;
}

.header-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

header h1 {
    font-size: 28px;
    margin-left: 15px;
    font-weight: 600;
    text-align: center;
}

/* Navegación */
nav {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 16px;
    background-color: transparent;
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link.active {
    color: var(--accent-orange);
    font-weight: 600;
}

/* Contenido principal */
.services-main {
    width: 100%;
    margin-top: 90px;
    margin-bottom: 2%;
    flex: 1;
}

/* Services Intro */
.services-intro {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background-color: var(--surface-white);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.services-intro h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.services-intro p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--surface-white);
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
    text-align: center;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.service-card ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--divider);
    font-size: 1rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
}

.service-card ul li:before {
    content: "✓";
    color: var(--accent-orange);
    margin-right: 10px;
    font-weight: bold;
}

.service-price {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 700;
    padding: 15px;
    background-color: rgba(25, 118, 210, 0.08);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: auto;
}

.service-price:hover {
    background-color: rgba(25, 118, 210, 0.12);
}

/* Service CTA */
.service-cta {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.service-cta h3 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.service-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.service-cta button {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: white;
    color: var(--primary-blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-cta button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Service Garantias */
.service-garantias {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 40px 20px;
    background-color: var(--surface-white);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.service-garantias h2 {
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.garantias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.garantia-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.garantia-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.garantia-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.garantia-item:hover::before {
    transform: scaleX(1);
}

.garantia-item i {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.garantia-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent-orange);
}

.garantia-item p {
    font-size: 1rem;
    color: var(--text-gray);
}

/* Footer */
.global-footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0 15px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #3498db;
}

.footer-section p, .footer-section a {
    color: #ecf0f1;
    margin-bottom: 8px;
    display: block;
    text-decoration: none;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .garantias-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    header {
        grid-template-columns: auto;
        justify-content: center;
        text-align: center;
        gap: 15px;
    }
    
    nav {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
    }
    
    .services-main {
        margin-top: 140px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .service-cta {
        margin: 40px auto;
        padding: 30px 20px;
    }
    
    .service-garantias {
        margin: 40px auto 30px;
        padding: 30px 15px;
    }
    
    .services-intro h2,
    .service-garantias h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .services-intro,
    .service-garantias {
        padding: 30px 15px;
    }
    
    .services-intro h2,
    .service-garantias h2 {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .garantias-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}