* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins';
    background-color: #f9f9f9;
    color: #2e2e2e;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

body {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.6rem;
    }
}

/*trusted*/
.trusted-section {
    padding: 1rem;
    background: #fff;
    font-family: 'Arial', sans-serif;
}

.trusted-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo {
    max-height: 140px;
    width: auto;
}

.trusted-text h2 {
    font-family: 'DM Serif Display';
    font-size: 3rem;
    font-weight: 400;
    text-align: left;
    width: 250px;
    margin: 0 auto;
}

.trusted-button .btn {
    border: 2px solid black;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    transition: all 0.3s ease;
}

.trusted-button .btn:hover {
    background: black;
    color: white;
}

.trusted-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.trusted-gallery img {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    object-fit: cover;
}

/*academic*/

.academic-section {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 3rem 2rem;
}

.academic-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
}

.academic-text {
    flex: 1 1 400px;
    max-width: 600px;
}

.academic-text h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.academic-text span {
    display: inline-block;
    margin-top: 0.3rem;
}

.decor-icon {
    width: 30%;
    margin: 1rem 0;
}

.academic-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #ddd;
}

.academic-image {
    flex: 1 1 400px;
    max-width: 600px;
}

.academic-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/*work-gallery*/
.our-work-section {
    background-color: #fff;
    color: #111;
    padding: 3rem 2rem;
}

.our-work-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.our-work-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

.our-work-header span {
    font-style: italic;
}



.arrow-icon {
    font-size: 6rem;
    color: #111;
    line-height: 1;
    animation: bounce 2s infinite;
    position: absolute;
    right: 6rem;
    
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

.work-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.work-gallery img {
    width: 100%;
    height: 310px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.work-gallery img:hover {
    transform: scale(1.03);
}

/*why-cevi*/
.why-cevi{
    background: #f7f7f6;
}
.why-cevi-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4rem 2rem;
    color: #111;
}

.why-cevi-content {
    flex: 1 1 45%;
    max-width: 600px;
}

.why-cevi-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tagline {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    border: 2px solid #111;
    border-radius: 20px;
    font-weight: 500;
}

.cevi-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cevi-benefits li {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cevi-benefits li span {
    font-size: 2rem;
    font-weight: bold;
    color: #111;
    min-width: 40px;
}

.cevi-media {
    flex: 1 1 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.tablet-img {
    width: 100%;
    max-width: 380px;
    border-radius: 8px;
    z-index: 1;
}

.video-img {
    width: 100%;
    max-width: 380px;
    height: 310px;
    border-radius: 8px;
    cursor: pointer;
}

.phone-img {
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 120px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .why-cevi-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cevi-media {
        margin-top: 2rem;
        position: relative;
    }

    .tablet-img {
        max-width: 80%;
    }

    .phone-img {
        width: 80px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/*clients*/
.clients-section {
    background-color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
}

.clients-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.clients-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: center;
}

.clients-logos img {
    max-width: 140px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.clients-logos img:hover {
    transform: scale(1.05);
}

/*carousel*/
.carousel-section {
    background-color: #e9e9e9;
    padding: 2rem 2rem;
    text-align: center;
}
.carousel-section h2{
    font-size: 2.06rem;
    font-weight: bold;
    margin: 16px 0;
}
.container-md {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    cursor: pointer;
  }

  .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .play-icon svg {
    fill: white;
    width: 30px;
    height: 30px;
  }

  .popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .popup iframe {
    width: 60%;
    height: 60%;
    border: none;
  }

  .popup.show {
    display: flex;
  }

.carousel-image img {
    width: 90%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.carousel-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.4;
}
.carousel-icon img{
    max-width: 100px;
}
/**/
.refurbished-section {
    padding: 4rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
}

.refurbished-content {
    flex: 1 1 400px;
    max-width: 600px;
}

.refurbished-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tagline {
    display: inline-block;
    border: 1px solid #000;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: anchor-center;
    gap: 1rem;
}

.benefits-list .number {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.refurbished-images {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.refurbished-images img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/*top-stretchers*/
.top-stretchers-section {
    padding: 4rem 2rem;
    text-align: center;
}

.top-stretchers-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.products-card {
    border: 1px solid #acacac;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 220px;
    text-align: center;
}

.products-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.products-card p {
    margin: 0.3rem 0;
    font-size: 1rem;
}

.products-card .price {
    font-weight: bold;
    color: #d90000;
    font-size: 1.1rem;
}

.products-card button {
    font-family: 'Poppins';
    margin-top: 0.8rem;
    padding: 0.4rem 1rem;
    border: 1px solid #acacac;
    background-color: white;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-card button:hover {
    background-color: #c20400;
    border-color: #c20400;
    color: white;
}

.check-all {
    margin: 2.5rem;
}

.check-all a {
    display: inline-block;
    border: 1px solid #acacac;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-weight: 500;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
}

.check-all a:hover {
    background-color: #c20400;
    border-color: #c20400;
    color: white;
}

/*top-beds-section*/
.top-beds-section {
    text-align: center;
}

.top-beds-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

/* animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(103, 21, 19, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(103, 21, 19, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(103, 21, 19, 0);
    }
}

.cta-button {
    animation: pulse 2s infinite;
}

img {
    transition: transform 0.4s ease;
    cursor: pointer;
}

img:hover {
    transform: scale(1.05);
}

button,
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover,
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Estilo del botón */
#openQuoteBtn {
    background-color: #1f2937;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }

  /* Fondo oscuro del modal */
  #quoteModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
  }

  /* Contenedor del contenido del modal */
  .modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 760px;
    height: 80%;
    position: relative;
    overflow: hidden;
  }

  /* Botón para cerrar */
  .close {
    color: #aaa;
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }

  .close:hover {
    color: #000;
  }

  /* Estilo del iframe */
  iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 10px 10px;
  }

/* Footer */
.footer-promo {
    display: flex;
    justify-content: space-around;
    padding: 4rem 2rem;
    background-color: #191919;
    color: #fff;
    flex-wrap: wrap;
}

.footer-logo {
    max-width: 280px;
    position: relative;
    top: -30px;
    left: -45px;
    margin-bottom: 1rem;
}

.footer-left h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.quote-btn {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.75rem 1.5rem;
    border: 2px solid #fff;
    border-radius: 40px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.quote-btn:hover {
    background-color: #fff;
    color: #000;
}

.footer-icon {
    position: absolute;
    margin: 0 2rem;
    width: 80px;
}

.footer-right {
    max-width: 300px;
    font-size: 1rem;
}

.footer-right a {
    color: #fff;
    text-decoration: underline;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-right p {
    margin: 1rem 0;
}

.footer-socials {
    display: flex;
}

.footer-socials a {
    margin-right: 1rem;
    color: #fff;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .footer-promo {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
}