
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #c90f0f 0%, #dc2206 100%);
    padding: 10px 0;
    position: relative;
    overflow: hidden;
}

.top-bar::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 60px 100px;
    border-color: transparent transparent #000 transparent;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #ffffff;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

.contact-info {
    display: flex;
    gap: 30px;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: #000;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item i {
    color: #000;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    position: fixed;
    
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    top: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    /*background: linear-gradient(135deg, #c90f0f 0%, #dc2206 100%);
    padding: 15px 25px;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 20px 100%);*/
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
}

.logo img {
    width: 150px; /* Ajusta según tu diseño */
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #c90f0f;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c90f0f;
    transition: width 0.3s ease;
}

.hamburger {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px; /* Mueve el icono a la esquina */
    z-index: 1100; /* Asegura que esté por encima del resto */
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        padding: 0px !important;
    }
    .logo img {
        width: 150px; /* Reducir tamaño en móviles */
    }

    .top-bar {
        display: none !important;
    }

    .navbar {
        top: 0 !important;
    }

    .nav-content {
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        gap: 10px;
        padding: 20px;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .virtual-estimate {
        display: none !important;
    }
}

.nav-links a:hover::after {
    width: 100%;
}

.virtual-estimate {
    background: linear-gradient(276deg, #4a5764  0%, #dc2206 100%);
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
    transition: transform 0.3s ease;
}

.virtual-estimate:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    /*background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23222" width="1200" height="600"/><g fill="%23444"><circle cx="300" cy="150" r="50"/><circle cx="600" cy="200" r="30"/><circle cx="900" cy="120" r="40"/><rect x="200" y="300" width="100" height="60" rx="10"/><rect x="500" y="350" width="80" height="40" rx="5"/><rect x="800" y="280" width="120" height="80" rx="15"/></g><g fill="%23666"><path d="M100 400 Q200 350 300 400 T500 400"/><path d="M600 450 Q700 400 800 450 T1000 450"/></g></svg>') center/cover;
    */ min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.hero2 {
    background: url('bg13.jpg') center / cover;
    min-height: 65vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero3 {
    background: url('bg14.jpg') center / cover;
    min-height: 65vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero4 {
    background: url('bg-contact.jpg') center / cover;
    min-height: 65vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}


.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.96; /* puedes ajustar esto si quieres más brillo */
}

.hero::before {
    z-index: 2;
}

.hero-content,
.floating-element {
    z-index: 3;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(45deg, #c90f0f 0%, transparent 100%);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #fff;
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    color: #c90f0f;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    position: relative;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: #c90f0f;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-title .highlight {
    color: #c90f0f;
}

.hero-description {
    font-size: 16px;
    max-width: 500px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(135deg, #c90f0f 0%, #dc2206 100%);
    color: #000;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(225, 225, 222, 0.3);
    margin-right: 15px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 212, 211, 0.4);
}

.cta-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #c90f0f;
    padding: 13px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: #c90f0f;
    color: #000;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: #c90f0f;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 20px;
}

.section-description {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #c90f0f 0%, #dc2206 100%);
    transition: left 0.3s ease;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    color: #c90f0f;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #000;
}

.service-description {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #000;
    color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    padding: 20px;
}

.about-image {
    background: url('bg14.jpg');
    background-size: cover;
    background-position: left;
    height: 400px;
    border-radius: 10px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #333;
    border-radius: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #c90f0f;
    display: block;
}

.stat-label {
    color: #ccc;
    margin-top: 5px;
}

/* Process Section */
.process {
    padding: 100px 0;
    background: #f8f9fa;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    background: linear-gradient(135deg, #c90f0f 0%, #dc2206 100%);
    color: #000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(230, 255, 0, 0.3);
}

.step-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
}

.step-description {
    color: #666;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: #000;
    color: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    background: #111;
    padding: 40px;
    border-radius: 10px;
    border-left: 4px solid #c90f0f;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c90f0f 0%, #dc2206 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
}

.author-info h4 {
    color: #c90f0f;
    margin-bottom: 5px;
}

.author-info p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #000;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c90f0f;
}

.contact-info-section {
    padding: 20px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    background: linear-gradient(135deg, #c90f0f 0%, #dc2206 100%);
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #000;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #c90f0f;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #c90f0f;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #666;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    top: 40%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .nav-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .hero-subtitle::before {
        display: none;
    }

    .cta-button,
    .cta-secondary {
        display: block;
        margin-bottom: 10px;
        text-align: center;
    }
}

.m-h1 {
    padding-top: 50px;
    padding-bottom: 30px;
}

.t-center {
    text-align: center;
}

.spacing {
    padding-bottom: 60px;
}

.p-j {
    text-align: justify;
}

.bg-hero{
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23222" width="1200" height="600"/><g fill="%23444"><circle cx="300" cy="150" r="50"/><circle cx="600" cy="200" r="30"/><circle cx="900" cy="120" r="40"/><rect x="200" y="300" width="100" height="60" rx="10"/><rect x="500" y="350" width="80" height="40" rx="5"/><rect x="800" y="280" width="120" height="80" rx="15"/></g><g fill="%23666"><path d="M100 400 Q200 350 300 400 T500 400"/><path d="M600 450 Q700 400 800 450 T1000 450"/></g></svg>') center/cover;
}