
/*=============================================================
    Authour URI: www.binarytheme.com
    License: Commons Attribution 3.0

    http://creativecommons.org/licenses/by/3.0/

    100% To use For Personal And Commercial Use.
    IN EXCHANGE JUST GIVE US CREDITS AND TELL YOUR FRIENDS ABOUT US
   
    ========================================================  */



/* ===========================================================
   GENERAL STYLESHEET BY BYINARY THEME    
   ============================================================*/
box-sizing: border-box;

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #000;
    line-height: 16px;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    line-height: 40px;
}

h1 {
    padding-top: 30px;
    color: #fff;
    font-weight: 800;
}

h5 {
    padding-bottom: 30px;
}

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

.main-top-margin {
    margin-top: 120px;
}

.main-low-margin {
    margin-top: 55px;
}

a, a:hover {
    text-decoration: none;
}

p {
    line-height: 30px;
    margin-bottom: 23px;
}

.img-margin-product {
    margin-top: 30px;
}

.bottam-pad {
    padding-bottom: 40px;
}

.space-bottom {
    height: 120px;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.space-bottom-gallery {
    height: 20px;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.space-top {
    height: 70px;
}

.main-icon {
    font-size: 350px;
    color: rgba(102, 110, 197, 1);
}

.head-line {
    font-size: 25px;
    padding-bottom: 50px;
    line-height: 55px;
    font-weight: 500;
}
/* ==========================================================================
   COLOR CODES
   ========================================================================== */

.color-red {
    color: #ff0000;
}

.color-green {
    color: #07BB00;
}

.color-light-blue {
    color: #BB00BB;
}

.color-blue {
    color: #0052FF;
}

.color-brown {
    color: #EB8F2D;
}

.color-black {
    color: #000000;
}

.section {
    background-color: rgba(102, 110, 197, 1);
    color: #fff;
}

/* ==========================================================================
   PRICE SECTION
   ========================================================================== */

.active {
    background: #EB8F2D!important;
}

#pricing-section .plan-main {
    background: #31B2D3;
    list-style: none;
    margin: 0 0 20px;
    text-align: center;
    padding: 0;
    border-bottom: 1px solid #e1e1e1;
}

    #pricing-section .plan-main li {
        padding: 10px 0;
        margin: 0 15px;
        border-bottom: 1px dashed #eee;
    }

        #pricing-section .plan-main li.plan-name {
            padding: 15px 0;
            font-size: 18px;
            font-weight: 700;
        }

        #pricing-section .plan-main li.plan-price {
            color: #666;
            padding: 15px 0;
            font-size: 48px;
        }

        #pricing-section .plan-main li.plan-action {
            margin-top: 20px;
            margin-bottom: 20px;
            border-bottom: 0;
        }

    #pricing-section .plan-main.featured {
        -webkit-transform: scale(1.05);
        -moz-transform: scale(1.05);
        -ms-transform: scale(1.05);
        -o-transform: scale(1.05);
        transform: scale(1.05);
    }

        #pricing-section .plan-main.featured .plan-price {
            color: #fff;
            background-color: #52b6ec;
            border-bottom-color: #52b6ec;
            margin: 0;
        }



/*==========================================
   SOCIAL ICON STYLES
    =====================================================*/


.color-facebook {
    color: #3B5998;
}

.color-twitter {
    color: #00aced;
}

.color-google-plus {
    color: #dd4b39;
}

.color-linkedin {
    color: #007bb6;
}

.color-pinterest {
    color: #cb2027;
}
/* ===========================================================
   BOOTSTRAP ELEMENTS CHANGES   
   ============================================================*/
.navbar {
    font-weight: 500;
    font-size: 14px;
}

.navbar-inverse {
    background: #000;
    border-color: #000;
}

    .navbar-inverse .navbar-nav > .active > a {
        background: #ffffff;
    }

    .navbar-inverse .navbar-brand {
        color: #fff;
        font-weight: bolder;
        font-size: 25px;
        font-weight: 900;
        letter-spacing: 2px;
    }

    .navbar-inverse :hover .navbar-brand:hover {
        color: #fff;
    }

    .navbar-inverse .navbar-nav > li > a {
        color: #FFFFFF;
    }


/* ==========================================================================
   PARALLAX STYLES
   ========================================================================== */
section {
    position: relative;
    width: 100% !important;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

    section:nth-of-type(1) {
        background: #FAFAFA;
        height: 300px;
    }

    section:nth-of-type(2) {
        background: #FAFAFA;
        height: 300px;
    }

#story-freext > div:nth-of-type(1) {
    background: url(../img/parallax1.jpg) 50% 0 no-repeat fixed;
    height: 300px;
    position: absolute;
    width: 100%;
}

#story-two > div:nth-of-type(2) {
    background: url(../img/parallax2.jpg) 50% 0 no-repeat fixed;
    height: 300px;
    position: absolute;
    width: 100%;
}

section article {
    position: absolute;
    left: 80px;
    width: 100%;
    z-index: 4;
    color: #fff;
    font-size: 20px!important;
    padding: 20px;
}

    section article span {
        line-height: 40px!important;
        font-weight: 600!important;
    }
/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */


#footer {
    background-color: #000;
    color: #fff;
    padding: 30px;
}


/* ==========================================================================
   HEADER SECTION
   ========================================================================== */

#header-section {
    background: url(../img/inici.jpg) 100% ;
    background-size: cover;
    width: 100%;
    height: 85vh;
}  

/* ========================================================================== */
/* GALERIA */
/* ========================================================================== */
.gallery {
  margin-top: 50px;
  margin-bottom: 0px;
}

.gallery-img {
  width: 100%;
  height: 300px;
  object-fit: cover; /* Retalla, però manté mida uniforme */
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  margin-bottom: 16px;
}


.gallery-img:hover {
  transform: scale(1.03);
}

/* ========================================================================== */
/* MODAL I CAROUSEL */
/* ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85) !important; /* Fons negre amb opacitat */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;         /* ❌ Elimina scroll intern */
    overscroll-behavior: none; /* ❌ Evita scroll "inercial" en mòbil */
  }  

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.carousel-images {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100vw;
  overflow: visible;
  position: relative;
  gap: 30px;
  flex-wrap: nowrap;       /* ❗️No permet que es trenquin les files */
  overflow-x: hidden;
  margin-left: -30px;
}

.carousel-images img {
  width: 300px;
  height: 250px;
  object-fit: cover; /* ↔️⚠️ Permet deformar la imatge per omplir l'espai */
  background-color: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
  flex-shrink: 0;
  margin: 0 10px;
}

.carousel-images img.active {
  width: 900px;
  height: 600px;
  object-fit: cover; /* mateix comportament: adapta la imatge al contenidor */
  opacity: 1;
  cursor: default;
  margin: 0 40px;
  background-color: transparent;
  flex-shrink: 0;
}



.carousel-arrow {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  user-select: none;
  font-size: 2rem;
  padding: 0 10px;
  position: relative;
  z-index: 1000;
  align-self: center;
}

.left-arrow {
  order: 1;
  margin-left: 10px;
  margin-right: 20px;
}

.right-arrow {
  order: 5;
  margin-left: 20px;
  margin-right: 10px;
}

/* Ordenació imatges (tenint en compte botons també) */
.carousel-images img:nth-child(2) {
  order: 0;
}

.carousel-images img:nth-child(3) {
  order: 3;
}

.carousel-images img:nth-child(4) {
  order: 6;
}

@keyframes slideFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-from-right {
  animation: slideFromRight 0.5s ease forwards;
}

.slide-from-left {
  animation: slideFromLeft 0.5s ease forwards;
}

@media (max-width: 768px) {
  .carousel-images img {
    max-width: 80px;
  }

  .carousel-images img.active {
    max-width: 70vw;     /* ✅ No ocupar tot el viewport */
    margin: 0 10px;
  }

  .left-arrow,
  .right-arrow {
    font-size: 1.8rem;
    margin: 0 5px;
  }

  .carousel-images {
    gap: 10px;
  }
}


/* PART DE LA IMATGE + TEXT (LA NOSTRA EMPRESA) */
.empresa-content {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 25px;
  margin-bottom: 25px;
}

.empresa-imatge {
  flex: 1;
  max-width: 500px;
  margin-left: 80px;         /* Desplaça a la dreta */
  display: flex;
  align-items: center;       /* Centrat verticalment — només per pantalles grans */
}


.empresa-imatge img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.empresa-text {
  flex: 1;
  font-size: 1.6rem !important;
  line-height: 1.6;
  color: #333;
  text-align: justify;
  padding: 20px 40px;
  box-sizing: border-box;
  margin-top: 20px;
  margin-right: 40px;
}

/* PER PANTALLES PETITES */
@media (max-width: 768px) {
  .empresa-content {
    flex-direction: column;
  }

  .empresa-imatge,
  .empresa-text {
    width: 100%;
    margin: 0 auto;
  }

  .empresa-imatge {
    align-items: flex-start;     /* Imatge enganxada a dalt en pantalles petites */
    margin-left: 20px;              /* Eliminem el desplaçament cap a la dreta */
    padding-left: 20px;
    margin-right: 20px;
    padding-right: 20px;
  }
}
