:root {
    --primary: #d97706; /* Tono cálido tipo construcción/madera elegante */
    --primary-hover: #b45309;
    --dark: #1e293b;
    --dark-surface: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --white: #ffffff;
    --whatsapp: #25d366;
    --whatsapp-hover: #1da851;
    --radius: 12px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--primary);
}

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

.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.btn-menu {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 30px;
}

.btn-menu:hover {
    background-color: var(--primary-hover);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 50px;
    display: flex;
    align-items: center;
}

.hero-bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    color: var(--white);
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
}

.btn-call {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-call:hover {
    background-color: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
}

/* Formulario Hero */
.hero-form-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.hero-form-card p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.btn-submit {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 8px;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
}

/* Sección Servicios Destacados */
.services {
    padding: 90px 0;
}

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

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray);
    font-size: 1.05rem;
}

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

.service-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
}

.card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img img {
    transform: scale(1.08);
}

.card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.card-body {
    padding: 25px;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.card-body p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Sección También Realizamos */
.other-services {
    padding: 80px 0;
    background-color: #f1f5f9;
}

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

.other-service-item {
    background: var(--white);
    padding: 20px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.other-service-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.item-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(217, 119, 6, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.other-service-item h4 {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: var(--dark-surface);
    color: var(--white);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    color: #94a3b8;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary);
}

.footer-bottom {
    background-color: #020617;
    padding: 20px 0;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.text-white {
    color: var(--white) !important;
}


/* Estilos para la notificación flotante del formulario */
.form-message {
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    display: none; /* Oculto por defecto */
    transition: all 0.3s ease;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    display: block;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    display: block;
}



/* Responsive Design Completo y Corregido */
@media (max-width: 992px) {
    .hero {
        height: auto !important;
        min-height: 100vh;
        padding: 110px 15px 50px 15px !important; /* Espacio para que el menú no tape el título */
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 30px; /* Separa el texto del formulario verticalmente */
        align-items: center;
        text-align: center;
    }

    .hero-text {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 1rem !important;
        margin-bottom: 20px;
    }

    .hero-ctas {
        justify-content: center;
        margin-bottom: 10px;
    }

    /* El formulario baja ordenado debajo del banner */
    .hero-form-card {
        width: 100% !important;
        max-width: 420px;
        margin: 0 auto !important;
        position: relative !important;
        top: auto !important;
        transform: none !important;
        padding: 25px 20px !important;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Activación y despliegue del menú móvil (hamburguesa) */
    .mobile-toggle {
        display: block !important;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        display: none;
        z-index: 1000;
    }

    .nav-menu.active {
        display: block !important;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

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