/* BOMBCRETO - Servicios Styles */

/* Hero Section */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    text-align: center;
    color: var(--color-white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}



.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* SERVICE BLOCKS */

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-info h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark-gray);
}

/* Estacionaria centering */
#estacionaria .service-info h2 {
    text-align: center;
}

#estacionaria .service-info>div:last-child {
    text-align: center;
}

.service-info p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #444;
}

.feature-list {
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--color-dark-gray);
    font-size: 0.95rem;
}

.feature-list li i {
    color: var(--color-orange);
    font-size: 1rem;
}

/* Service Gallery */
.service-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-main-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.service-main-image:hover img {
    transform: scale(1.05);
}

/* PUMP TYPES GRID */

.pump-types-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pump-types-grid .pump-card {
    flex: 0 0 340px;
    max-width: 340px;
}

/* Pump Card Image */
.pump-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 16px 16px 0 0;
}

.pump-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.pump-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pump-slide.active {
    opacity: 1;
}

.pump-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.pump-card:hover .pump-nav {
    opacity: 1;
}

.pump-prev,
.pump-next {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    font-size: 0.85rem;
}

.pump-prev:hover,
.pump-next:hover {
    background: var(--color-orange);
}

/* Pump Badge */

/* Image Popup */

.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-image-wrapper img {
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 20px;
    /* Updated: rounded corners */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.popup-close {
    position: fixed;
    /* Fixed to viewport as per design */
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.popup-close:hover {
    background: var(--color-orange);
    /* Updated to orange */
    transform: rotate(90deg);
}

.popup-arrow {
    position: fixed;
    /* Fixed to viewport */
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.popup-arrow:hover {
    background: var(--color-orange);
    /* Updated to orange */
    transform: translateY(-50%) scale(1.1);
}

.popup-prev {
    left: 20px;
}

.popup-next {
    right: 20px;
}

.popup-counter {
    position: absolute;
    bottom: 30px;
    color: white;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 18px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    z-index: 10002;
}

/* Quote Form */

.quote-form-container {
    max-width: 550px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 700;
    color: var(--color-dark-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--color-orange);
}

.form-group input {
    padding: 0.9rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 4px rgba(240, 90, 40, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

.btn-full {
    width: 100%;
}

/* Features Grid */

.features-grid {
    display: grid;
    gap: 1.5rem;
}

.features-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(240, 90, 40, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-orange);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: var(--color-orange);
    color: white;
    transform: scale(1.1);
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark-gray);
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Fleet Cards */

.fleet-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.fleet-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.fleet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(240, 90, 40, 0.15);
}

.fleet-card-header {
    background: linear-gradient(135deg, var(--color-orange) 0%, #ff7b45 100%);
    padding: 1.5rem;
    text-align: center;
    color: white;
}

.fleet-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
}

.fleet-card-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: white;
}

.fleet-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fleet-list {
    list-style: none;
    margin: 0 0 1.25rem 0;
    padding: 0;
    flex-grow: 1;
}

.fleet-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #444;
}

.fleet-list li:last-child {
    border-bottom: none;
}

.fleet-list li i {
    color: var(--color-orange);
    font-size: 0.85rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.fleet-list li strong {
    color: var(--color-dark-gray);
    font-weight: 700;
}

.fleet-card-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    border: 2px dashed var(--color-orange);
    margin-top: auto;
}

.highlight-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-orange);
    line-height: 1;
}

.highlight-text {
    display: block;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* Responsive Fleet Cards */
@media (max-width: 900px) {
    .fleet-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 350px;
        margin: 0 auto;
    }

    .fleet-cards-grid .fleet-card:last-child {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .fleet-cards-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1rem;
        max-width: 320px;
        margin: 0 auto;
    }

    .fleet-cards-grid .fleet-card:last-child {
        max-width: 100%;
        grid-column: auto;
    }

    .fleet-card {
        border-radius: 12px;
    }

    .fleet-card-header {
        padding: 1rem;
    }

    .fleet-card-header h4 {
        font-size: 0.95rem;
    }

    .fleet-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .fleet-card-body {
        padding: 1rem;
    }

    .fleet-list li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
        gap: 8px;
    }

    .fleet-card-highlight {
        padding: 0.8rem;
        border-radius: 8px;
    }

    .highlight-number {
        font-size: 1.5rem;
    }

    .highlight-text {
        font-size: 0.75rem;
    }
}

/* Responsive */

@media (max-width: 1024px) {
    .pump-types-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 750px;
        justify-content: center;
    }

    /* Center odd last item */
    .pump-types-grid .pump-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 350px;
        justify-self: center;
    }
}

@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-main-image {
        height: 280px;
    }

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

    .popup-prev {
        left: 10px;
    }

    .popup-next {
        right: 10px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

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

    .pump-types-grid .pump-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .features-grid.grid-3 {
        grid-template-columns: 1fr;
    }

    .quote-form-container {
        padding: 1.5rem;
        margin: 0 10px;
    }

    /* Sección solicitar cotización - reducir espacios */
    #cotizar.section {
        padding: 2rem 0 1rem 0 !important;
    }

    #cotizar .text-center {
        margin-bottom: 1rem !important;
    }

    #cotizar h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    #cotizar p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .quote-form {
        gap: 1.2rem;
    }

    .form-group input {
        padding: 0.8rem 1rem;
    }

    /* Botón del formulario centrado y en una línea */
    #cotizar .quote-form .btn {
        white-space: nowrap;
        padding: 12px 24px;
        font-size: 0.85rem;
        width: auto;
        margin: 0.5rem auto 0;
        display: block;
        border-radius: 8px;
    }

    /* Sección Ventajas Competitivas - reducir espacios */
    .section.bg-light:has(.features-grid) {
        padding: 1rem 0 1.5rem 0 !important;
    }

    .section.bg-light:has(.features-grid) .text-center {
        margin-bottom: 0.8rem !important;
    }

    .section.bg-light:has(.features-grid) h2 {
        font-size: 1.4rem;
    }

    .popup-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .popup-prev {
        left: 5px;
    }

    .popup-next {
        right: 5px;
    }
}

/* Tablet text size enhancements */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

    .pump-card-content h3 {
        font-size: 1.3rem;
    }
}

/* Pump Cards */

.pump-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    max-width: 360px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.pump-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-orange) 0%, #ff8a50 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pump-card:hover::before {
    opacity: 1;
}

.pump-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(240, 90, 40, 0.2);
}

.pump-card-featured {
    border: 2px solid var(--color-orange);
    background: linear-gradient(180deg, #fff 0%, #fff9f7 100%);
}

.pump-card-featured::before {
    opacity: 1;
    height: 5px;
}

/* Pump Card Content - Enhanced with Flexbox for aligned buttons */
.pump-card-content {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pump-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark-gray);
    font-weight: 700;
}

.pump-card-content>p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
}

/* Pump Features - Viñetas estilo limpio */
.pump-features {
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0.5rem 0;
    flex-grow: 1;
}

.pump-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 0.6rem;
    text-align: left;
    padding: 0.25rem 0;
}

.pump-features li:last-child {
    margin-bottom: 0;
}

.pump-features li i {
    color: var(--color-orange);
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(240, 90, 40, 0.1);
    border-radius: 50%;
}

/* Pump Card Button - Enhanced */
.pump-card-content .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 90, 40, 0.3);
    margin-top: auto;
}

.pump-card-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 90, 40, 0.4);
}

/* Pump Badge - Enhanced */
.pump-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 5;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

.pump-badge-special {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.pump-badge-popular {
    background: linear-gradient(135deg, var(--color-orange) 0%, #ff6b35 100%);
    box-shadow: 0 4px 15px rgba(240, 90, 40, 0.4);
}

.pump-badge-premium {
    background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    box-shadow: 0 4px 15px rgba(241, 39, 17, 0.4);
}

/* Responsive Pump Cards */
@media (max-width: 768px) {
    .pump-types-grid .pump-card {
        flex: 0 0 100%;
        max-width: 380px;
    }
}

/* Estacionaria Carousel */
.estacionaria-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.est-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.est-slide.active {
    opacity: 1;
    position: relative;
}

.est-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.estacionaria-image:hover .est-nav {
    opacity: 1;
}

.est-prev,
.est-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    font-size: 1rem;
}

.est-prev:hover,
.est-next:hover {
    background: var(--color-orange);
}

.estacionaria-image {
    position: relative;
}

/* Responsive Mobile */

@media (max-width: 768px) {
    .hero-title-glacial {
        font-size: clamp(1.8rem, 8vw, 3rem);
        letter-spacing: 1px;
    }

    .pump-types-grid {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .pump-types-grid .pump-card {
        flex: 0 1 100%;
        max-width: 380px;
    }

    .pump-card-content {
        padding: 1.25rem;
    }

    .pump-features {
        padding: 0.8rem;
    }

    /* Bomba Estacionaria section - center on mobile */
    .service-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-info h2 {
        text-align: center;
    }

    .service-info>div {
        display: flex;
        justify-content: center;
    }

    .feature-list {
        grid-template-columns: 1fr;
        text-align: left;
        justify-items: start;
    }

    .feature-list li {
        justify-content: flex-start;
    }

    /* Botón cotizar estacionaria en una sola línea */
    #estacionaria .btn {
        white-space: nowrap;
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {

    .hero-title-glacial {

        font-size: 1.8rem;

        line-height: 1.2;

    }



    .pump-card-content h3 {
        font-size: 1.3rem;
    }

    .pump-features li {
        font-size: 0.85rem;
    }
}

/* Touch Device Fixes */
@media (hover: none) and (pointer: coarse) {

    /* Disable hover effects on pump cards for touch devices */
    .pump-card:hover {
        transform: none;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    .pump-card:hover::before {
        opacity: 0;
    }

    .pump-card-featured:hover::before {
        opacity: 1;
    }

    /* Ensure buttons are always clickable immediately */
    .pump-card-content .btn {
        -webkit-tap-highlight-color: rgba(240, 90, 40, 0.3);
        touch-action: manipulation;
    }

    .pump-card-content .btn:hover {
        transform: none;
    }

    /* Show navigation arrows always on touch */
    .pump-nav {
        opacity: 1;
    }

    /* Disable hover transform on feature items */
    .feature-item:hover .feature-icon {
        transform: none;
        background: rgba(240, 90, 40, 0.1);
        color: var(--color-orange);
    }

    /* Fleet cards - disable hover transform */
    .fleet-card:hover {
        transform: none;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    }
}