/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    padding-top: 80px; /* Altura del navbar */
}

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

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand i {
    color: #f59e0b;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1f2937;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.btn-call {
    background: #3b82f6;
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-call:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.8) 0%, rgba(59, 130, 246, 0.8) 50%, rgba(96, 165, 250, 0.8) 100%), url("../images/mecanico_grua.jpg") no-repeat center center / cover;
    background-size: cover;
    background-position: center;
    z-index: -1; /* Asegura que el hero section esté detrás del contenido */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.highlight {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: #f59e0b;
    color: #ffffff;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #1e40af;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature i {
    font-size: 1.5rem;
    color: #fbbf24;
}

/* Grúa Destacada */
.grua-destacada {
    padding: 6rem 0;
    background: #f8fafc;
}

.grua-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    background: #dc2626;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
}

.grua-text h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.grua-text p {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.grua-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.benefit i {
    color: #10b981;
    font-size: 1.3rem;
    width: 24px;
}

.emergency-contact {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    color: #ffffff;
}

.emergency-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.btn-emergency {
    background: #ffffff;
    color: #dc2626;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.btn-emergency:hover {
    transform: scale(1.05);
    animation: none;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.grua-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Servicios */
.servicios {
    padding: 6rem 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #6b7280;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.servicio-card {
    background: #ffffff;
    border: 2px solid #f3f4f6;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.servicio-card:hover {
    border-color: #f59e0b;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.servicio-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid #f59e0b;
}

.servicio-icon {
    font-size: 3rem;
    color: #f59e0b;
    margin-bottom: 1.5rem;
}

.servicio-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.servicio-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.servicio-btn {
    background: #25d366;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.servicio-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

/* Contacto */
.contacto {
    padding: 6rem 0;
    background: #f8fafc;
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contacto-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.contacto-info p {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.info-item i {
    font-size: 2rem;
    color: #f59e0b;
    margin-top: 0.5rem;
}

.info-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.info-item a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.info-item a:hover {
    color: #2563eb;
}

.contacto-actions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.action-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
}

.grua-card {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #ffffff;
}

.mecanica-card {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #ffffff;
}

.action-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.action-card p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.action-card .btn-primary,
.action-card .btn-emergency {
    background: #ffffff;
    color: #1f2937;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
}

.action-card .btn-primary:hover,
.action-card .btn-emergency:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #1f2937;
    color: #ffffff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: #f59e0b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand p {
    color: #d1d5db;
}

.footer-contact h4 {
    color: #f59e0b;
    margin-bottom: 1rem;
}

.footer-contact p {
    color: #d1d5db;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Float Buttons */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: bounce 3s infinite;
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.1);
    animation: none;
}

.call-float {
    position: fixed;
    bottom: 110px;
    right: 30px;
    background: #3b82f6;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.call-float:hover {
    background: #2563eb;
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Reducir padding para móvil */
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .nav-actions {
        flex-direction: row;
        gap: 0.5rem;
    }

    .nav-brand h1 {
        font-size: 1.3rem;
    }

    .desktop-only {
        display: none !important; /* Hide desktop buttons on mobile */
    }

    .hamburger-menu {
        display: block !important; /* Show hamburger menu on mobile */
    }

    .mobile-menu {
        display: none; /* Hidden by default */
        position: absolute;
        top: 80px; /* Below the navbar */
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 1rem;
        z-index: 999;
    }

    .mobile-menu.active {
        display: flex !important; /* Show when active */
    }

    .hero {
        min-height: 50vh;
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .feature {
        font-size: 1rem;
    }

    .grua-destacada {
        padding: 4rem 0;
    }

    .grua-content,
    .contacto-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .grua-text h2 {
        font-size: 2.2rem;
    }

    .grua-text p {
        font-size: 1.1rem;
    }

    .servicios {
        padding: 4rem 0;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .servicio-card {
        padding: 1.5rem;
    }

    .servicio-img {
        width: 70px;
        height: 70px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contacto {
        padding: 4rem 0;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 1.5rem;
    }

    .info-item i {
        margin-bottom: 0.5rem;
        margin-top: 0;
    }

    .action-card {
        padding: 2rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .call-float {
        bottom: 90px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (min-width: 769px) {
    .hamburger-menu {
        display: none !important; /* Hide hamburger menu on desktop */
    }

    .mobile-menu {
        display: none !important; /* Hide mobile menu on desktop */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    body {
        padding-top: 65px;
    }

    .nav-brand h1 {
        font-size: 1.1rem;
    }

    .btn-call,
    .btn-whatsapp {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .hero {
        min-height: 45vh;
        padding: 1.5rem 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

    .grua-text h2 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .servicio-card {
        padding: 1.2rem;
    }

    .servicio-img {
        width: 60px;
        height: 60px;
    }

    .servicio-card h3 {
        font-size: 1.2rem;
    }

    .servicio-card p {
        font-size: 0.9rem;
    }

    .servicio-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-emergency {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .info-item {
        padding: 1.2rem;
    }

    .action-card {
        padding: 1.5rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .call-float {
        bottom: 80px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}



.mecanica-image {
    margin-bottom: 3rem;
    text-align: center;
}

.mecanica-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}




.btn-primary {
    background: #f59e0b;
    color: #ffffff;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #1e40af;
}

.btn-emergency {
    background: #ffffff;
    color: #dc2626;
    padding: 1rem 2rem;
    border-radius:
50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.btn-emergency:hover {
    transform: scale(1.05);
    animation: none;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.servicio-btn {
    background: #25d366;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.servicio-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.action-card .btn-primary,
.action-card .btn-emergency {
    background: #ffffff;
    color: #1f2937;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
}

.action-card .btn-primary:hover,
.action-card .btn-emergency:hover {
    transform: scale(1.05);
}

.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.btn-call {
    background: #3b82f6;
    color: #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-call:hover {
    background: #2563eb;
    transform: translateY(-2px);
}




.servicio-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}



/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #1f2937;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 80px; /* Below the navbar */
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
    z-index: 999;
}

.mobile-menu.active {
    display: flex !important; /* Show when active */
}

/* Desktop: Show original buttons, hide hamburger */
@media (min-width: 769px) {
    .nav-actions .btn-call,
    .nav-actions .btn-whatsapp {
        display: flex !important; /* Show original buttons on desktop */
    }

    .hamburger-menu {
        display: none !important; /* Hide hamburger menu on desktop */
    }
}

/* Mobile: Hide original buttons, show hamburger */
@media (max-width: 768px) {
    .nav-actions .btn-call,
    .nav-actions .btn-whatsapp {
        display: none; /* Hide original buttons on mobile */
    }

    .hamburger-menu {
        display: block !important; /* Show hamburger menu on mobile */
    }

    .navbar .container {
        justify-content: space-between; /* Ensure space between brand and hamburger */
    }
}

