/* =========================
   VARIABLES NEXUS (NTS)
========================= */
:root {
    --nts-red: #c40000;
    --nts-red-dark: #8b0000;
    --nts-black: #111111;
    --nts-dark: #1a1a1a;
    --nts-gray: #6b7280;
    --nts-light: #f5f5f5;
    --nts-white: #ffffff;
}
/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--nts-black);
    background-color: var(--nts-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Estilos de botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-color: var(--nts-red);
    color: var(--nts-white);
}

.btn-primary:hover {
    background-color: var(--nts-red-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(196, 0, 0, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--nts-red);
    border: 2px solid var(--nts-red);
}

.btn-secondary:hover {
    background-color: var(--nts-red);
    color: var(--nts-white);
    transform: translateY(-3px);
}

/* Header y Navegación */
.navbar {
     background-color: var(--nts-white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background-color: #111;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;  /* mantiene proporción */
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--nts-dark);
}

.logo-abbr {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--nts-red);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--nts-black);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
}

.nav-menu li a:hover {
    color: var(--nts-red);
}

.nav-menu li a.active {
    color: var(--nts-red);
    font-weight: 600;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--nts-red);
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* Sección Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 80px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--nts-dark);
}

.highlight {
    color: var(--nts-red);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--nts-gray);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sección Servicios */
.services {
    padding: 80px 20px;
    background-color: var(--nts-light);
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--nts-dark);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--nts-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.services-container {
   max-width: 1200px;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--nts-red);
    margin-bottom: 20px;
}

.service-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.service-card p {
    color: var(--nts-gray);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features {
    list-style: none;
}

.service-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.service-features li i {
    color: #10b981;
    margin-right: 10px;
    font-size: 0.9rem;
    margin-top: 3px;
}

.services-cta {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, var(--nts-dark) 0%, var(--nts-red) 100%);
    border-radius: 15px;
    color: white;
}

.services-cta p {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

.services-cta .btn {
    background-color: var(--nts-white);
    color: var(--nts-red);
}

.services-cta .btn:hover {
    background-color: #fdeaea;
    transform: translateY(-3px);
}

/* Vista previa del portafolio */
.portfolio-preview {
    padding: 80px 5%;
    background-color: var(--nts-light);
    max-width: 1400px;
    margin: 0 auto;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0 50px;
}

.preview-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.preview-card:hover {
    transform: translateY(-10px);
}

.preview-image {
    height: 200px;
    overflow: hidden;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.preview-card:hover .preview-image img {
    transform: scale(1.05);
}

.preview-content {
    padding: 25px;
}

.preview-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.preview-content p {
    color: var(--nts-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.preview-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--nts-red);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s;
}

.preview-link:hover {
    gap: 12px;
}

.preview-cta {
    text-align: center;
    margin-top: 30px;
}

/* Sección Sobre Nosotros */
.about {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.about h2 {
    font-size: 2.5rem;
    color: var(--nts-dark);
    margin-bottom: 20px;
}

.about-content > p {
    font-size: 1.1rem;
    color: var(--nts-gray);
    margin-bottom: 40px;
    line-height: 1.7;
}

.about-features {
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.feature i {
    font-size: 2rem;
    color: var(--nts-red);
    background-color: #fdeaea;
    padding: 15px;
    border-radius: 10px;
    min-width: 70px;
    text-align: center;
}

.feature h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #1e293b;
}

.feature p {
    color: var(--nts-gray);
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sección Contacto */
.contact {
    padding: 80px 5%;
    background-color: var(--nts-light);
    max-width: 1400px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--nts-red);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.contact-card p {
    color: var(--nts-gray);
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #1e293b;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--nts-red);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--nts-dark);
    color: white;
    padding: 60px 5% 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 40px;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.footer-logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--nts-red) 0%, var(--nts-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #cbd5e1;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--nts-red);
}

.footer-services li {
    color: #cbd5e1;
}

.footer-contact p {
    color: #cbd5e1;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #334155;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--nts-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: #cbd5e1;
    max-width: 1400px;
    margin: 0 auto;
}

/* Enlace de portafolio en el menú */
.portafolio-link {
    color: var(--nts-red) !important;
    font-weight: 600 !important;
}

.portafolio-link i {
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .preview-container {
        grid-template-columns: 1fr;
    }
    
    .services-cta {
        padding: 30px 20px;
        background: linear-gradient(135deg, var(--nts-dark) 0%, var(--nts-red) 100%);
    color: var(--nts-white);
    }
    
    .services-cta p {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        margin-bottom: 10px;
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .services-cta p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .contact-form {
        padding: 25px;
    }

}

