/* ==========================================================================
   Olé Piscinas - Main Stylesheet
   ========================================================================== */

/* Base Styles
   ========================================================================== */

/* RemixIcon fallback */
:where([class^="ri-"])::before { 
    content: "\f3c2"; 
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* Form Styles
   ========================================================================== */

/* Removed all unused modal form styles - keeping only general form styles */

/* Field styling and validation */
.label-highlighted {
    background-color: rgba(69, 182, 239, 0.9) !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(69, 182, 239, 0.4);
}

.field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
}

.error-message i {
    margin-right: 0.5rem;
}

/* Input styling */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Slider Components
   ========================================================================== */

/* Before/After Slider Styles */
.before-after-container {
    position: relative;
    overflow: hidden;
}

.before-after-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    border: 2px solid #45b6ef;
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
}

.before-after-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #45b6ef;
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
}

/* Scrollbar Styles */
.before-after-scroll {
    scrollbar-width: thin;
    scrollbar-color: #0077B6 #f1f1f1;
}

.before-after-scroll::-webkit-scrollbar {
    height: 6px;
}

.before-after-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.before-after-scroll::-webkit-scrollbar-thumb {
    background: #0077B6;
    border-radius: 10px;
}

/* Animation Effects
   ========================================================================== */

/* Pulse Glow Animation */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(69, 182, 239, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(69, 182, 239, 0); }
    100% { box-shadow: 0 0 0 0 rgba(69, 182, 239, 0); }
}

/* Enhanced pulse effect for buttons */
.pulse-glow {
    animation: pulse-glow-enhanced 3s infinite;
}

@keyframes pulse-glow-enhanced {
    0% { box-shadow: 0 4px 15px rgba(69, 182, 239, 0.4); }
    50% { box-shadow: 0 8px 25px rgba(69, 182, 239, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(69, 182, 239, 0.4); }
}

/* Wave effect for buttons */
.wave-effect {
    position: relative;
    overflow: hidden;
}

.wave-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: wave 2.5s infinite;
    z-index: 1;
}

.wave-effect:hover::before {
    animation: wave-fast 1s infinite;
}

@keyframes wave {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes wave-fast {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Fade-in animation */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card Components
   ========================================================================== */

/* Service Cards */
.service-card {
    transition: transform 0.3s ease;
}

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

/* Gallery Cards */
.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Gallery Section Styles
   ========================================================================== */

/* Scrollbar hiding */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.quick-gallery-slider {
    scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
.quick-gallery-slider::-webkit-scrollbar {
    height: 0px;
}

/* Removed all unused modal component styles */

/* Service button styles - all three buttons with no hover effects */
#limpiezaDetallesBtn,
#reparacionDetallesBtn,
#construccionDetallesBtn {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    background-color: #45b6ef !important;
    color: white !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    border: none !important;
    margin: 0 !important;
    border-radius: 0 0 0.75rem 0.75rem !important;
    transition: all 0.3s ease !important;
}

/* NO hover effects on any service buttons */
#limpiezaDetallesBtn:hover,
#reparacionDetallesBtn:hover,
#construccionDetallesBtn:hover {
    background-color: #45b6ef !important;
}

/* Fix height difference - ensure all service content sections are at least 308px like the working first one */
.bg-white.rounded-xl.shadow-lg .p-6 {
    min-height: 308px !important;
    box-sizing: border-box !important;
}

/* Ensure parent containers have no spacing */
.bg-white.rounded-xl.shadow-lg .relative {
    margin: 0 !important;
    padding: 0 !important;
} 