@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: "Roboto", sans-serif;
}

:root {
    --main-color: #141414;
    --color-text-primary: #ececfc;
    --color-text-secundary: #a1a0a0;
    --color-button: #193b68;
    --color-hover: #050e70;
    --color-text-primary1: #03162F;
    --color-secundary2: #AB29CA;
    --color-text-third: #485663;
    --main-color1: #ececfc;
    --lowText_font_size: 16px;
    --text-size-title: 40px;
    --text-tittle_card: 24px;
    --text-tittle_cardv2: 20px;
    --text-paragraph: 16px;
    --box-shadow-primary: 0px 6px 50px -20px rgba(20, 111, 224, 0.7);
}

/* Body */
body {
    background: linear-gradient(90deg, #141414, #141414 40%, #1A1A2E 100%, #003de4 100%);
    background-attachment: fixed;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    width: 100%;
    height: 80px;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: #141414;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.container-header {
    max-width: 1200px;
    height: 100%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    width: 70px;
    border: 2px solid var(--color-text-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0 20px;
}

.nav-menu li {
    margin: 0 16px;
}

.nav-menu a {
    color: var(--color-text-primary);
    font-size: var(--lowText_font_size);
    text-decoration: none;
}

.nav-menu a:hover {
    color: var(--color-hover);
    transition: all 0.3s ease;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.arrow {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown.active .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(90deg, #141414, #141414 40%, #1A1A2E 100%, #003de4 100%);
    padding: 10px 0;
    min-width: 150px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    color: var(--color-text-primary);
    transition: background 0.3s ease;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.btn_quote {
    padding: 8px 40px;
    color: #0af;
    border: 2px solid var(--color-button);
    border-radius: 8px;
    font-weight: 500;
    margin: 0 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn_quote:hover {
    color: white;
    background: var(--color-hover);
}

.socialMedia a {
    margin: 0 4px;
    text-decoration: none;
}

.socialMedia img {
    width: 30px;
}

.hamburger {
    display: none;
    font-size: 2rem;
    color: var(--color-text-primary);
    background: none;
    border: none;
    cursor: pointer;
}

/* Botón de cambio de tema */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-primary);
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.2);
}

/* Tema claro */
body.light-theme {
    background: linear-gradient(150deg, #f0f0f0, #7da4ba 40%, #e0e0e0 100%, #d57878 100%);
    color: #333333;
}

body.light-theme header {
    background: #7da4ba;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

body.light-theme .navbar {
    background: #7da4ba; /* Para el menú móvil */
}

body.light-theme .nav-menu a {
    color: #333333;
}

body.light-theme .nav-menu a:hover {
    color: var(--color-hover);
}

body.light-theme .btn_quote {
    color: rgb(3, 16, 22);
    border: 2px solid var(--color-button);
}

body.light-theme .btn_quote:hover {
    color: #ffffff;
    background: var(--color-hover);
}

body.light-theme .dropdown-menu {
    background: #7da4ba;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

body.light-theme .dropdown-menu li a {
    color: #333333;
}

body.light-theme .dropdown-menu li a:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme footer {
    background: #7da4ba;
    box-shadow: 0px -4px 15px rgba(0, 0, 0, 0.1);
}

body.light-theme .contact-info p {
    color: #494949;
}

body.light-theme .contact-info p strong {
    color: #333333;
}

body.light-theme .contact-info p a {
    color: rgb(3, 120, 178);
}

body.light-theme .contact-info p a:hover {
    color: var(--color-hover);
}

body.light-theme .copyright {
    color: #666666;
}

body.light-theme .text-card-primary h1,
body.light-theme .box-card-primary a,
body.light-theme .box-card-primary-n a,
body.light-theme .text-nos h1 {
    color: #333333;
}

body.light-theme .text-card-primary p,
body.light-theme .text-cover-n p,
body.light-theme .text-nos h3 {
    color: #666666;
}

/* Ajustar media queries para el tema claro */
@media (max-width: 768px) {
    body.light-theme .navbar {
        background: #f0f0f0;
    }
}

/* Main */
main {
    padding-top: 80px;
    flex: 1;
}

/* Carrusel */
.carousel-item img {
    border-radius: 10px;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

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

.carousel-caption {
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.carousel-caption h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: titleFadeIn 1s 0.5s ease-out forwards;
}

.carousel-caption h6 {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: subtitleFadeIn 1s 1.5s ease-out forwards;
}

@keyframes titleFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes subtitleFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Navegador - Nuestros Servicios */
.container-nav {
    margin-top: 50px;
}

.card-primary {
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding: 0 20px;
}

.text-card-primary p {
    color: var(--color-text-third);
    letter-spacing: 4px;
    font-size: var(--text-paragraph);
    font-weight: 500;
    margin: 20px;
}

.text-card-primary h1 {
    font-size: var(--text-size-title);
    font-weight: 600;
    color: var(--color-text-primary);
}

.container-box-navPrimary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.box-card-primary {
    max-width: 350px;
    padding: 60px 40px;
    border: 2px solid var(--color-button);
    border-radius: 20px;
    margin: 14px;
    transition: all 0.4s ease;
}

.box-card-primary:hover {
    border: 10px solid transparent;
    box-shadow: var(--box-shadow-primary);
}

.box-card-primary a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.box-card-primary img {
    width: 100px;
}

.box-card-primary h2 {
    font-size: var(--text-tittle_card);
    margin-top: 40px;
    font-weight: 500;
}

.box-card-primary p {
    margin-top: 20px;
    font-size: var(--text-paragraph);
}

/* Otros Elementos del Main */
.cover-n {
    margin: 60px auto 100px;
    text-align: center;
}

.text-cover-n p {
    color: var(--color-text-secundary);
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
}

#carousel2.carousel {
    max-width: 800px;
    margin: 0 auto;
}

#carousel2 .carousel-item img {
    height: 500px;
    object-fit: cover;
}

#carousel2 .carousel-caption {
    bottom: 10px;
    transform: translateX(-50%);
}

#carousel2 .carousel-caption h4 {
    font-size: 20px;
    font-weight: bold;
}

#carousel2 .carousel-caption p {
    font-size: 14px;
}

.nos {
    margin-top: 70px;
    text-align: center;
}

.text-nos h1 {
    font-size: 40px;
    color: var(--color-text-primary);
}

.text-nos h3 {
    font-size: 20px;
    color: var(--color-text-secundary);
}

/* Navegador - Nosotros */
.container-nav-n {
    margin-top: -20px;
    padding-top: 1px;
    padding-bottom: 100px;
}

.card-primary-n {
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding: 0 20px;
}

.container-box-navPrimary-n {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.box-card-primary-n {
    max-width: 350px;
    padding: 60px 40px;
    border: 2px solid var(--color-button);
    border-radius: 20px;
    margin: 14px;
    transition: all 0.3s ease;
}

.box-card-primary-n:hover {
    border: 10px solid transparent;
    box-shadow: var(--box-shadow-primary);
}

.box-card-primary-n a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.box-card-primary-n img {
    width: 100px;
}

.box-card-primary-n h2 {
    font-size: var(--text-tittle_card);
    margin-top: 40px;
    font-weight: 500;
}

.box-card-primary-n p {
    margin-top: 20px;
    font-size: var(--text-paragraph);
}

/* Footer */
footer {
    width: 100%;
    background: #141414;
    padding: 20px 0;
    box-shadow: 0px 4px 15px rgba(0, 200, 245, 0.9);
    flex-shrink: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--color-text-primary);
}

.contact-info p {
    font-size: var(--lowText_font_size);
    color: var(--color-text-secundary);
    margin: 5px 0;
}

.contact-info p strong {
    color: var(--color-text-primary);
}

.contact-info p a {
    color: #0af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info p a:hover {
    color: var(--color-hover);
}

.socialMediaFooter {
    margin: 15px 0;
}

.socialMediaFooter a {
    margin: 0 10px;
    text-decoration: none;
}

.socialMediaFooter img {
    width: 50px;
}

.copyright {
    font-size: 14px;
    color: var(--color-text-secundary);
}

/* Botón de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-btn img {
    width: 70px;
    height: 70px;
}

.whatsapp-btn:hover {
    transform: scale(1.1); /* Efecto de agrandamiento al pasar el cursor */
}

/* Media Queries */
@media (max-width: 1200px) {
    .box-card-primary, .box-card-primary-n {
        max-width: 300px;
        padding: 40px 20px;
    }
    .box-card-primary img, .box-card-primary-n img {
        width: 80px;
    }
    .box-card-primary h2, .box-card-primary-n h2 {
        font-size: 20px;
    }
    .box-card-primary p, .box-card-primary-n p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .navbar {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100%;
        background: #1A1A2E;
        flex-direction: column;
        padding: 20px;
        transition: right 0.3s ease;
        z-index: 2000;
    }
    .navbar.active {
        right: 0;
    }
    .nav-menu {
        flex-direction: column;
        margin: 40px 0;
    }
    .nav-menu li {
        margin: 20px 0;
    }
    .btn_quote {
        margin: 20px 0;
    }
    .socialMedia {
        margin: 20px 0;
    }
    .dropdown-menu {
        position: static;
        background: none;
        box-shadow: none;
    }
    .carousel-caption h3 { font-size: 1.8rem; }
    .carousel-caption h6 { font-size: 1rem; max-width: 80%; }
    .container-box-navPrimary, .container-box-navPrimary-n {
        flex-direction: column;
        align-items: center;
    }
    .box-card-primary, .box-card-primary-n {
        max-width: 100%;
    }
    footer p { font-size: 12px; }
    .socialMediaFooter img { width: 30px; }

    .contact-info p {
        font-size: 14px;
    }
    .socialMediaFooter img {
        width: 30px;
    }
    .copyright {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .carousel-caption h3 { font-size: 1.5rem; }
    .carousel-caption h6 { font-size: 0.9rem; }
    .box-card-primary, .box-card-primary-n {
        padding: 20px 10px;
    }
    .box-card-primary img, .box-card-primary-n img {
        width: 60px;
    }
    .box-card-primary h2, .box-card-primary-n h2 {
        font-size: 18px;
    }
    .box-card-primary p, .box-card-primary-n p {
        font-size: 12px;
    }

    .contact-info p {
        font-size: 12px;
    }
    .socialMediaFooter img {
        width: 25px;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    .whatsapp-btn img {
        width: 30px;
        height: 30px;
    }
}