/* Import Nunito from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

/* Reset and Global Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}


body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    background-color: #fffcfc;
background-image: url("https://www.transparenttextures.com/patterns/exclusive-paper.png");
/* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
}

section {
    min-height: 100vh;
}

h1, h2, h3, h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: "Nunito", serif;
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: calc(1.375rem + 1.5vw); }
h2 { font-size: calc(1.325rem + 0.9vw); }
h3 { font-size: calc(1.3rem + 0.6vw); }
h4 { font-size: calc(1.275rem + 0.3vw); }

@media (min-width: 1200px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; color: #0d6efd; }
    h4 { font-size: 1.5rem; }
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: rgba(204, 0, 0, 0.7);
    text-decoration: underline;
}

a:hover {
    color: #0a58ca;
}

/* Container */
.container {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background-color: #0d6efd;
    color: white;
    z-index: 1000;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding-top: 0;
    padding-bottom: 0;
}

#telefonoHead {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.navbar p {
    color: white;
    font-weight: 100;
    margin-bottom: 0;
    text-transform: uppercase;
    margin-right: 10px;
}

.navbar-brand {
    padding: 0.3125rem 0;
    margin-right: 1rem;
    font-size: 1.25rem;
    text-decoration: none;
    color: #fff;
}

.navbar-brand:hover {
    color: rgb(223, 223, 223);
}

.navbar-nav {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.75);
}

.navbar-nav .nav-link.active {
    color: #fff;
    border-bottom: 2px solid #fff;
    padding-bottom: 9px;
}

@media (max-width: 992px) {
    html {
        scroll-snap-type: none;
    }
    .navbar-nav .nav-link {
        text-align: center;
    }
    .navbar-nav .nav-link:hover {
        background-color: #0856c9;
    }
    .navbar-nav .nav-link.active {
        color: #fff;
        border: none;
    }
}

@media (max-width: 768px) {
    html {
        scroll-snap-type: none;
    }
    .content {
        background-image: url('../assets/introMobile.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
    }
    #telefonoHead p { display: none; }
    .aliados {
        height: auto !important;
        padding-top: 50px;
        padding-bottom: 50px;
    }
    #history {
        flex-direction: column;
    }
    #history .card img {
        width: 100%;
    }
    .product-card img {
        width: 100% !important;
        margin:0px !important;
      }
    .contenedorLogos {
        flex-direction: column;
        overflow-x: hidden !important;
        overflow-y: hidden;
        padding-left: 0px !important;
        padding-right: 0px !important;
        /* height: 250px; */
    }
}

/* Slider/Hero Section */
.slider {
    background-repeat: no-repeat;
    background-size: auto auto;
    background-position: center center;
    width: 100%;
    height: 90vh; /* Override section height */
    animation: slide 30s infinite;
    animation-timing-function: ease-in;
}

#home {
    scroll-snap-align: start;
}

.hero-content {
    max-width: 500px;
}

.hero-content .logo-img {
    max-width: 250px;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-top: -20px;
    margin-bottom: 0;
    text-align: center;
    color: #32cd32;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-content h4 {
    color: #ffffff;
    text-align: center;
    margin: 0 0 20px 0;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: lighter;
    text-align: center;
}

.cta-button {
    padding: 1rem 2rem;
    background-color: #ffc107;
    color: #212529;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    display: block;
    margin: 0 auto;
}

.cta-button:hover {
    background-color: #e0a800;
}

.scroll-down {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 0;
}

.scroll-down img {
    width: 100px;
}

.card {
    background-color: rgba(255, 255, 255, 0.50)
}

@keyframes slide {
    0% { background-image: url('../assets/intro1.jpg'); background-position-x: -2vw; }
    20% { background-image: url('../assets/intro1.jpg'); background-position-x: 0vw; }
    20.01% { background-image: url('../assets/intro2.jpeg'); background-position-x: 0vw; }
    40% { background-image: url('../assets/intro2.jpeg'); background-position-x: -2vw; }
    40.01% { background-image: url('../assets/intro3.jpg'); background-position-x: -2vw; }
    60% { background-image: url('../assets/intro3.jpg'); background-position-x: 0vw; }
    60.01% { background-image: url('../assets/intro4.jpeg'); background-position-x: 0vw; }
    80% { background-image: url('../assets/intro4.jpeg'); background-position-x: -2vw; }
    80.01% { background-image: url('../assets/intro5.jpg'); background-position-x: -2vw; }
    100% { background-image: url('../assets/intro5.jpg'); background-position-x: 0vw; }
}

@media (max-width: 900px) {
    .slider { background-size: auto 110%; }
}

@media (max-width: 576px) {
    .slider {
        background-size: auto 110%;
        background-position: center;
    }
}

/* Features Section */
#features {
    scroll-snap-align: start;
}

.features {
    text-align: center;
    position: relative;
}

#fondo-features {
    height: 60%;
    width: 100%;
    background-color: #0d6efd;
    border-bottom-left-radius: 100% 30%;
    border-bottom-right-radius: 100% 30%;
    position: absolute;
    z-index: -1;
}

.features .container {
    padding-top: 70px;
}

.features h2 {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 500;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: white;
    padding: 1.5rem;
    border: 1px solid #0d6efd;
    border-radius: 0.5rem;
}

.features .fa-solid {
    font-size: 40px;
    margin-bottom: 10px;
    color: #0d6efd;
}

/* Categories Section */
#categories {
    scroll-snap-align: start;
}

.categories {
    padding: 5rem 5%;
    text-align: center;
}

.categories .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.categories h2 {
    color: #0d6efd;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.categories .fa-solid {
    font-size: 40px;
    margin-bottom: 10px;
    color: #0d6efd;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background-color: #f8f8f8ad;
    border: 1px solid #d5d6dd;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.category-card:hover {
    transform: translateY(-10px);
    background-color: #fff;
}

.category-card img {
    max-width: 60px;
    margin-bottom: 10px;
}

.category-card a {
    text-decoration: none;
    color: #0d6efd;
    padding: 2rem;
    display: block;
}

.category-card h3 {
    margin-bottom: 1rem;
    color: #0d6efd;
}

.category-card p {
    color: #666;
}

/* Partners/Delivery Section */
#partners {
    scroll-snap-align: start;
}

.partners {
    background-color: #0d6efd;
    text-align: center;
}

.delivery {
    background-image: url('../assets/delivery.jpg'); /* Restored background image */
    background-size: cover;
    background-position: center;
    height: 45vh;
    width: 100%;
    color: white;
    text-align: center;
}

.delivery .blackout {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.partners h2 {
    color: white;
    font-weight: bold;
    font-size: 2rem;
}

.partners .lead {
    color: white;
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 0;
    padding: 0 1rem;
}

.aliados {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.contenedorLogos {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    overflow-x: auto;
    scrollbar-color: #0053ce transparent;
    scrollbar-width: thin;
}

.contenedorLogos img {
    max-width: 350px;
    max-height: 50px;
    padding: 0 20px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.contenedorLogos img:hover {
    transform: scale(1.1);
}

/* Contact Section */
#contact {
    scroll-snap-align: start;
}

.contact {
    padding: 5rem 5%;
    text-align: center;
}

.contact h2 {
    color: #0d6efd;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contact p a {
    color: #0d6efd;
    text-decoration: none;
}

.contact p a:hover {
    text-decoration: underline;
}

.map {
    margin: 2rem 0;
}

/* Footer */
footer {
    background-color: #323232;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    section { height: auto; } /* Override 100vh for smaller screens */
    .features { padding-bottom: 25px; }
    #fondo-features {
        border-radius: 0;
        height: 100%;
    }
    .contenedorLogos img { max-height: 100px; }
    .delivery { height: 350px; }
    .aliados { 
        height: auto;
        padding-top: 50px;
     }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #0053ce;
}

/* AOS Animation */
[data-aos] {
    opacity: 0;
    transition: all 0.3s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}




#productos h2 {
    color: #0d6efd;
}

#productos .logo-catalogo img {
    max-width: 250px;
}

.product-card img {
    max-width: 100%; /* Reduced from 200px for better fit */
    align-self: center;
    margin-top: 0px;
}

.product-card .card-body {
    text-align: center; /* Center-align text for consistency */
}


@media (max-width: 576px) {
    .product-card img {
        max-width: 100%; /* Slightly smaller on phones */
    }
    .product-card .card-body {
        padding: 0.75rem; /* Tighter padding on small screens */
    }
    .product-card h3 {
        font-size: 1.25rem; /* Slightly smaller titles */
    }
    .product-card p {
        font-size: 0.9rem; /* Compact text */
    }
}


.modern-table {
    border-radius: 8px;
    overflow: hidden; /* Ensures rounded corners apply to the table */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.modern-table thead th {
    background-color: #0d6efd; /* Matches your primary color */
    color: white;
    font-weight: 600;
    text-align: center;
    border: none; /* Clean look */
}

.modern-table tbody tr {
    transition: background-color 0.2s ease; /* Smooth hover effect */
}

.modern-table tbody tr:hover {
    background-color: #e9f1ff; /* Light blue hover state */
}

.modern-table td, .modern-table th {
    padding: 12px; /* Comfortable spacing */
    vertical-align: middle;
    text-align: center; /* Centered for clarity */
}

.modern-table tbody td {
    border-color: #dee2e6; /* Soft gray borders */
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .modern-table th, .modern-table td {
        font-size: 0.9rem; /* Slightly smaller text on phones */
        padding: 8px; /* Tighter padding */
    }
}


#history {
    scroll-snap-align: start;
}
#history .card img {
    width: 100%;
}

.logoAboutUs {
    max-width: 250px;
    margin-bottom: 1rem;
}

.phylosophy-list {
    display: flex;
    flex-direction: column;
  align-items: flex-start;
}

.phylosophy-list li{
    display: flex;
  align-items: flex-start;
}

.phylosophy-list li p{
    text-align: left;
    line-height: 1.5em;
}

.phylosophy-list .fa-solid {
    font-size: 15px;
    margin-top: 5px;
}








