/* ================== Variables Generales ================== */
:root {
    --dark-blue: #0B2545;       /* Azul oscuro institucional */
    --accent-orange: #F77F00;   /* Naranja brillante e interactivo */
    --light-bg: #F8F9FA;        /* Gris muy claro para fondos */
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-muted: #666666;
    --border-color: #E0E0E0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

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

/* Tipografía Básica */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(247, 127, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 127, 0, 0.6);
    background-color: #e67600;
}

/* ================== 1. Hero Section ================== */
.hero {
    background-image: linear-gradient(to right, rgba(11, 37, 69, 0.9), rgba(11, 37, 69, 0.6)), url('images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    min-height: 700px;
    color: var(--white);
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(11, 37, 69, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-orange);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.btn-nav {
    border: 2px solid var(--accent-orange);
    padding: 8px 20px;
    border-radius: 5px;
    color: var(--accent-orange) !important;
}

.btn-nav:hover {
    background-color: var(--accent-orange);
    color: var(--white) !important;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    animation: fadeIn 1.5s ease;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 800px;
    color: #e0e0e0;
}

/* ================== 2. Introducción ================== */
.intro {
    background-color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.intro h3 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.intro p {
    font-size: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-muted);
}

.intro strong {
    color: var(--accent-orange);
}

/* ================== 3. Servicios ================== */
.services {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h3 {
    font-size: 2.5rem;
    color: var(--dark-blue);
}

.section-title p {
    font-size: 1.2rem;
    color: var(--accent-orange);
    font-weight: 600;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card-image {
    height: 200px;
    background-color: #ccc;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 4px solid var(--accent-orange);
}

.bg-electric { background-image: url('https://images.unsplash.com/photo-1621905252507-b35492cc74b4?auto=format&fit=crop&q=80&w=800'); }
.bg-camaras { background-image: url('https://images.unsplash.com/photo-1557597774-9d273605dfa9?auto=format&fit=crop&q=80&w=800'); }
.bg-wifi { background-image: url('https://images.unsplash.com/photo-1544197150-b99a580bb7a8?auto=format&fit=crop&q=80&w=800'); }
.bg-drywall { background-image: url('https://images.unsplash.com/photo-1589939705384-5185137a7f0f?auto=format&fit=crop&q=80&w=800'); }

.card-icon {
    position: absolute;
    bottom: -25px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--dark-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 3px solid var(--white);
}

.card-body {
    padding: 30px 20px 20px;
}

.card-body h4 {
    font-size: 1.25rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ================== 4. SaaS Section ================== */
.saas-section {
    background: linear-gradient(135deg, var(--dark-blue), #183350);
    padding: 100px 0;
    color: var(--white);
}

.saas-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.saas-text {
    flex: 1;
}

.saas-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.highlight {
    color: var(--accent-orange);
}

.saas-text p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.saas-features {
    list-style: none;
}

.saas-features li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.saas-features i {
    color: var(--accent-orange);
    font-size: 1.4rem;
}

.saas-image {
    flex: 1;
}

.saas-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s;
}

.saas-image img:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* ================== 5. Beneficios ================== */
.benefits {
    padding: 80px 0;
    background-color: var(--white);
}

.dark-title {
    color: var(--dark-blue) !important;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.benefit-item .b-icon {
    font-size: 3rem;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.benefit-item h4 {
    font-size: 1.3rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.benefit-item p {
    color: var(--text-muted);
}

/* ================== 6. Final CTA ================== */
.final-cta {
    background-color: var(--accent-orange);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* ================== 7. Footer & Contact ================== */
.footer {
    background-color: #05101E; /* Aún más oscuro que el dark-blue */
    color: #e2e8f0;
    padding: 80px 0 30px;
}

.footer-layout {
    display: flex;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.c-icon {
    color: var(--accent-orange);
    font-size: 1.3rem;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
}

.social-links a:hover {
    background: var(--accent-orange);
}

.contact-form {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    border-radius: 5px;
    color: var(--white);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

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

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
}

.btn-submit {
    width: 100%;
    background: var(--accent-orange);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #e67600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-bottom-links a {
    margin-left: 20px;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ================== Media Queries ================== */
@media (max-width: 900px) {
    .saas-container, .footer-layout {
        flex-direction: column;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .navbar {
        padding: 20px;
    }
    .nav-links {
        display: none; /* Simplificación para móviles */
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 5px;
}
