/* Estilos específicos para servicios.html */

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding-top: 80px;
}

html {
    scroll-behavior: smooth;
}

main {
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.nav {
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav__container {
    width: min(90%, 1200px);
    margin: 0 auto;
    align-items: center;
    display: flex;
    align-content: center;
    justify-content: space-between;
    height: 80px;
    --icon-toggle-menu: url("./assets/menu.svg");
    --transform-menu-show: translate(-100%);
}

.nav__container:has(.nav__input:checked) {
    --icon-toggle-menu: url("./assets/close.svg");
    --transform-menu-show: translate(0);
}

.nav__figure {
    z-index: 10;
}

.nav__figure img {
    height: 50px;
}

.nav__toggle {
    width: 40px;
    height: 40px;
    background-image: var(--icon-toggle-menu);
    filter: invert(1); 
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: background-image .5s;
    cursor: pointer;
    z-index: 10;
    border: none;
    background-color: transparent;
}

.nav__list {
    transform: var(--transform-menu-show);
    list-style: none;
    background-color: black;
    position: fixed;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 2.5rem;
    text-align: center;
    transition: .5s transform;
    margin: 0;
    padding: 0;
    z-index: 9;
}

.nav__input {
    height: 40px;
    width: 40px;
    display: none;
}

.nav__link {
    color: aliceblue;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav__link:hover {
    color: #1a4d7a;
}

/* Desktop Navigation */
@media (width > 756px) {
    .nav__toggle {
        display: none;
    }
    
    .nav__list {
        position: static;
        transform: translate(0);
        background-color: transparent;
        display: flex;
        gap: 2rem;
        align-items: center;
        justify-content: flex-end;
    }
    
    .nav__link {
        color: #4A90E2;
        font-size: 1rem;
        transition: color 0.3s;
    }
    
    .nav__link:hover {
        color: #357ABD;
    }
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 3rem 20px 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 0.8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.section-title {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: #4A90E2;
    font-weight: 700;
}

section {
    padding: 80px 20px;
}

/* Responsive para section */
@media (max-width: 480px) {
    section {
        padding: 50px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Services Preview */
.services-preview {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    padding: 80px 20px;
}

.services-preview .section-title {
    color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #4A90E2;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    color: #4A90E2;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-card ul {
    color: #ddd;
}

.service-link {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-block;
    margin-top: 1rem;
}

.service-link:hover {
    color: #6BB3FF;
    text-decoration: underline;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #fff;
    padding: 80px 20px;
}

.stats-section .section-title {
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #4A90E2;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #ddd;
}

/* Testimonials */
.testimonials-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    padding: 80px 20px;
}

.testimonials-section .section-title {
    color: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #4A90E2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card h4 {
    color: #4A90E2;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.testimonial-card p {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-author {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: #4A90E2;
}

.testimonial-author span {
    display: block;
    font-weight: 400;
    color: #999;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Responsive para servicios */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .services-preview,
    .stats-section,
    .testimonials-section {
        padding: 60px 20px;
    }
}
