:root {
    --primary-orange: #e65c00;
    --primary-hover: #cc5200;
    --dark-gray: #55555c;
    --light-bg: #f9f9fb;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #555555;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* --- PROTECCIÓN VISUAL Y DESHABILITACIÓN DE SELECCIÓN --- */
body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 80px;
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;         /* Estándar */
}

/* Permitir selección de texto dentro de inputs y textareas para el correcto llenado del formulario */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Impedir la interacción directa sobre imágenes (Arrastrar/Descargar) */
img {
    -webkit-user-drag: none;
    user-select: none;
}

/* Solo bloquear puntero en imágenes sueltas si es necesario, pero mantener activo en links */
.client-card img {
    pointer-events: auto;
}

/* --- HEADER & NAV --- */
header {
    background-color: rgba(255, 255, 255, 0.98);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-orange);
    backdrop-filter: blur(5px);
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo-img {
    max-height: 55px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--primary-orange);
}

.btn-agenda-nav {
    background-color: var(--primary-orange);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s !important;
}

.btn-agenda-nav:hover {
    background-color: var(--primary-hover) !important;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* --- HERO SECTION --- */
#inicio {
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    padding: 0 1rem;
    color: #ffffff;
}

.hero-content {
    max-width: 850px;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero-content h1 span {
    color: var(--primary-orange);
}

.hero-content p {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: #ffffff;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(230, 92, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--dark-gray);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: #3d3d42;
}

/* --- SECCIONES GENERALES --- */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 4rem;
    position: relative;
    color: var(--text-dark);
    font-weight: 700;
}

.section-title::after {
    content: '';
    width: 70px;
    height: 4px;
    background-color: var(--primary-orange);
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* --- SERVICIOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--dark-gray);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    transform: translateY(-8px);
    border-top-color: var(--primary-orange);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.service-icon {
    font-size: 2.8rem;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- NOSOTROS --- */
#nosotros-bg {
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-box {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.about-box h3 {
    color: var(--primary-orange);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.about-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.values-list {
    list-style: none;
}

.values-list li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.values-list li i {
    color: var(--primary-orange);
    margin-right: 10px;
}

/* --- SECCIÓN CLIENTES (CARRUSEL INFINITO) --- */
.clients-section {
    text-align: center;
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.clients-section h3 {
    margin-bottom: 2.5rem;
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.slider-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scroll 25s linear infinite;
}

.slider-container:hover .slider-track {
    animation-play-state: paused;
}

.client-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 80px;
    padding: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.client-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.client-card:hover {
    transform: scale(1.08);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* --- CONTACTO --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.contact-info > p {
    color: var(--text-muted);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--primary-orange);
    margin-top: 2px;
    width: 30px;
    text-align: center;
}

.info-item div strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.info-item div p {
    color: var(--text-muted);
}

.contact-form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.85rem;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    border-radius: 4px;
    font-size: 0.95rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    background-color: var(--white);
}

/* CAPTCHA */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--light-bg);
    padding: 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.captcha-code {
    background: var(--dark-gray);
    color: var(--white);
    padding: 8px 16px;
    font-weight: bold;
    letter-spacing: 4px;
    font-style: italic;
    user-select: none;
    border-radius: 3px;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* --- FOOTER --- */
footer {
    background-color: #111111;
    text-align: center;
    padding: 2.5rem 2rem;
    color: #a0a0a0;
    font-size: 0.9rem;
}

footer p {
    font-weight: 300;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    body { padding-top: 70px; }
    header { height: 70px; }
    .logo-img { max-height: 45px; }

    .form-row {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        padding: 2.5rem 0;
        transition: 0.4s ease;
        border-bottom: 3px solid var(--primary-orange);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li { margin: 0.8rem 0; }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 { font-size: 2.1rem; }
    .hero-content p { font-size: 1rem; }
    section { padding: 4rem 1.5rem; }
    .section-title { font-size: 1.8rem; }
}