:root {
    --casmiri-green: #009246;
    --casmiri-red: #ce2b37;
    --casmiri-dark: #212529;
}

body {
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.btn-casmiri {
    background-color: var(--casmiri-green);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

    .btn-casmiri:hover {
        background-color: #007a3b;
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 60px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--casmiri-dark);
    margin: 0 10px;
    transition: color 0.3s;
}

    .navbar-nav .nav-link:hover {
        color: var(--casmiri-green);
    }

    .navbar-nav .nav-link.active {
        color: var(--casmiri-green);
    }

.language-selector {
    border-left: 1px solid #dee2e6;
    padding-left: 15px;
}

    .language-selector .nav-link {
        padding: 5px 10px;
        font-size: 0.85rem;
        cursor: pointer;
    }

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/slideshow.png') center center/cover no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hero:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0,146,70,0.3) 0%, rgba(206,43,55,0.3) 100%);
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 20px;
}

    .section-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background-color: var(--casmiri-green);
    }

    .section-title.text-start:after {
        left: 0;
        transform: none;
    }

.about-img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

    .value-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    .value-card .card-header {
        background-color: var(--casmiri-green);
        color: white;
        border: none;
        font-weight: bold;
        text-align: center;
        padding: 15px;
    }

.value W icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--casmiri-green);
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
    color: var(--casmiri-red);
}

.product-img {
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

    .product-img:hover {
        transform: scale(1.05);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.card-img-top {
    transition: transform 0.5s;
    height: 250px;
    object-fit: cover;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.footer {
    background-color: var(--casmiri-dark);
    color: white;
    padding: 50px 0 0;
}

    .footer h5 {
        color: white;
        margin-bottom: 20px;
        font-weight: 600;
        position: relative;
        padding-bottom: 10px;
    }

        .footer h5:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 2px;
            background-color: var(--casmiri-green);
        }

    .footer p, .footer a {
        color: #adb5bd;
        transition: color 0.3s;
    }

        .footer a:hover {
            color: white;
            text-decoration: none;
        }

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
}

    .social-icons a:hover {
        background-color: var(--casmiri-green);
        transform: translateY(-3px);
    }

.footer-bottom {
    background-color: #1a1e21;
    padding: 20px 0;
    margin-top: 40px;
}

.flag-colors {
    display: flex;
    margin: 20px auto;
    width: 100%;
    max-width: 300px;
}

.flag-color {
    height: 5px;
    flex-grow: 1;
}

.flag-green {
    background-color: var(--casmiri-green);
}

.flag-white {
    background-color: #ffffff;
}

.flag-red {
    background-color: var(--casmiri-red);
}

.animate-fade-in {
    animation: fadeIn 1s ease;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Estilos para el selector de idiomas */
.language-bar {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.language-selector-container {
    display: flex;
    gap: 0.5rem;
}

.language-btn {
    background: transparent;
    border: none;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .language-btn:hover {
        background-color: rgba(0,0,0,0.05);
        color: #333;
    }

    .language-btn.active {
        background-color: #38b000;
        color: white;
    }

/* Estilos para el footer */
.footer {
    background-color: #212529;
    color: #adb5bd;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .social-icon:hover {
        background-color: #38b000;
        color: white;
        transform: translateY(-3px);
    }

.footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

    .footer-link:hover {
        color: white;
        transform: translateX(5px);
    }

.contact-icon {
    color: #38b000;
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.newsletter-form .form-control {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.1);
    color: white;
}

    .newsletter-form .form-control::placeholder {
        color: #adb5bd;
    }

.newsletter-form .btn {
    background-color: #38b000;
    border-color: #38b000;
}

.flag-colors {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 6px;
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
}

.flag-color {
    height: 100%;
    flex: 1;
}

.flag-green {
    background-color: #38b000;
}

.flag-white {
    background-color: white;
}

.flag-red {
    background-color: #d00000;
}

.debug-info {
    font-size: 0.85rem;
}

/* Botón principal de Casmiri */
.btn-casmiri {
    background-color: #38b000;
    border-color: #38b000;
    color: white;
    transition: all 0.3s ease;
}

    .btn-casmiri:hover {
        background-color: #2d8a00;
        border-color: #2d8a00;
        color: white;
    }
/* Estilos del menú de navegación */
.navbar {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar.sticky-top {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .nav-link {
    position: relative;
    font-weight: 500;
    color: #333;
    margin: 0 0.2rem;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

    .navbar .nav-link:hover {
        color: #38b000;
        background-color: rgba(56, 176, 0, 0.05);
    }

    .navbar .nav-link.active {
        color: #38b000;
        font-weight: 600;
    }

        .navbar .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0.8rem;
            right: 0.8rem;
            height: 2px;
            background-color: #38b000;
            border-radius: 2px;
        }

/* Estilos para dispositivos móviles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }

    .navbar .nav-link {
        margin: 0.3rem 0;
    }

        .navbar .nav-link.active::after {
            left: 0;
            right: 0;
        }
}

/* Efectos de scroll */
.navbar-scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

    .navbar-scrolled .navbar-brand img {
        height: 35px;
    }

/* Agregar script JS para efectos de scroll */
/* Nota: Agrega esto en un archivo JS separado o en una sección script en el layout */
/*
document.addEventListener('DOMContentLoaded', function() {
    window.addEventListener('scroll', function() {
        const navbar = document.querySelector('.navbar');
        if (window.scrollY > 50) {
            navbar.classList.add('navbar-scrolled');
        } else {
            navbar.classList.remove('navbar-scrolled');
        }
    });
});
*/

/* Estilos para la pantalla de carga */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: 'Montserrat', sans-serif;
}

    .loading-container .spinner-border {
        width: 3rem;
        height: 3rem;
        color: #38b000;
    }

    .loading-container p {
        font-size: 1.2rem;
        color: #666;
    }

/* Efecto de fadeout para la pantalla de carga cuando Blazor está listo */
#app.loaded .loading-container {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Estilos generales del cuerpo */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

/* Estilos de tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.display-3 {
    font-weight: 700;
}

.lead {
    font-weight: 400;
}

/* Enlaces generales */
a {
    color: #38b000;
    transition: color 0.3s ease;
}

    a:hover {
        color: #2d8a00;
        text-decoration: none;
    }

/* Sección de página */
.section-title {
    position: relative;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

    .section-title::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 80px;
        height: 3px;
        background-color: #38b000;
        transform: translateX(-50%);
    }

/* Contact Form Validation Styles */
.validation-message {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control:invalid,
.form-select:invalid {
    border-color: #dc3545;
}

.form-control:valid,
.form-select:valid {
    border-color: #28a745;
}

.contact-icon {
    color: #28a745;
}
/* Values Page Styles */
.value-icon {
    font-size: 2.5rem;
}
/* Products Page Styles */
.product-img-container {
    position: relative;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: #ffc107;
    color: #000;
    border-radius: 3px;
}

    .product-badge.bg-success {
        background-color: #28a745;
        color: #fff;
    }

.feature-icon {
    font-size: 1rem;
}

.feature-icon-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(40, 167, 69, 0.1);
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    left: 20px;
}
/* Contact Page Social Icons */
.contact-social-icons {
    display: flex;
    align-items: center;
}

.contact-social-icon {
    font-size: 1.5rem;
    color: #28a745;
    transition: color 0.3s ease;
}

    .contact-social-icon:hover {
        color: #1e7e34;
        text-decoration: none;
    }

/* Contact Page Enhanced Styles */
.contact-form-card, .contact-info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .contact-form-card:hover, .contact-info-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
    }

    .contact-form-card .form-control-lg,
    .contact-form-card .form-select-lg {
        border-radius: 0 0.375rem 0.375rem 0 !important;
    }

    .contact-form-card .input-group-text {
        background-color: #f8f9fa;
        border-right: none;
        border-radius: 0.375rem 0 0 0.375rem;
    }

.map-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

    .map-responsive iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }
/* Product Detail Page Styles */
.product-social-icons {
    display: flex;
    align-items: center;
}

.product-social-icon {
    font-size: 1.5rem;
    color: #28a745;
    transition: color 0.3s ease;
}

    .product-social-icon:hover {
        color: #1e7e34;
        text-decoration: none;
    }

.carousel-control-prev,
.carousel-control-prev {
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
}

.carousel-indicators {
    bottom: -50px;
}

    .carousel-indicators button {
        background-color: #28a745;
    }

/* Video Background Section */
.video-section {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}
/* Footer Contact Info */
.footer .contact-info a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .footer .contact-info a:hover {
        color: #28a745;
    }

.map-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

    .map-responsive iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* Video Responsive */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

    .video-responsive iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* Video vertical responsive centrado */
.video-vertical-responsive {
    position: relative;
    width: 100%;
    max-width: 400px; /* Limita el ancho máximo */
    margin: 0 auto; /* Centra el contenedor */
    aspect-ratio: 9/16; /* Proporción vertical como stories */
}

    .video-vertical-responsive video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0.375rem;
        display: block;
    }

/* Para móviles, usa más ancho */
@media (max-width: 768px) {
    .video-vertical-responsive {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .video-vertical-responsive {
        max-width: 250px;
    }
}