/* Estilos base */
:root {
    --primary: #2C3E50;
    --secondary: #34495E;
    --accent: #F3C623;
    --accent-light: #FFB22C;
    --accent-dark: #FA812F;
    --background-light: #FEF3E2;
    --text-dark: #333;
    --text-light: #f1faee;
    --gray: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #FFF;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header (Menú de Navegación) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    padding: 10px 0;
}

.navbar.scrolled {
    padding: 5px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px;
    transition: height 0.3s ease-in-out;
}

.navbar.scrolled .logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.nav-links a:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-links a[href*="webmail"] {
    background-color: var(--primary);
    color: white;
}

.nav-links a[href*="webmail"]:hover {
    background-color: var(--secondary);
}

.desktop-cta {
    margin-left: 15px;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-button {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(243, 198, 35, 0.3);
}

.cta-button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(243, 198, 35, 0.4);
}

/* Menú móvil */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
        transition: transform 0.3s ease;
    }

    .menu-toggle.active {
        transform: rotate(90deg);
        color: var(--accent-dark);
    }

    .nav-links {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
        opacity: 0;
        z-index: 1000;
        border-radius: 0 0 15px 15px;
    }

    .nav-links.active {
        max-height: 500px;
        opacity: 1;
        padding: 15px 0;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
    }

    .nav-links a {
        width: 90%;
        margin: 5px auto;
        padding: 12px 20px;
        border-radius: 8px;
        background: rgba(243, 198, 35, 0.1);
        border: none;
        display: block;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: var(--accent);
        transform: translateX(8px);
    }

    .nav-links a[href*="webmail"] {
        background: var(--primary);
        color: white;
        margin-top: 10px;
    }

    .nav-links a[href*="webmail"]:hover {
        background: var(--secondary);
    }

    .desktop-cta {
        display: none;
    }
}

/* Sección de servicios */
.service-details-header {
    padding: 180px 0 100px 0;
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(52, 73, 94, 0.85)), url('img/capa3.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    text-align: center;
    color: white;
}

.service-details-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.service-details-header p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.services-layout {
    padding: 80px 0;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.service-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.service-item:nth-child(even) .service-image {
    order: 1;
}

@media (max-width: 992px) {
    .service-item,
    .service-item:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .service-item:nth-child(even) .service-image {
        order: -1;
    }
}

.service-image img {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    object-fit: cover;
}

.service-text-content h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.service-text-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.service-text-content p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-text-content .btn {
    font-size: 1rem;
    padding: 12px 28px;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-col p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    font-size: 1rem;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--accent);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-light);
    border-radius: 2px;
}

/* Estilos para listas en footer */
.footer-links,
.contact-info {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: var(--accent-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info li {
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* ✅ Iconos del footer: color correcto */
.contact-info li {
    color: var(--accent-light);
    margin-right: 10px;
    min-width: 20px;
    text-align: center;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--accent-light);
    color: var(--accent-light);
}