/* Variables globales */
:root {
    /* Colores base */
    --primary-color: #0066cc;
    --secondary-color: #001f3f;
    --accent-color: #00c7b7;
    --dark-color: #121212;
    --light-color: #f8f9fa;
    
    /* Colores de Marca Adicionales */
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #1a1a1b;
    --border-color: #e2e8f0;
    --highlight-color: #0066cc;

    /* Otras variables */
    --transition-speed: 0.3s;
    --border-radius: 15px;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color);
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Navbar personalizada */
.navbar {
    padding: 0.8rem 1rem;
    transition: all var(--transition-speed);
}

.navbar-dark {
    background: linear-gradient( 135deg, var(--secondary-color), var(--dark-color) ) !important;
}

.navbar-brand img {
    transition: transform var(--transition-speed);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    margin: 0 0.2rem;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: color var(--transition-speed);
}

    .nav-link:hover {
        color: white !important;
    }

    .nav-link::after {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: var(--accent-color);
        transition: width var(--transition-speed);
    }

    .nav-link:hover::after {
        width: 100%;
    }

/* Footer personalizado */
.footer {
    background: linear-gradient( 135deg, var(--secondary-color), var(--dark-color) ) !important;
    padding: 2rem 0;
}

/* Secciones y contenedores */
.section {
    padding: 1rem 0;
}

.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: calc(1.5rem + 1vw);
}

@media (min-width: 992px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3.5rem;
    }
}

    .section-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -10px;
        width: 40px;
        height: 3px;
        background-color: var(--accent-color);
        transition: width var(--transition-speed);
    }

    .section-title.text-center::after {
        left: 50%;
        transform: translateX(-50%);
    }

/* Ajustes de Sección Responsivos */
.section {
    padding: 2rem 0;
}

@media (max-width: 767px) {
    .section {
        padding: 1.5rem 0;
    }
}

/* Tarjetas y elementos */
.card {
    border: none;
    border-radius: var( --border-radius ); /* Usando la variable para bordes redondeados */
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all var(--transition-speed);
}

    .btn-primary:hover {
        background-color: #0055a5;
        border-color: #0055a5;
        transform: translateY(-2px);
    }

/* Animaciones y efectos */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para el carrusel */
.carousel-item {
    transition: transform 0.6s ease-in-out;
    border-radius: var( --border-radius ); /* Bordes redondeados para los items del carrusel */
    overflow: hidden;
}

.carousel-inner {
    border-radius: var( --border-radius ); /* Bordes redondeados para el contenedor del carrusel */
    overflow: hidden;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.carousel-item .text-center {
    position: relative;
    z-index: 2;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-item img {
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

/* Utilidades */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary-gradient {
    background: linear-gradient( 135deg, var(--primary-color), var(--secondary-color) );
}

.text-accent {
    color: var(--accent-color) !important;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Hero section */
.hero {
    position: relative;
    padding: 3rem 0; /* Reducido de 6rem a 3rem */
    background: url("/images/humo.png");
    /* background: linear-gradient(rgba(0, 31, 63, 0.8), rgba(0, 31, 63, 0.9)),
    url("/images/hero-bg.jpg"); */
    /* background: linear-gradient(rgba(0, 31, 63, 0.8), rgba(0, 31, 63, 0.9)),
    url("/images/hero-bg.jpg"); */
    background-size: cover;
    background-position: center;
    color: white;
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-logo {
    max-width: 250px !important; /* Aumentado de 200px a 250px */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    animation: pulseLogo 3s infinite alternate;
    transition: transform 0.5s ease;
}

    .hero-logo:hover {
        transform: scale(1.05);
    }

@keyframes pulseLogo {
    from {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }

    to {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
    }
}

.hero h1 {
    font-size: 2.5rem; /* Reducido de 3rem a 2.5rem */
    font-weight: 700;
    margin-bottom: 1rem; /* Reducido de 1.5rem a 1rem */
}

.hero p {
    font-size: 1.1rem; /* Reducido de 1.25rem a 1.1rem */
    margin-bottom: 1.5rem; /* Reducido de 2rem a 1.5rem */
    opacity: 0.9;
}

/* Productos */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var( --border-radius ); /* Bordes redondeados para las tarjetas de productos */
    overflow: hidden;
}

    .product-card .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .product-card .card-text {
        flex: 1;
    }

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Servicios */
.service-item {
    text-align: center;
    padding: 2rem;
    border-radius: var( --border-radius ); /* Bordes redondeados para los items de servicios */
    background-color: white;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

    .service-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    font-size: 2rem;
}

/* Contacto */
.contact-info {
    padding: 2rem;
    background-color: white;
    border-radius: var( --border-radius ); /* Bordes redondeados para la información de contacto */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form {
    padding: 2rem;
    background-color: white;
    border-radius: var( --border-radius ); /* Bordes redondeados para el formulario de contacto */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Responsive design */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
        text-align: center;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-logo {
        max-width: 180px !important;
    }

    .d-flex.justify-content-center.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
    }

    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .card-title {
        font-size: 1.25rem;
    }
}
