@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');

:root {
    --azul-opticalia: #198AAD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

.max-width {
    max-width: 1300px;
    padding: 0 80px;
    margin: auto;
}

/* Navbar styling */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 15px 0;
    font-family: 'Ubuntu', sans-serif;
    background: var(--azul-opticalia);
}

.navbar .max-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo img {
    width: 150px;
}

.navbar .menu li {
    list-style: none;
    display: inline-block;
}

.navbar .menu li a {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s ease;
}

.navbar .menu li a:hover {
    color: var(--azul-opticalia);
}

.navbar.sticky .menu li a:hover {
    color: #fff;
}

/* menu btn styling */
.menu-btn {
    color: #fff;
    font-size: 23px;
    cursor: pointer;
    display: none;
}

/* home section styling */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("images/home-banner.jpg");
    background-size: cover;
    background-position: 70%;
    background-repeat: no-repeat;
    height: 100vh;
    color: #fff;
    min-height: 500px;
    font-family: 'Ubuntu', sans-serif;
}

.home .max-width {
    width: 100%;
    margin: auto 0 auto 0px;
}

.home .home-content .text-1 {
    font-size: 27px;
}

.home .home-content .text-2 {
    font-size: 75px;
    font-weight: 600;
    margin-left: -3px;
}

.home .home-content .text-3 {
    font-size: 40px;
    margin: 5px 0;
}

.home .home-content .text-3 span {
    color: var(--azul-opticalia);
    font-weight: 500;
}

.home .home-content .book {
    display: inline-block;
    background: var(--azul-opticalia);
    color: #fff;
    font-size: 25px;
    padding: 12px 36px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid var(--azul-opticalia);
    transition: all 0.3s ease;
    cursor: pointer;
}

.home .home-content .book:hover {
    color: var(--azul-opticalia);
    background: none;
}

/* similar styling code for sections*/
.about,
.experience,
.skills,
.brands,
.contact,
footer {
    font-family: 'Poppins', sans-serif;
}

.about .about-content,
.skills .skills-content,
.contact .contact-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

section {
    padding: 100px 0;
}

section .title {
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 60px;
    padding-bottom: 20px;
    font-family: 'Ubuntu', sans-serif;
}

section .title::before {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 180px;
    height: 3px;
    background: #111;
    transform: translateX(-50%);
}

section .title::after {
    position: absolute;
    bottom: -12px;
    left: 50%;
    font-size: 20px;
    color: var(--azul-opticalia);
    padding: 5px;
    background: #fff;
    transform: translateX(-50%);
}

/* about section styling */
.about .title::after {
    content: "quienes somos";
}

.about .about-content .left {
    width: 45%;
}

.about .about-content .left img {
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius: 6px;
}

.about .about-content .right {
    width: 55%;
}

.about .about-content .right .text {
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.about .about-content .right span {
    color: var(--azul-opticalia);
}

.about .about-content .right p {
    text-align: justify;
}

.about .about-content .right .book {
    display: inline-block;
    background: var(--azul-opticalia);
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 6px;
    border: 2px solid var(--azul-opticalia);
    transition: all 0.3s ease;
    cursor: pointer;
}

.about .about-content .right .book:hover {
    color: var(--azul-opticalia);
    background: none;
}

/* experience section start */
.experience,
.contact {
    color: #fff;
    background-color: var(--azul-opticalia);
}

.experience .title::before {
    background: #fff;
}

.experience .title::after {
    background: var(--azul-opticalia);
    color: #fff;
    content: "algunos servicios";
}

.about .about-content,
.experience .experience-content,
.skills .skills-content,
.contact .contact-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.experience .experience-content {
    justify-content: center;
}

.experience .experience-content .card {
    width: calc(49% - 20px);
    height: 300px;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 20px 25px;
    transition: all 0.3s ease;
    margin: 10px;
    position: relative;
}

.experience .experience-content .card.bg1 {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/eye-test.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.experience .experience-content .card.bg2 {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/myopia-youngest-2.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.experience .experience-content .card.bg3 {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/oct-scan.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.experience .experience-content .card.bg4 {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/audiology.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.experience .experience-content .card:hover {
    transform: scale(1.05);
}

.experience .experience-content .card .box {
    padding: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all 0.3s ease;
}

.experience .experience-content .card .text {
    font-size: 35px;
    font-weight: 800;
}

.experience .experience-content .card .date {
    font-size: 15px;
    font-weight: 500;
}

/* brands section start */
.brands .title::after {
    content: "algunas marcas";
}

.brands .carousel .card {
    width: 100%;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

.brands .carousel .card .box {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.brands .carousel .card:hover .box {
    transform: scale(1.05);
}

.brands .carousel .card img {
    width: 210px;
    height: 125px;
    padding: 5px;
    object-fit: contain;
    border: 5px solid var(--azul-opticalia);
    transition: all 0.3s ease;
}

.brands .carousel .card .text {
    font-size: 20px;
    font-weight: 500;
    margin: auto 0 7px 0;
}

.owl-carousel .owl-stage {
    display: flex;
    padding-top: 10px;
    padding-bottom: 10px;
}

.owl-item {
    display: flex;
}

.owl-dots {
    text-align: center;
    margin-top: 20px;
}

.owl-dot {
    height: 13px;
    width: 13px;
    margin: 0 5px;
    outline: none !important;
    border-radius: 14px;
    border: 2px solid var(--azul-opticalia) !important;
    transition: all 0.3s ease;
}

.owl-dot.active {
    width: 35px;
    border-radius: 14px;
}

.owl-dot.active,
.owl-dot:hover {
    background: var(--azul-opticalia) !important;
}

/* contact section start */
.contact .title::before {
    background: #fff;
}

.contact .title::after {
    background: var(--azul-opticalia);
    color: #fff;
    content: "llámanos";
}

.contact .contact-content .column.left {
    width: 65%;
    align-self: stretch;
    /*Make column same height as other*/
}

.contact .contact-content .column.right {
    width: 30%;
}

.contact .contact-content .text {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact .contact-content .left p {
    text-align: justify;
}

.contact .contact-content .left .icons {
    margin: 10px 0;
}

.contact .contact-content .row {
    display: flex;
    height: auto;
    align-items: center;
    margin-bottom: 10px;
}

.contact .contact-content .row i {
    font-size: 25px;
    color: var(--azul-opticalia);
}

.contact .contact-content .row .info ul {
    list-style-type: none;
}

.contact .contact-content .row .info .head {
    font-weight: 500;
    font-size: 20px;
}

.contact .contact-content .row .info .sub-title {
    font-size: 15px;
    margin-left: 20px;
}

.contact .contact-content .row .info .sub-title a {
    color: #fff;
    text-decoration: underline;
}

.contact .right {
    position: relative;
}

/* footer section start */
footer {
    text-align: center;
    background: #111;
    color: #fff;
    padding: 20px 23px;
}

footer span a {
    color: var(--azul-opticalia);
    text-decoration: none;
}

footer span a:hover {
    text-decoration: underline;
}

/* Contact dialog styling */
#contact-dialog {
    display: none;
    justify-content: center;
    position: fixed;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 999999;
    background-color: #14141490;
    font-family: 'Ubuntu', sans-serif;
}

#contact-dialog .container {
    align-self: center;
    background-color: #ffffff;
    width: 100%;
    max-width: 550px;
    margin-right: 20px;
    margin-left: 20px;
    border-radius: 6px;
}

#contact-dialog .container .header-container {
    display: flex;
    flex-direction: row;
    font-size: 25px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: #141414 solid 1px;
}

#contact-dialog .container .header-container div {
    flex: 1;
}

#contact-dialog .container .header-container i:hover {
    cursor: pointer;
}

#contact-dialog .container .form-container {
    font-size: 15px;
    padding: 20px;
}

#contact-dialog .container .form-container textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 20px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 15px;
    padding-top: 5px;
    padding-left: 5px;
}

#contact-dialog .container .form-container .input-box {
    width: 100%;
    height: 30px;
    margin-bottom: 20px;
    font-size: 15px;
    padding-left: 5px;
}

#contact-dialog .container .form-container .submit-button {
    width: 100%;
    cursor: pointer;
    height: 50px;
    font-weight: 500;
    font-size: 20px;
    color: #fff;
    border-radius: 6px;
    border: 2px solid var(--azul-opticalia);
    transition: all 0.3s ease;
    background: var(--azul-opticalia);
    cursor: pointer;
}

#contact-dialog .container .form-container .submit-button:hover {
    color: var(--azul-opticalia);
    background: none;
}

#contact-dialog .container .form-container .loader-container {
    display: none;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: 6px;
    border: 2px solid var(--azul-opticalia);
    background: none;
}

#contact-dialog .container .form-submitted-message,
#contact-dialog .container .form-error-message {
    display: none;
    text-align: center;
    padding: 20px;
}

#contact-dialog .container .form-submitted-message .title,
#contact-dialog .container .form-error-message .title {
    font-size: 30px;
}

#contact-dialog .container .form-submitted-message .subtitle,
#contact-dialog .container .form-error-message .subtitle {
    padding: 10px;
    color: grey;
}

.loader {
    border: 5px solid #e6e6e6;
    border-radius: 50%;
    border-top: 5px solid var(--azul-opticalia);
    width: 35px;
    height: 35px;
    -webkit-animation: spin 2s linear infinite;
    /* Safari */
    animation: spin 2s linear infinite;
    align-self: center;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* CSS Code */
#whatsapp-logo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  

/* responsive media query start */
@media (max-width: 1300px) {
    .home .max-width {
        margin-left: 0px;
    }
}

@media (max-width: 1040px) {
    .menu-btn {
        display: block;
        z-index: 999;
    }

    .menu-btn i.active::before {
        content: "\f00d";
    }

    .navbar .menu {
        position: fixed;
        height: 100vh;
        width: 100%;
        left: -100%;
        top: 0;
        background: #111;
        text-align: center;
        padding-top: 80px;
        transition: all 0.3s ease;
    }

    .navbar .menu.active {
        left: 0;
    }

    .navbar .menu li {
        display: block;
    }

    .navbar .menu li a {
        display: inline-block;
        margin: 20px 0;
        font-size: 25px;
    }

    .navbar.sticky .menu li a:hover {
        color: var(--azul-opticalia);
    }
}

@media (max-width: 1115px) {
    .contact .contact-content .row .info .head {
        font-size: 15px;
    }

    .contact .contact-content .row .info .sub-title {
        font-size: 13px;
    }
}

@media (max-width: 1104px) {
    .about .about-content .left img {
        height: 350px;
        width: 350px;
    }
}

@media (max-width: 1000px) {
    .about .about-content .column {
        width: 100%;
    }

    .about .about-content .left {
        display: flex;
        justify-content: center;
        margin: 0 auto 60px;
    }

    .about .about-content .right {
        flex: 100%;
    }
}

@media (max-width: 947px) {
    .max-width {
        padding: 0 23px;
    }

    .home .home-content .text-2 {
        font-size: 70px;
    }

    .home .home-content .text-3 {
        font-size: 35px;
    }

    .home .home-content .book {
        font-size: 23px;
        padding: 10px 30px;
    }

    .experience .experience-content .card {
        width: 100%;
        margin-bottom: 20px;
    }

    .skills .skills-content .column,
    .contact .contact-content .column {
        width: 100%;
    }

    .contact .contact-content .column.left {
        width: 60%;
    }

    .contact .contact-content .column.right {
        width: 35%;
    }
}

@media (max-width: 725px) {
    .contact .contact-content .column.left {
        width: 55%;
    }

    .contact .contact-content .column.right {
        width: 40%;
    }
}

@media (max-width: 690px) {
    .home .home-content .text-2 {
        font-size: 60px;
    }

    .home .home-content .text-3 {
        font-size: 32px;
    }

    .home .home-content .book {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .contact .contact-content .column.left {
        width: 53%;
    }

    .contact .contact-content .column.right {
        width: 42%;
    }
}

@media (max-width: 610px) {
    .contact {
        padding: 35px 0;
    }

    .contact .contact-content .column.left {
        position: relative;
        /*Make height = width*/
        padding-top: 100%;
        /* Make height = width*/
        width: 100%;
    }

    .contact .contact-content .column.left iframe {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
    }

    .contact .contact-content .column.right {
        margin-top: 20px;
        width: 100%;
    }

    footer span {
        font-size: 15px;
    }
}

@media (max-width: 542px) {
    footer span {
        font-size: 10px;
    }
}

@media (max-width: 500px) {
    .home .home-content .text-2 {
        font-size: 45px;
    }

    .home .home-content .text-3 {
        font-size: 23px;
    }

    .contact .right form .button {
        margin: auto;
    }

    .experience .experience-content .card img {
        width: 70%;
    }
}

@media (max-width: 388px) {
    section .title {
        font-size: 35px;
    }

    section .title::after {
        font-size: 15px;
    }
}

@media (max-width: 369px) {
    .owl-dot {
        height: 10px;
        width: 10px;
    }
}

/* Download Popup Styles */
#download-popup {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 999999;
    background-color: #14141490;
    font-family: 'Ubuntu', sans-serif;
}

.download-container {
    align-self: center;
    background-color: #ffffff;
    width: 100%;
    max-width: 450px;
    margin-right: 20px;
    margin-left: 20px;
    border-radius: 6px;
    text-align: center;
    padding: 40px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.download-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.download-close-btn:hover {
    background: rgba(25, 138, 173, 0.1);
    color: var(--azul-opticalia);
}

.download-logo {
    width: 140px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(89%) saturate(1654%) hue-rotate(178deg) brightness(96%) contrast(89%);
}

.download-spinner {
    border: 4px solid rgba(25, 138, 173, 0.2);
    border-top: 4px solid var(--azul-opticalia);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

.download-loading-text {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
}

.download-redirect-message {
    color: var(--azul-opticalia);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
}

.download-device-icon {
    font-size: 60px;
    color: var(--azul-opticalia);
    margin-bottom: 20px;
}

.download-manual-links {
    margin-top: 20px;
    width: 100%;
}

.download-app-link {
    display: block;
    margin: 10px 0;
    padding: 0;
    background: none;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.download-app-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.download-app-link img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Mobile responsive for download popup */
@media (max-width: 600px) {
    .download-container {
        max-width: 350px;
        padding: 30px 25px;
        margin: 15px;
        min-height: 350px;
    }
    
    .download-logo {
        width: 120px;
    }
    
    .download-app-link {
        max-width: 180px;
        margin: 8px 0;
    }
}

@media (max-width: 400px) {
    .download-container {
        max-width: 300px;
        padding: 25px 20px;
        min-height: 300px;
    }
    
    .download-logo {
        width: 100px;
    }
    
    .download-app-link {
        max-width: 160px;
    }
}