/* ==========================================================================
   Reset Base
   ========================================================================== */
body, h1, h2, h3, h4, p, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #eee;
    overflow-x: hidden;
    background-color: #0f1114;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

button:hover {
    opacity: 0.9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Cabecera (Navbar)
   ========================================================================== */
header {
    background-color: #1a1d22;
    padding: 10px 0;
    border-bottom: 1px solid #2a2d32;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.4em;
    font-weight: bold;
    color: #eee;
}

.logo-text span {
    color: #ff3b3b;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 0.85em;
}

.nav-menu a {
    color: #ccc;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ff3b3b;
}

.btn-getstarted {
    background-color: #ff3b3b;
    color: white !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-getstarted:hover {
    background-color: #e02020 !important;
    color: white !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 80px 0;
    background-color: #0f1114;
}

.hero-inner {
    display: flex;
    gap: 60px;
    align-items: center;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.1;
}

.hero-content p {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 1em;
    max-width: 550px;
    line-height: 1.7;
}

.hero-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.btn-hero-primary {
    padding: 12px 24px;
    border-radius: 4px;
    background: #ff3b3b;
    color: white;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-hero-primary:hover {
    background: #e02020;
}

.btn-hero-secondary {
    padding: 12px 24px;
    border-radius: 4px;
    background: #2a2d32;
    color: #eee;
    font-weight: 600;
    border: 1px solid #3a3d42;
    transition: all 0.3s;
}

.btn-hero-secondary:hover {
    background: #3a3d42;
    color: #fff;
}

/* ==========================================================================
   Why Us Section
   ========================================================================== */
.why-us {
    padding: 80px 0;
    background-color: #14171b;
}

.why-us-inner {
    display: flex;
    gap: 60px;
    align-items: center;
}

.why-us-content {
    flex: 1;
}

.why-us-content h2 {
    font-size: 2.4em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.why-us-intro {
    color: #aaa;
    font-size: 1.05em;
    margin-bottom: 30px;
    line-height: 1.7;
}

.why-us-list {
    list-style: none;
    padding: 0;
}

.why-us-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 0.95em;
    color: #ccc;
    line-height: 1.5;
}

.why-us-list li strong {
    color: #eee;
}

.why-us-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.why-us-image {
    flex: 1;
}

.why-us-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

/* ==========================================================================
   Servicios (Features Grid)
   ========================================================================== */
.features {
    padding: 80px 0;
    background-color: #0f1114;
    text-align: center;
}

.features h2 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 50px;
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-item {
    padding: 30px 20px;
    text-align: center;
    background: #1a1d22;
    border-radius: 12px;
    border: 1px solid #2a2d32;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 59, 59, 0.1);
    border-color: #ff3b3b;
}

.feature-item svg {
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.2em;
    margin-bottom: 12px;
    font-weight: 600;
    color: #fff;
}

.feature-item p {
    font-size: 0.9em;
    color: #999;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.btn-service {
    display: inline-block;
    padding: 8px 24px;
    background: transparent;
    border: 1px solid #ff3b3b;
    color: #ff3b3b;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-service:hover {
    background: #ff3b3b;
    color: white;
}

/* ==========================================================================
   Sectores Section (reemplaza precios)
   ========================================================================== */
.sectors-section {
    padding: 80px 0;
    background-color: #14171b;
}

.section-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 50px;
    color: #fff;
    text-align: center;
}

.sectors-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.sector-card {
    background: #1a1d22;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #2a2d32;
    width: 300px;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sector-card.featured {
    border: 2px solid #ff3b3b;
    transform: scale(1.05);
}

.sector-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.sector-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff3b3b;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    white-space: nowrap;
}

.sector-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.sector-card h3 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.4em;
    font-weight: 700;
}

.sector-card ul {
    margin-bottom: 30px;
    padding: 0;
    text-align: left;
}

.sector-card ul li {
    margin-bottom: 12px;
    color: #aaa;
    font-size: 0.95em;
    padding-left: 15px;
    position: relative;
}

.sector-card ul li::before {
    content: "•";
    color: #ff3b3b;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.btn-sector {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #ff3b3b;
    color: #ff3b3b;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
}

.sector-card.featured .btn-sector,
.btn-sector:hover {
    background: #ff3b3b;
    color: #fff;
}

/* ==========================================================================
   Sección de Contacto
   ========================================================================== */
.contact-section {
    padding: 80px 0;
    background-color: #0f1114;
    text-align: center;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #1a1d22;
    padding: 50px;
    border-radius: 12px;
    border: 1px solid #2a2d32;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #2a2d32;
    background-color: #0f1114;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95em;
    color: #eee;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #666;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff3b3b;
}

.contact-form .full-width {
    grid-column: span 2;
}

.contact-form textarea {
    height: 130px;
    resize: vertical;
}

.btn-send {
    grid-column: 1 / -1;
    justify-self: center;
    background-color: #ff3b3b;
    color: white;
    padding: 14px 50px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-send:hover {
    background-color: #e02020;
    transform: translateY(-2px);
}

.contact-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-box {
    background: #1a1d22;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #2a2d32;
    color: #ccc;
}

.info-box strong {
    color: #eee;
    display: block;
    margin-bottom: 4px;
}

.info-box .icon {
    flex-shrink: 0;
    color: #ff3b3b;
}

/* ==========================================================================
   WhatsApp Directo
   ========================================================================== */
.whatsapp-section {
    background-color: #14171b;
    padding: 0 0 80px 0;
}

.whatsapp-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.whatsapp-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #1a1d22;
    padding: 15px 35px;
    border-radius: 50px;
    border: 2px solid #2a2d32;
    color: #ccc;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-card:hover {
    border-color: #25D366;
    background: #152219;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.15);
}

.whatsapp-card h4 {
    margin: 0 0 2px 0;
    font-size: 1.1em;
    color: #eee;
}

.whatsapp-card span {
    font-weight: 700;
    color: #aaa;
    font-size: 1.1em;
}

.wa-icon {
    display: flex;
    align-items: center;
}

/* ==========================================================================
   WhatsApp Float
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-bottom {
    background-color: #000;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}

/* ==========================================================================
   Media Queries (Responsive)
   ========================================================================== */
@media (max-width: 991px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .nav-menu {
        display: flex;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu li {
        flex: 0 0 auto;
    }

    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-inner > div:first-child {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .why-us-inner {
        flex-direction: column;
        text-align: left;
        gap: 40px;
    }

    .why-us-content h2 {
        font-size: 2em;
        text-align: center;
    }

    .why-us-intro {
        text-align: center;
    }

    .sector-card {
        width: 100%;
        max-width: 340px;
    }

    .sector-card.featured {
        transform: scale(1);
    }

    .contact-form-container {
        padding: 30px 20px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form .full-width,
    .btn-send {
        grid-column: span 1;
        width: 100%;
    }

    .contact-boxes {
        grid-template-columns: 1fr;
    }

    .whatsapp-card {
        width: 100%;
        max-width: 340px;
        border-radius: 12px;
    }
}
