:root {
    --primary-blue: #0066CC;
    --secondary-blue: #007BFF;
    --light-blue: #67c3f3;
    --ocean-blue: #007BFF;
    --green: #00C853;
    --dark-green: #00A047;
    --white: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-800: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ensure consistent typography across all elements */
*, *::before, *::after {
    font-family: inherit;
}

/* Paragraph color consistency */
p {
    color: #52575C;
}

/* .about-text p inherits color from p selector */

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid var(--green);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: var(--primary-blue);
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: var(--light-blue);
    animation-duration: 0.8s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green);
    margin: 0;
    letter-spacing: -0.5px;
}

.loading-text .blue-text {
    color: var(--primary-blue);
}

.loading-text p {
    color: var(--gray-600);
    font-size: 1rem;
    margin: 0.5rem 0 0 0;
    font-weight: 500;
}

/* Header */
.navbar {
    background: var(--white);
    padding: 0.75rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    min-height: 64px;
}

/* Logo dentro del header al 90% de alto del navbar */
.navbar .navbar-brand img {
    height: 3rem;
    width: auto;
    display: block;
}

.navbar-nav .nav-link {
    color: var(--gray-800) !important;
    font-weight: 500;
    margin: 0 0.75rem;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-1px);
}

/* Hero Banner */
.hero-banner {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 90px;
    display: flex;
    align-items: center;
}

.banner-image-container {
    width: 100%;
    height: calc(100vh - 80px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem; /* Padding lateral para desktop */
    border-radius: 20px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    max-width: 100%;
}

/* Contact Button Section */
.contact-button-section {
    padding: 3rem 0;
    background: var(--white);
}

.btn-contact-main {
    background-color: var(--primary-blue);
    border: none;
    color: var(--white);
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 35px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-contact-main:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
    color: var(--white);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: var(--white);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 3.5rem;
    letter-spacing: -1px;
}

.feature-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: left;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 2rem;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.15);
    border-color: var(--primary-blue);
}

.feature-icon {
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Products Section */
.products-section {
    padding: 5rem 0;
    background: var(--gray-100);
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--primary-blue) 100%);
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4.5rem;
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(255,255,255,0.2), transparent);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border-radius: 8px; */
}

.product-info {
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-description {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: var(--white);
}

.about-content {
    align-items: center;
}

/* .about-text styles removed to respect Bootstrap columns */

.about-logo {
    text-align: center;
    /* Removed flex properties to respect Bootstrap columns */
}

.about-logo .logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green);
}

.about-logo .logo-text img {
    max-width: 100%;
    height: auto;
    width: 90%;
    object-fit: contain;
}

.about-logo .logo-text .blue-text {
    color: var(--primary-blue);
}

/* Social Section - Custom styles only for what Bootstrap cannot handle */
.social-button {
    background: var(--green);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
    transition: all 0.3s ease;
}

.social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
}

.social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--green);
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
}

.footer-logo .blue-text {
    color: var(--white);
}

.footer-contact {
    text-align: right;
}

.contact-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--green);
    text-decoration: underline;
}

/* Responsive Design */

/* Tablet Styles */
@media (max-width: 991.98px) and (min-width: 768px) {
    /* Ensure consistent typography across all elements */
    body, 
    .navbar-nav .nav-link,
    .btn-contact-main,
    .section-title,
    .feature-title,
    .feature-description,
    .product-title,
    .product-description,
    .about-text p,
    .footer-logo,
    .contact-item {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .banner-image-container {
        padding: 0 1.5rem; /* Padding reducido para tablet */
        height: calc(90vh - 80px);
    }

    .banner-image {
        border-radius: 15px;
    }

    .navbar-nav .nav-link {
        margin: 0 0.5rem;
    }

    .about-logo .logo-text img {
        max-width: 100%;
        height: auto;
        width: 80%;
        object-fit: contain;
    }
}

/* Mobile Styles */
@media (max-width: 767.98px) {
    /* Ensure consistent typography across all elements */
    body, 
    .navbar-nav .nav-link,
    .btn-contact-main,
    .section-title,
    .feature-title,
    .feature-description,
    .product-title,
    .product-description,
    .about-text p,
    .footer-logo,
    .contact-item {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .hero-banner {
        min-height: 90vh;
        padding-top: 80px;
    }

    .banner-image-container {
        height: calc(90vh - 80px);
        padding: 0 1rem; /* Padding mínimo para móvil */
    }

    .banner-image {
        border-radius: 10px;
    }

    .contact-button-section {
        padding: 2rem 0;
    }

    .btn-contact-main {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-icon {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .product-image {
        height: 350px;
        font-size: 3.5rem;
    }

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

    .product-info {
        padding: 1.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .about-content {
        text-align: center;
    }
    
    .about-logo {
        margin-bottom: 2rem;
    }

    .about-logo .logo-text img {
        max-width: 100%;
        height: auto;
        width: 80%;
        object-fit: contain;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }

    /* Reducir altura mínima del navbar en móvil y mantener logo al 90% */
    .navbar { min-height: 56px; }
    .navbar .navbar-brand img { height: 3rem }
}

/* Small Mobile Styles */
@media (max-width: 576px) {
    /* Ensure consistent typography across all elements */
    body, 
    .navbar-nav .nav-link,
    .btn-contact-main,
    .section-title,
    .feature-title,
    .feature-description,
    .product-title,
    .product-description,
    .about-text p,
    .footer-logo,
    .contact-item {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .hero-banner {
        padding: 80px 0 2rem 0;
    }

    .banner-image-container {
        height: calc(85vh - 80px);
        padding: 0 0.5rem; /* Padding mínimo para móviles pequeños */
    }

    .banner-image {
        border-radius: 8px;
    }

    .contact-button-section {
        padding: 1.5rem 0;
    }

    .btn-contact-main {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .product-card {
        margin-bottom: 1.5rem;
    }


    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .loading-text h3 {
        font-size: 1.5rem;
    }

    .loading-spinner {
        width: 60px;
        height: 60px;
    }

    .spinner-ring:nth-child(2) {
        width: 45px;
        height: 45px;
        top: 7.5px;
        left: 7.5px;
    }

    .spinner-ring:nth-child(3) {
        width: 30px;
        height: 30px;
        top: 15px;
        left: 15px;
    }
}

/* Error Pages Styles */
.error-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px 0;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
}

.error-content {
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

.error-number {
    font-size: 8rem;
    font-weight: 900;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.error-4, .error-5 {
    color: var(--primary-blue);
    text-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.error-0 {
    color: var(--green);
    text-shadow: 0 4px 8px rgba(0, 200, 83, 0.3);
    transition: all 0.3s ease;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.error-description {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.error-actions {
    margin-bottom: 2rem;
}

.error-search {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.error-links {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: 15px;
}

.error-link {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--white);
    color: var(--gray-800);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    font-weight: 500;
}

.error-link:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.error-contact {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: 15px;
}

.error-contact-item {
    display: block;
    padding: 1.5rem 1rem;
    background: var(--white);
    color: var(--gray-800);
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    text-align: center;
    height: 100%;
}

.error-contact-item:hover {
    background: var(--green);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.3);
}

.error-contact-item i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.error-contact-item span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.error-contact-item small {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
}

.error-tech {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: 15px;
}

.error-details {
    background: var(--white);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid var(--gray-200);
}

.error-summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-800);
    padding: 0.5rem 0;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.error-summary:hover {
    color: var(--primary-blue);
}

.error-tech-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.error-tech-content p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Mobile Responsive for Error Pages */
@media (max-width: 767.98px) {
    .error-number {
        font-size: 5rem;
        gap: 0.5rem;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-description {
        font-size: 1rem;
    }

    .error-content {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    .error-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .error-actions .btn:last-child {
        margin-bottom: 0;
    }

    .error-contact-item {
        padding: 1rem 0.5rem;
    }

    .error-contact-item i {
        font-size: 1.5rem;
    }
}