/* ==========================================================================
   Gruas Merast CSS Design System
   ========================================================================== */

/* --- Variables --- */
:root {
    /* Colors */
    --primary-blue: #042a59;
    --primary-dark: #021a3a;
    --secondary-orange: #ff5722;
    --hover-orange: #e64a19;
    --text-dark: #333333;
    --text-light: #666666;
    --text-light-blue: #a0aec0;
    --bg-light: #f5f7fa;
    --white: #ffffff;
    --border-color: #e2e8f0;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

    /* Utility */
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* --- Resets & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--secondary-orange);
    outline-offset: 2px;
}

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

.section {
    padding: var(--space-xl) 0;
}

.text-blue {
    color: var(--primary-blue);
}

.text-orange {
    color: var(--secondary-orange);
}

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

.text-light-blue {
    color: var(--text-light-blue);
}

.bg-light {
    background-color: var(--bg-light);
}

.list-unstyled {
    list-style: none;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.pb-5 {
    padding-bottom: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

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

.gap-large {
    gap: var(--space-xl);
}

.half-width {
    flex: 1 1 45%;
}

.relative {
    position: relative;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    border: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--secondary-orange);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(255, 87, 34, 0.3);
}

.btn-primary:hover {
    background-color: var(--hover-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 87, 34, 0.4);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--primary-blue);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.logo img {
    height: 50px;
    width: auto;
}

.header-phone-btn {
    display: flex;
    color: var(--secondary-orange);
    background: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    border: 2px solid var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.header-phone-btn svg {
    width: 18px;
    height: 18px;
}

.header-phone-btn .phone-text {
    display: inline-block;
}

.header-phone-btn:hover {
    background: var(--hover-orange);
    color: var(--white);
    border-color: var(--hover-orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
    animation: phone-wiggle 0.5s ease-in-out;
}

@keyframes phone-wiggle {
    0% { transform: translateY(-3px) rotate(0); }
    25% { transform: translateY(-3px) rotate(-5deg); }
    50% { transform: translateY(-3px) rotate(5deg); }
    75% { transform: translateY(-3px) rotate(-5deg); }
    100% { transform: translateY(-3px) rotate(0); }
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-orange);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    left: 0;
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    color: var(--white);
    background-color: var(--primary-blue);
    overflow: hidden;
}

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

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

@media (max-width: 768px) {
    .bg-img {
        object-position: center center;
    }
}

.hero-overlay-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(4, 42, 89, 0.95) 0%, rgba(4, 42, 89, 0.5) 60%, rgba(4, 42, 89, 0) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 5%;
}

.hero-content {
    flex: 1;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.9);
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--white);
    max-width: 700px;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.9);
}

.whatsapp-hero-btn {
    position: absolute;
    top: 0;
    right: 60px;
    background-color: #25D366;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 10;
}

.whatsapp-hero-btn:hover {
    transform: scale(1.1);
    background-color: #1ebc5c;
}

/* --- Logistica Section --- */
.logistica {
    position: relative;
    z-index: 1;
}

.logistica-content h2 {
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.security-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--secondary-orange);
}

.feature-icon {
    background: rgba(255, 87, 34, 0.1);
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.feature-text p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.4;
}

.logistica-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.location-tag {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .logistica .flex-row {
        flex-direction: column-reverse;
        gap: 2rem;
    }
    
    .feature-item:hover {
        transform: none;
    }
}

/* --- Equipo Section --- */
.equipo {
    background-color: var(--bg-light);
    overflow-x: hidden;
    /* For animations */
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .equipo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .equipo-grid {
        grid-template-columns: 1fr;
    }
}

.crane-card {
    background: var(--white);
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.crane-card:hover {
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.4);
    border: 1px solid var(--secondary-orange);
    transform: translateY(-5px);
}

.crane-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 1rem 2rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.crane-card-image img {
    max-width: 90%;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.15));
}

.crane-card:hover .crane-card-image img {
    transform: scale(1.05);
}

.crane-card-content {
    padding: 1.5rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.crane-name {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.crane-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.crane-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 1.5rem 0;
}

.btn-crane-contact {
    margin-top: auto;
    padding: 0.8rem;
    font-size: 0.95rem;
    background-color: var(--white);
    color: var(--secondary-orange);
    border: 2px solid var(--secondary-orange);
    transition: all 0.3s ease;
}

.btn-crane-contact:hover {
    background-color: var(--secondary-orange);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
}

/* Animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.in-view,
.slide-in-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

.featured-crane {
    margin-top: 2rem;
    border-top: none;
    background: linear-gradient(135deg, var(--white) 0%, #f0f4f8 100%);
    position: relative;
}

.featured-info-top {
    position: absolute;
    top: 2rem;
    right: 2rem;
    text-align: right;
    color: var(--primary-blue);
}

.featured-info-top h3 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.featured-info-top .capacity {
    font-size: 4rem;
    color: var(--secondary-orange);
}

.crane-img-wrapper-full {
    padding: 4rem 2rem 2rem 2rem;
}

/* Partners Banner */
.partners-banner {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1.5rem 0;
    border-radius: 0;
    margin: 2rem 0;
    width: 100%;
    max-width: none;
    position: relative;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.partners-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logos-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.logos-grid img {
    height: 70px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .logos-grid {
        flex-direction: column;
        gap: 2rem;
    }
}

.logos-grid img:hover {
    opacity: 1;
}

/* --- Servicios --- */
.services-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.services-list a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.services-list a:hover {
    color: var(--secondary-orange);
}

.services-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.services-list li:hover::before {
    opacity: 1;
    animation: blue-pulse 1s infinite alternate;
}

@keyframes blue-pulse {
    0% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(4, 42, 89, 0.4);
    }

    100% {
        transform: translateY(-50%) scale(1.4);
        box-shadow: 0 0 0 6px rgba(4, 42, 89, 0);
    }
}

.location-badge {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-blue);
    padding: 1rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.rounded-lg {
    border-radius: 12px;
}

.shadow-img {
    box-shadow: var(--shadow-lg);
}

.floating-quote {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    max-width: 250px;
    border-left: 4px solid var(--secondary-orange);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Testimonios --- */
.bg-image-testimonials {
    background-image: linear-gradient(rgba(140, 45, 15, 0.8), rgba(20, 10, 15, 0.95)), url('../imgs/renta-de-gruas-titan-edomex-merast.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5rem 0;
}

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

.highlight-text {
    color: var(--secondary-orange);
    font-weight: 700;
    font-family: var(--font-heading);
}

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

.testimonial-card {
    background: transparent;
    box-shadow: none;
    border-left: 3px solid var(--secondary-orange);
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.testimonial-content {
    padding: 2rem;
}

.testimonial-content h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
}

/* --- Nosotros --- */
.nosotros-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nosotros-title {
    text-align: center;
    margin-bottom: 3rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 992px) {
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reasons-grid {
        grid-template-columns: 1fr;
    }
}

.reason-card.title-card {
    background: var(--white);
    color: var(--primary-blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
    padding: 2rem;
    align-items: flex-start;
}

.reason-card.title-card:hover {
    background: var(--white);
    transform: none;
    box-shadow: none;
}

.reason-card {
    background: var(--primary-blue);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
}

.reason-card:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.reason-card .icon {
    font-size: 2.5rem;
    color: var(--secondary-orange);
}

/* --- Contacto --- */
.contact-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.contact-left {
    flex: 1;
    padding: 3rem;
}

.contact-right {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-message h2 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--secondary-orange);
}

.cta-message p {
    font-size: 1.2rem;
}

.columns-2 {
    column-count: 2;
    column-gap: 2rem;
}

.columns-2 li {
    margin-bottom: 0.5rem;
}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icon-plus {
    color: var(--secondary-orange);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .icon-plus {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding-bottom: 1rem;
    color: var(--text-light-blue);
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: var(--font-primary);
}

.form-container input::placeholder,
.form-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-container input:focus,
.form-container textarea:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary-orange);
}

#form-response {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

#form-response.success {
    background: #4caf50;
    color: white;
}

#form-response.error {
    background: #f44336;
    color: white;
}

.hidden {
    display: none;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    color: var(--secondary-orange);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer .list-unstyled li {
    margin-bottom: 0.8rem;
}

/* Bullet minimalista para la columna de Servicios */
.footer-links .list-unstyled li {
    position: relative;
    padding-left: 1.2rem;
}

.footer-links .list-unstyled li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--secondary-orange);
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.footer-links .list-unstyled li:hover::before {
    opacity: 1;
    animation: minimalist-pulse 1s infinite alternate;
}

@keyframes minimalist-pulse {
    0% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.6);
    }

    100% {
        transform: translateY(-50%) scale(1.5);
        box-shadow: 0 0 0 6px rgba(255, 87, 34, 0);
    }
}

.footer .list-unstyled a {
    color: var(--text-light-blue);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer .list-unstyled a:hover {
    color: var(--secondary-orange);
}

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

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-light-blue);
}

.footer-bottom {
    background-color: #01122a;
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-light-blue);
}

/* --- Media Queries --- */
@media (max-width: 992px) {
    .contact-banner {
        flex-direction: column;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 0 15px;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: linear-gradient(180deg, #042a59 0%, #021a3a 100%);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 3rem 1.5rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        visibility: visible;
        pointer-events: auto;
    }

    .nav {
        position: absolute;
        visibility: hidden;
        width: 0;
        height: 0;
        pointer-events: none;
    }

    .logo {
        grid-column: 1;
        display: flex;
        justify-content: flex-start;
    }

    .logo img {
        height: 40px; /* Reducir un poco en móvil para dar espacio */
    }

    .header-phone-btn {
        grid-column: 2;
        display: flex;
        width: 45px;
        height: 45px;
        padding: 0;
        border-radius: 50%;
        background: var(--white);
        color: var(--secondary-orange);
        border: 2px solid var(--white);
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

    .header-phone-btn .phone-text {
        display: none;
    }

    .header-phone-btn svg {
        width: 22px;
        height: 22px;
    }

    .menu-toggle {
        grid-column: 3;
        display: flex;
        justify-content: flex-end;
    }

    .nav-links li {
        width: 80%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.3rem;
        letter-spacing: 1px;
        border-radius: 12px;
        width: 100%;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--secondary-orange);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active {
        color: var(--secondary-orange);
        background: rgba(255, 87, 34, 0.1);
        font-weight: 700;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .hamburger {
        background: transparent;
    }

    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        display: none;
    }

    .flex-row {
        flex-direction: column;
    }

    .half-width {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .partners-banner {
        width: 95%;
        margin: -20px auto 0;
    }
}

/* --- Floating WhatsApp Widget --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 9999;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.whatsapp-icon-container {
    background-color: transparent;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: relative;
    z-index: 10;
}

.whatsapp-icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(37, 211, 102, 0.6);
    border-radius: 50%;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px 0 35px;
    margin-left: -30px;
    background: var(--white);
    height: 36px;
    border-radius: 0 50px 50px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-blue);
    z-index: 5;
}

.whatsapp-text span {
    font-size: 0.75rem;
    color: var(--text-light-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whatsapp-text strong {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        left: 20px;
        padding-right: 0;
        border-radius: 50%;
    }

    .whatsapp-text {
        display: none;
    }
}
/* --- Bento Grid Servicios --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.bento-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(255, 87, 34, 0.15);
    border-color: var(--secondary-orange);
}

.bento-icon {
    width: 60px;
    height: 60px;
    background: rgba(4, 42, 89, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.bento-card:hover .bento-icon {
    background: rgba(4, 42, 89, 0.15);
    transform: scale(1.05);
}

.bento-card h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-blue);
    line-height: 1.3;
    margin: 0;
}

.bento-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.bento-capacity {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-orange);
    background: rgba(255, 87, 34, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Efecto 3D Grúa */
.crane-3d-wrapper {
    position: relative;
    z-index: 10;
    margin-left: -10%;
    margin-top: 2rem;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

@media (max-width: 1200px) {
    .crane-3d-wrapper {
        margin-left: -5%;
    }
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .crane-3d-wrapper {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

/* Banner de Cobertura */
.location-banner-bento {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

.location-badge-bento {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-light);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(4, 42, 89, 0.1);
}

.location-badge-bento svg {
    width: 16px;
    height: 16px;
    color: var(--secondary-orange);
}

/* Botón Sheen */
.btn-sheen {
    position: relative;
    overflow: hidden;
    background-color: var(--secondary-orange);
    color: white;
    border-radius: 30px;
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    border: none;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.btn-sheen:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.6);
}

.btn-sheen::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: -1;
    animation: sheen 3s infinite;
}

@keyframes sheen {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.servicios-layout-grid {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.servicios-left {
    flex: 0 0 65%;
    max-width: 65%;
}

.servicios-right {
    flex: 0 0 35%;
    max-width: 35%;
}

@media (max-width: 992px) {
    .servicios-layout-grid {
        flex-direction: column;
    }
    .servicios-left, .servicios-right {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* --- Page Transitions --- */
body {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.is-loaded {
    opacity: 1;
}

body.is-leaving {
    opacity: 0;
}

/* Fallback for users with JS disabled */
noscript body {
    opacity: 1;
}

/* --- Article Layout & Sidebar --- */
.article-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 992px) {
    .article-grid {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .article-main {
        flex: 0 0 68%;
        max-width: 68%;
    }
    
    .article-sidebar {
        flex: 0 0 32%;
        max-width: 32%;
        position: sticky;
        top: 100px;
    }
}

.sidebar-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.sidebar-card.dark {
    background: var(--primary-blue);
    color: var(--white);
}

.sidebar-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.sidebar-contact-item {
    margin-bottom: 1.5rem;
}

.sidebar-contact-item label {
    display: block;
    color: var(--secondary-orange);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.sidebar-contact-item p {
    font-size: 1rem;
    line-height: 1.4;
}

/* Sidebar Form adjustments */
.article-sidebar .form-group input,
.article-sidebar .form-group textarea {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

.article-sidebar .form-group input::placeholder,
.article-sidebar .form-group textarea::placeholder {
    color: var(--text-light);
}




/* --- Compact & Scrollable Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 20, 45, 0.95);
    backdrop-filter: blur(8px);
    overflow-y: auto; /* Allow scrolling the modal overlay */
    padding: 20px 0; /* Add some space at top/bottom when scrolling */
}

.modal-content {
    background-color: #042a59;
    margin: 20px auto; /* Reduced margin */
    padding: 2rem; /* Reduced padding */
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 95%;
    max-width: 500px; /* Slightly narrower */
    border-radius: 15px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.close-modal {
    color: white;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--secondary-orange);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    border-bottom: 2px solid var(--secondary-orange);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    padding-right: 40px; /* Space for close button */
}

.modal-header h3 {
    font-size: 1.5rem; /* Smaller font size */
    color: white;
    font-weight: 800;
}

.modal .form-group {
    margin-bottom: 1.2rem;
}

.modal .form-group label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.modal .form-group input, 
.modal .form-group select, 
.modal .form-group textarea {
    padding: 0.8rem !important; /* Compact padding */
    font-size: 0.95rem;
}

.modal button[type="submit"] {
    padding: 1rem !important;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* --- Select Contrast Fix --- */
.modal .form-group select option {
    background-color: #042a59; /* Match modal background */
    color: white;
    padding: 10px;
}

/* --- Success State Styles --- */
.modal-content.success-state {
    text-align: center;
    border-color: var(--secondary-orange);
}

.modal-content.success-state .modal-header {
    display: none; /* Hide header on success */
}

.modal-response.success {
    background: transparent;
    border: none;
    color: white;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--secondary-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 32px;
}

.btn-close-success {
    background: var(--secondary-orange);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.btn-close-success:hover {
    background: #e64a19;
    transform: scale(1.05);
}

/* Utility to hide elements */
.hidden { display: none !important; }

