:root{
    --finder-overlap: clamp(32px, 6vw, 88px);
    --finder-mobile-offset: 0px;
}
    
/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* General Styles */
body {
    line-height: 1.6;
    color: #1a3b6d;
    background-color: #FFFFFF; /* White background */
}

::selection {
    background-color: rgba(255, 193, 7, 1); /* Highlight background color */
    color: #fff;              /* Text color while highlighted */
}

/* Secondary Navigation Bar */
.secondary-nav {
    color: #1a3b6d;
    background-color: #FFFFFF; /* White background */
    padding: 8px 40px;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for separation */
}

.secondary-nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    color: #1a3b6d;
}

.secondary-nav-links li {
    position: relative;
}

.secondary-nav-links li a {
    text-decoration: none;
    color: #1a3b6d; /* Dark gray for readability */
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.secondary-nav-links li a:hover {
    color: rgba(255, 193, 7, 1); /* Yellow hover effect */
}

.language-switcher {
    margin-left: auto;
}

.language-switcher a {
    color: #1a3b6d; /* Dark gray */
    font-weight: 500;
    text-decoration: none;
    padding: 0 5px;
    font-size: 12px;
    transition: color 0.3s;
}

.language-switcher a:hover {
    color: rgba(255, 193, 7, 1); /* Yellow hover effect */
}

.language-switcher a.active {
    color: rgba(255, 193, 7, 1); /* Yellow for active language */
    font-weight: bold;
}

/* Main Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #FFFFFF; /* White background */
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    position: sticky;
    top: 34px;
    z-index: 100;
    color: #1a3b6d;
}

.hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #1a3b6d;
    cursor: pointer;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
}

.logo-image[src=""], .logo-image:not([src]) {
    background-color: #f5f5f5;
    width: 150px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
    text-align: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    color: #1a3b6d;
}

.nav-links li {
    position: relative;
}

.nav-links > li > a {
    text-decoration: none;
    color: #1a3b6d;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 15px;
    transition: color 0.3s;
}

.nav-links > li > a:hover {
    color: rgba(255, 193, 7, 1);
}


.dropbtn.active{
    color: rgba(255, 193, 7, 1);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    color: #1a3b6d;
}

.dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FFFFFF;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    margin-top: 5px;
    color: #1a3b6d;
}

.dropdown-content a {
    color: #1a3b6d;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: rgba(255, 193, 7, 0.1);
    color: #1a3b6d;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.nav-links > li > a.activeLonely {
    color: rgba(255, 193, 7, 1);
}

/* home */
/* Hero Section */

.finder_section{
  position: relative;
  z-index: 5;
  margin-top: calc(-1 * var(--finder-overlap) + var(--finder-mobile-offset));
  margin-bottom: calc(var(--finder-overlap) - var(--finder-mobile-offset));
  background: transparent;
  padding: 0;
}

.finder_section2{
    margin-top: 30px;
    margin-bottom: 30px;
}


.hero {
    position: relative;
    height: 600px;
    background: url('/images/logos/fabric.webp') no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1a3b6d;
    position: relative;
    width: 100%;
    padding-bottom: calc(var(--finder-overlap) + 12px);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.1); */
    background: linear-gradient(to top, rgba(255,255,255,0) 60%, #fff 100%);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 85%, #fff 100%);
    /* z-index: -1; */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); */
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); */
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgba(255, 193, 7, 1);
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: #1a3b6d;
    color: #FFFFFF;
}

/* General Section Styles */
.section {
    padding: 80px 0;
    width: 100%;
}

.section-content {
    max-width: 1200px; /* Center content */
    margin: 0 auto; /* Center the content */
    padding: 0 40px; /* Add padding inside the content area */
}

/* About Us Section */
#about-us {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between items */
    background-color: #FFFFFF; /* White */
    margin-top: 50px;
    color: #1a3b6d;
    text-align: center;
}

#about-us h1 {
    padding-bottom: 20px;
    text-align: center;
}

.mission_container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mission_vision{
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.mission_text, .vision_text {
    flex: 1;
    width: 50%;
}

.mission_text h2, .vision_text h2 {
    margin-bottom: 15px;
}

.mission_text p, .vision_text p {
    text-align: justify;
}

/* Sustainability Team Section */
.sustainability-team {
    color: #1a3b6d;
    padding: 80px 0;
    background-color: #F9F9F9; /* Light gray */
    width: 100%; /* Ensure full width */
}

.sustainability-container {
    color: #1a3b6d;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Space between items */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Add some horizontal padding for better mobile display */
}

.sustainability-content {
    flex: 1; /* Take up remaining space */
    text-align: center; /* Center the content horizontally */
    color: #1a3b6d;
}

.sustainability-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.sustainability-content p {
    font-size: 16px;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto; /* Push the text to the right */
    margin-right: auto; /* Push the text to the left */
}

.sustainability-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 193, 7, 1);
    color: #1a3b6d;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.sustainability-link:hover {
    background-color: #1a3b6d;
    color: #FFFFFF;
}

.sustainability-image {
    flex: 1; /* Take up remaining space */
    max-width: 50%; /* Limit image width */
}

.sustainability-image img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Scale image to fit without distortion */
    display: block;
}

/* Certifications Section */
#certifications {
    text-align: center;
    background-color: #FFFFFF; /* White */
    color: #1a3b6d;
}

#certifications h2{
    padding-bottom: 20px;
}

/* Product_line Section */
#product_line{
    text-align: center;
    background-color: #F9F9F9;
}

#product_line h2{
    padding-bottom: 40px;
}

#product_line_cards{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
}
.product_line_item{
    padding-right: 20px;
}

.line-icon{
    width: 60px;
    height: 60px;
    color: rgba(255, 193, 7, 1);
    /* margin-bottom: 10px; */
}

#representation h2{
    padding-bottom: 20px;
}

/* representations Section */
#representation{
    text-align: center;
    /* background-color: #F9F9F9; */
}

#representation h2{
    padding-bottom: 20px;
}

/* News Section */
#news {
    background-color: #F0F8FF; /* Very light blue */
}

/* Certifications Grid */
.grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    width: 150px;
    height: 150px; /* Fixed height to ensure images fit well */
    padding: 0; /* Remove padding since it's just an image */
    background-color: #FFFFFF; /* White background for the card */
    border-radius: 5px;
    overflow: hidden; /* Ensure image stays within card bounds */
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Scale image to fit without distortion */
    display: block;
}

/* Footer */
footer {
    background-color: #333; /* Dark gray like Bozzetto */
    color: #FFFFFF;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
}

.footer_container{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    text-align: left;
}

.footer_closing{
    margin-top: 40px;
}

.footer_contact a{
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 5px;
}

.footer_closing a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
}

.footer_links li {
    margin-bottom: 10px;
    list-style: none;
}

.footer_links li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
}

/*About Us *********************/
/*submenu */
.submenu {
    height: 180px;
    background: url('/images/logos/fabric.webp') no-repeat center/cover;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1a3b6d;
    position: relative;
    width: 100%;
    font-size: 25px;
}

.submenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.1); */
    background: linear-gradient(to top, rgba(255,255,255,0) 60%, #fff 100%);
}

.submenu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 85%, #fff 100%);
    /* z-index: -1; */
}

/* chemistry */
.chemistry{
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.main_chemistry{
    margin: 0 10% 0 10%;
}

.main_chemistry h1{
    padding-bottom: 20px;
}

.main_chemistry h1 span{
    background-color: rgba(255, 193, 7, 1);
    color: #fff;
    padding: 5px 5px 5px 5px;
}

.main_chemistry p{
    padding-bottom: 20px;
}

/* about_us section */
.about_us{
    background-color: #F9F9F9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.about_container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 40px;
    flex-wrap: wrap;
    margin: 0 10% 0 10%;
}

.img_slider {
    flex: 1; 
    max-width: 50%;
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 45%
}

.about_text {
    flex: 1; /* Takes up equal space (half) */
    max-width: 50%; /* Ensures it doesn't exceed half */
}

.img_slider img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Smooth fade transition */
    animation: fadeSlider 10s infinite;
}

.img_slider img:nth-child(1) {
    opacity: 1; /* Start visible */
    animation-delay: 5s; /* Delay to sync with cycle; adjust if needed */
}

.img_slider img:nth-child(2) {
    animation-delay: 0s; /* Now second starts first in cycle */
}

input[type="text"],
input[type="email"],
textarea {
    border: 1px solid #ccc;   /* default border */
    padding: 8px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: 2px solid rgba(255, 193, 7, 1); /* custom outline color */
    border-color: #ccc;         /* keep border unchanged if desired */
}


@keyframes fadeSlider {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 1; /* Fade in quickly */
    }
    45% {
        opacity: 1; /* Stay visible */
    }
    50% {
        opacity: 0; /* Fade out */
    }
    100% {
        opacity: 0; /* Remain hidden until next cycle */
    }
}

/* timeline */

.timeline-header {
    text-align: center;
    margin-bottom: 60px; /* Space before timeline starts */
    position: relative;
    z-index: 2;
}

.timeline-header h2 {
    font-size: 48px; /* Large title */
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-header p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-section {
    position: relative;
    padding: 60px 0;
    background-color: #F9F9F9; /* Light background to match your about_us */
    color: #1a3b6d;
}

.timeline-line {
    position: absolute;
    top: 260px;
    bottom: 260px;
    left: 50%;
    width: 2px;
    background-color: #ccc; /* Gray line; adjust color */
    transform: translateX(-50%);
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 40px; /* Space between items */
}

.timeline-item.left {
    justify-content: flex-start;
}

.timeline-item.right {
    justify-content: flex-end;
}

.timeline-year {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 1;
}

.timeline-item.left .timeline-year {
    right: calc(50% + 20px); /* Position year to the right of the line for left items */
}

.timeline-item.right .timeline-year {
    left: calc(50% + 20px); /* Position year to the left of the line for right items */
}

.timeline-card {
    width: 45%; /* Half width minus some gap */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
}

.timeline-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.timeline-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.timeline-card p {
    font-size: 16px;
    line-height: 1.5;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #ffc107; /* Yellow dot like in the picture */
    border-radius: 50%;
    top: 50%; /* Align with card center */
}

.timeline-item.left .timeline-card {
    margin-right: auto;
}

.timeline-item.right .timeline-card {
    margin-left: auto;
}

/* Timeline Footer (Bottom Text) */
.timeline-footer {
    max-width: 800px; /* Limit width for readability */
    margin: 40px auto 0; /* Space above, centered */
    padding: 20px;
    text-align: left; /* Left-aligned text like in your screenshot */
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 2; /* Above line if extended */
    text-align: center;
}

/* team */
.team{
    margin-top: 40px;
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    margin-left: 10%;
    margin-right: 10%;
}

.team_container{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.team_members{
    display: flex;
    margin-top: 30px;
}

.member {
    overflow: hidden; /* Hide overflow */
    display: flex;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 30px 20px 30px 20px;
}

.member p{
    background-color: #ffc107;
    color: #fff;
}

.image-wrapper{
    position: relative;
    width: 200px;
    height: 200px;
    clip-path: circle(); /* Circle clip on parent */
    border-radius: 10px;
    outline: 5px solid #000
}

.image-wrapper img {
    width: 100%;
    object-fit: cover; /* Crop to fill without distortion */
    outline: 5px solid #000
}

/* gallery */
.gallery_main {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

.gallery_main h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

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

.img_gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.img_gallery img:hover {
    transform: scale(1.05);
}

/* especialisimo */
.especialisimo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* center children horizontally */
    align-items: center; /* optional: align items vertically */
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto; /* center the whole section */
    margin-top: 60px;
}

.text_especialisimo, .img_especialisimo {
    /* flex: 1 1 400px; */
    max-width: 600px;
}

.text_especialisimo p:first-of-type {
    color: rgba(255, 193, 7, 1);           /* yellow */
    font-size: 1rem;          /* slightly smaller (adjust as needed) */
    margin-top: -10px;        /* move up a bit */
    margin-bottom: 10px;      /* optional spacing below */
}

.cuidemos_section{
    background-color: #F5F5F5;
    padding: 20px 0;
}

.cuidemos_planeta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* center children horizontally */
    align-items: center; /* optional: align items vertically */
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto; /* center the whole section */
}

.text_eplaneta p:first-of-type{
    color: rgba(255, 193, 7, 1);
    font-size: 1rem;
    margin-top: -10px;
    margin-bottom: 10px; 
}

.text_eplaneta, .img_planeta {
    /* flex: 1 1 400px; */
    max-width: 600px;
}

.text_eplaneta ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    margin-top: 30px;
    margin-bottom: 30px;
}

.text_eplaneta li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 16px;
    font-weight: 500;
}

.text_eplaneta li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: #FFC107;
    font-weight: bold;
}

/* producto */
.textile_intro{
    /* background-color: #F5F5F5; */
    padding: 80px 0;
    max-width: 1000px;
    margin: 40px auto; /* center the whole section */
}

.textile_intro p{
    margin-top: 20px;
}

.productos_container{
    background-color: #F5F5F5;
    margin-bottom: 30px;
}
.productos{
    max-width: 1000px;
    margin: 10px auto; /* center the whole section */
}

.categorias{
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 40px 0;
    flex-wrap: wrap;
}

.categorias a {
    text-decoration: none; /* Removes underline */
    color: inherit;        /* Keeps the current text color */
}

.categorias a:hover {
    text-decoration: underline;
}

.filter-link.active {
    color: #FFC107;
    font-weight: bold; /* optional */
}

table {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #F5F5F5;
    font-size: 13px;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 15px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #FFC107;
    background-color: #F5F5F5;
    font-size: 14px;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
    line-height: 1.3;
    color: #333;
}

th, td {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal; /* let text wrap */
    max-width: 200px;     /* optional: constrain very long cells */
    padding: 8px;
}

.product-name {
    color: #FFC107;
}

.table {
    display: block;
}

.table table {
    width: 100%;
    min-width: 600px; /* or larger if needed */
    table-layout: auto;
}

table tbody tr {
    opacity: 1;
    max-height: 100px;
    overflow: hidden;
    transition: opacity 1s ease, max-height 1s ease;
}

table tbody tr.hidden {
    opacity: 0;
    max-height: 0;
}

/* Adjust column widths */
.table th:nth-child(1),
.table td:nth-child(1) {
    width: 15%; /* Producto */
}

.table th:nth-child(2),
.table td:nth-child(2) {
    width: 15%; /* Categoria */
}

.table th:nth-child(3),
.table td:nth-child(3) {
    width: 25%; /* Categoria Especial */
}

.table th:nth-child(4),
.table td:nth-child(4) {
    width: 45%; /* Descripcion gets more room */
}

.card-wrapper {
  display: none;
}

/* product page */
.product_container{
    display: flex;
    justify-content: center;
    max-width: 1200px;
    flex-wrap: wrap;
    margin: 40px auto;
}

.product_inco_container {
    flex: 1;
    max-width: 600px;
}

.image_container {
    flex: 0 0 400px;
}

.image_container img{
    width: 400px;
    height: auto;
}

.product_inco_container h1 {
    font-size: 2.3rem;
    margin-top: 25px;
}

.product_inco_container p:nth-of-type(1) {
    background-color: rgba(255, 193, 7, 1);
    display: inline-block;
    color: #fff;
    padding: 2px 4px;
    font-size: 1.2rem;
}

.product_inco_container p:nth-of-type(3) {
    color: rgba(255, 193, 7, 1);           /* yellow */
    font-size: 0.9rem;          /* slightly smaller (adjust as needed) */
    margin-top: -10px;        /* move up a bit */
    margin-bottom: 40px;      /* optional spacing below */
}

.product_inco_container p:nth-of-type(4) {
    margin-bottom: 40px;      /* optional spacing below */
}

.product_inco_container ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    margin-top: 30px;
    margin-bottom: 30px;
}

.product_inco_container li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 16px;
    font-weight: 500;
}

.product_inco_container li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: #FFC107;
    font-weight: bold;
}

/* iso */
.submenu h1{
    font-size: 3rem;
}

.iso_title{
    max-width: 1200px;
    margin: 80px auto;
    display: flex;
    flex-direction: row;
    gap: 80px;
    flex-wrap: wrap;
    padding: 0 30px;
}

.text_container{
    flex: 1 1 300px; /* grow, shrink, basis */
}

.text_container h2{
    margin-bottom: 20px;
}

.text_container p{
    margin-bottom: 15px;
}

.iso_img{
    flex: 1 1 300px; /* grow, shrink, basis */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.iso_img img{
    max-width: 100%;           /* Responsive width */
    max-height: 100%;          /* Responsive height */
    height: auto;
    padding: 0 30px;
}

.quote{
    max-width: 1200px;
    margin: 40px auto;
}

.quote_container{
    padding: 20px;
    background-color: #F5F5F5;
    text-align: center;
}

.iso_images{
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 0 30px;
}

.iso_images img{
    width: 500px;
    height: auto;
}

.casdiquim_iso{
    flex: 1 1 300px; /* grow, shrink, basis */
    display: flex;
    flex-direction: column; /* keeps title above image */
    align-items: center;    /* centers horizontally */
    text-align: center;     /* centers text */
}

.casdiquim_iso h2, .iso_quimincol h2{
    text-align: center;
}

/* oekotex passportt */

.oeko_title{
    max-width: 1200px;
    margin: 80px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;         /* much smaller gap */
    padding: 0 10px;
    flex-wrap: wrap;
}

.oeko_img{
    flex: 1 1 300px; /* grow, shrink, basis */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.oeko_img img{
    max-width: 200px;  /* set a fixed smaller width */
    height: auto;
}

.text_container {
    flex: 0 1 400px;   /* content-based width, max 500px */
}

.oeko_img {
    flex: 0 1 300px;   /* image-based width, max 300px */
}

.quote ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    margin-top: 30px;
    margin-bottom: 30px;
}

.quote li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 16px;
    font-weight: 500;
    text-align: left;
}

.quote li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: #FFC107;
    font-weight: bold;
}

.quote.oeko{
    max-width: 700px;
}

/* basc */
.basc_matter_container{
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
}

.basc_matter_container img{
    width: 600px;
    display: block;          /* block-level */
    margin: 20px auto 0; 
}

.casdiquim_iso.basc h2{
    margin-bottom: 30px;
}

.casdiquim_iso.basc p{
    margin-bottom: 30px;
}

.basc_text_container {
    flex: 0 1 400px;   /* content-based width, max 500px */
}

.basc_img{
    flex: 1 1 300px; /* grow, shrink, basis */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.basc_img img{
    max-width: 500px;  /* set a fixed smaller width */
    height: auto;
}

/* bluesign */
.blue_img{
    flex: 1 1 400px; /* grow, shrink, basis */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.blue_img img{
    max-width: 400px;  /* set a fixed smaller width */
    height: auto;
}

/* contacto */
.contact_container{
    display: flex;
    justify-content: center; /* centers both blocks together */
    align-items: flex-start; /* align them at the top */
    margin: 80px auto;
    gap: 30px;
    max-width: 1000px; 
    flex-wrap: wrap;
}

.contact_info { 
    flex: 1 1 30%; /* base width ~30% */
    text-align: right;
}
.form_container { 
    flex: 2 1 60%; /* base width ~60% */
}

.first_form{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
    /* justify-content: center; */
}

#message {
    width: 100%;  /* or any size you want */
    max-width: 100%; /* makes it responsive */
    height: 200px;
}

.cta-button.form_button {
    background-color: #FFC107;   /* Primary blue color */
    color: white;               /* Text color */
    padding: 12px 24px;         /* Size */
    border: none;               /* Remove default border */
    border-radius: 8px;         /* Rounded corners */
    font-size: 16px;            /* Text size */
    font-weight: bold;          /* Bold text */
    cursor: pointer;            /* Pointer cursor on hover */
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.cta-button.form_button:hover {
    background-color: #1a3b6d;
    color: #FFFFFF;
}

/* search finder */
/* .finder_container{
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
} */


.finder_container{
  width: min(1100px, 92%);
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  padding: clamp(16px, 3vw, 32px);
}

.finder_text{
    margin-top: 60px;
    margin-bottom: 20px;
    text-align: center;
}

.finder_form{
    margin-bottom: 60px;
}

.finder_form_container{
    display: flex;
    flex-direction: row;
    gap: 30px;
    flex-wrap: wrap;
}

.finder_section + .section{
  padding-top: 0;
}


.form_row {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form_row label {
    font-weight: 500;
    color: #1a3b6d;
}

.form_row select {
    height: 42px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #1a3b6d;
    background-color: white;
}

.form_row select:focus {
    outline: 2px solid rgba(255, 193, 7, 1);
    border-color: #ccc;
}

.form_button {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: flex-end;  /* This aligns the button with the bottom */
    padding-bottom: 0;      /* Remove any bottom padding */
}

.form_button button {
    width: 100%;
    padding: 15px 12px;  /* Match the height of your select elements */
    background-color: rgba(255, 193, 7, 1);  /* Your theme's yellow color */
    color: #1a3b6d;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
}

.form_button button:hover {
    background-color: #1a3b6d;
    color: #FFFFFF;
}


/* casdicosu max conc */
.casdicour_title{
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;  /* Add this to enable wrapping */
    margin-top: 60px;
    margin-bottom: 60px;
}


.text_container {
    flex: 2;  /* Takes up 2 parts of the available space */
    padding-right: 20px;
}

.casdicour_title .text_container{
    padding-left: 10px;
    padding-right: 10px;
}

.casdicour_title h2{
    font-size: 2.2rem;
}

.casdicour_title p:first-of-type {
    font-size: 0.85rem;
    color: rgba(255, 193, 7, 1);
    margin-top: -35px;
    margin-bottom: 25px;
}


.casdiscour_img{
    flex: 1;  /* Takes up 1 part of the available space */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.casdiscour_img .top-images {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.casdiscour_img img {
    width: 150px;  /* Fixed width */
    height: 150px; /* Fixed height */
    object-fit: contain; /* This will maintain aspect ratio within fixed dimensions */
}

.casdiscour_img .bottom-image {
    display: flex;
    justify-content: center;
}

.casdiscour_img .bottom-image img {
    width: 200px;  /* Slightly wider for the ZDHC logo */
    height: 150px;
}

.text_container span {
    font-weight: 700;  /* Bold text */
    color: rgba(255, 193, 7, 1);  /* Your theme's yellow color */
}

.casdiscour_agotamiento{
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
    text-align: left;
}

.casdiscour_agotamiento h2{
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 20px;
}

.specs_table td,
.specs_table th {
    text-align: left;
    padding: 12px 15px;
}

/* If you already have existing styles, just add/modify: */
.specs_table tr td:first-child {
    font-weight: 500;  /* Optional: makes the property names slightly bolder */
}

.table_container {
    max-width: 1200px;
    margin: 20px auto;
}

/* Wrap table in the same width as text content */
section .table_container {
    width: 100%;
}

.specs_table th:first-child,
.specs_table td:first-child {
    width: 50%;  /* Property column takes 30% of the table width */
}

.specs_table th:last-child,
.specs_table td:last-child {
    width: 50%;  /* Specification column takes 70% of the table width */
}

.casdicour_proceso{
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
    text-align: left;
}

.casdicour_proceso ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    margin-top: 30px;
    margin-bottom: 30px;
}

.casdicour_proceso li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 16px;
    font-weight: 500;
}

.casdicour_proceso li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: #FFC107;
    font-weight: bold;
}

/* Make sure table takes full width of container */
.specs_table {
    width: 100%;
    margin-top: -60px;
    margin-bottom: 30px;
}

.casdiscour_agotamiento p:nth-child(3) {
    margin-top: 20px;
    margin-bottom: 0;
}

.casdicour_capilaridad{
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
    text-align: left;
    margin-top: 60px;
}

.casdiscour_capilaridad_cards{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.casdiscour_capilaridad_card{
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.casdiscour_capilaridad_card img{
    width: 250px;
    height: 400px;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.casdiscour_capilaridad__card_text{
    padding: 10px;
    text-align: center;
}

.casdiscour_text h2{
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.casdiscour_text p:nth-of-type(1) {
    margin-bottom: 20px;
}

.casdicour_dispersion_text{
    max-width: 1200px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
    text-align: left;
}

.casdiscour_capilaridad_cards{
    max-width: 1200px;
}

.casdiscour_dispersion_cards{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap: 40px;
    flex-wrap: wrap;
    margin: 30px auto 0;
    max-width: 1200px;
}

.casdiscour_yellowing_container{
    max-width: 1200px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
    text-align: left;
}

.note_div{
    max-width: 1200px;
    margin: 20px auto 0 auto;
    text-align: left;
}

.desengrasante_text_container{
    max-width: 1200px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
    text-align: left;
}

.desengrasante_text_container h2{
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.desengrasante_img {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.desengrasante_img img {
    width: 80%;
    height: auto;
    max-width: 500px;
    display: block;
}

.desengrasante1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.desengrasante1 h3 {
    margin-top: 10px;
}

.quote_container p{
    max-width: 1200px;
    margin: 40px auto;
}

/* Casdibac */
.aplicaion_propiedades{
    display: flex;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {

    :root{
        --finder-overlap: clamp(12px, 4.5vw, 36px);
        --finder-mobile-offset: clamp(8px, 3vw, 16px); /* positive = pushes it DOWN */
    }

    .secondary-nav {
        padding: 5px 20px;
        position: static;
        padding: 0;
        height: 40px;
    }

    .secondary-nav-links {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .secondary-nav-links .language-switcher {
        margin-left: 0;
    }

    .secondary-nav-links li a { 
        font-size: 10px;
    }

    .navbar {
        flex-direction: column;
        padding: 15px 20px;
        top: 80px;
    }
    

    .logo-container {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .nav-links li a {
        padding: 10px;
        font-size: 14px;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background-color: #F5F5F5;
        width: 100%;
        margin-top: 0;
    }

    .dropdown-content a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .hero {
        height: 400px;
        padding-bottom: calc(var(--finder-overlap) + 30px);
        margin-top: 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .section {
        padding: 40px 0;
    }

    .section h2 {
        font-size: 28px;
    }

    .section p {
        font-size: 14px;
    }

    .sustainability-team {
        padding: 40px 0;
    }

    .sustainability-container {
        flex-direction: column;
        text-align: center;
    }

    .sustainability-content {
        flex: 1;
        padding: 0 20px;
        margin-bottom: 20px;
    }

    .sustainability-content h2 {
        font-size: 28px;
    }

    .sustainability-content p {
        font-size: 14px;
    }

    .sustainability-image {
        flex: 1;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .sustainability-image img {
        width: 100%;
        height: auto;
    }

    .grid {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 200px;
        height: 200px; /* Adjusted height for mobile */
    }
}



/* Responsive Design Adjustments */
@media (max-width: 768px) {

    .hamburger {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 999;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #FFFFFF;
        padding: 20px 0;
    }
    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        text-align: center;
    }

    .secondary-nav-links{
        /* display: none; */
        flex-direction: column;
        width: 100%;
        background-color: #FFFFFF;
        padding: 20px 0;
    }

    .secondary-nav-links li:nth-child(-n+2) {
        display: none;
    }

    .sustainability-container {
        flex-direction: column;
        text-align: center; /* Center the content horizontally on mobile */
    }

    .sustainability-content, .sustainability-image {
        margin-bottom: 20px;
    }

    .section, .sustainability-team {
        padding: 40px 0;
    }

    .section-content {
        padding: 0 20px; /* Adjust padding for mobile */
    }

    .timeline-line {
        left: 20px; /* Move line to left edge */
        top: 10%;
        bottom: 10%;
        display: none;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 60px;
    }

    .timeline-item.left,
    .timeline-item.right {
        justify-content: flex-start;
    }

    .timeline-card {
        width: 100%;
        order: 2; /* Card below year on mobile */
    }

    .timeline-year {
        position: relative;
        top: 0;
        left: 40px; /* Align with line */
        transform: none;
        margin-bottom: 10px;
    }

    .timeline-item.left .timeline-year,
    .timeline-item.right .timeline-year {
        left: 40px;
        right: auto;
    }

    .timeline-dot {
        left: 20px; /* Align with line */
        top: 20px; /* Adjust position */
    }

    .about_container {
        flex-direction: column;
        align-items: center;
        margin: 0 20px 0 20px;
    }

    .img_slider,
    .about_text {
        max-width: 100%;
        flex: none; /* Prevent flex-grow from interfering with height */
        width: 100%; /* Full width on stack */
    }

    .img_slider {
        height: 0;
        padding-bottom: 75%; /* Adjust this % to your image aspect ratio (e.g., 56.25% for 16:9); higher for taller display on mobile */
    }
    .table {
        display: none;
    }
    .card-wrapper {
        display: block;
    }

    .productos{
        padding: 10px 10px 10px 10px;
    }
    .product-card {
        border: 1px solid #ccc;
        background: #fff;
        padding: 16px;
        margin-bottom: 15px;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        font-size: 14px;
    }
    .product-card p {
        margin-bottom: 6px;
    }
    
    .product-card strong {
        color: #1a3b6d;
    }

    .product-name {
        color: #FFC107;
    }

    .textile_intro{
        padding: 10px 20px 10px 20px;
    }

    .product_container{
        margin: 20px 20px;
        align-items: center; 
    }

    .image_container{
        text-align: center;
        width: 100%;
        margin-top: 30px;
    }

    .image_container img{
        width: 300px;
        height: auto;
    }

    .product_inco_container h1 {
        font-size: 1.6rem;
    }
    .iso_img img{
        max-width: 320px;
        height: auto;
        margin: 0 auto;
    }

    .iso_images img{
        width: 300px;
        height: auto;
    }
    .submenu.oeko h1 {
        /* styles here */
        font-size: 2rem;
    }

 
    
    
    .basc_matter_container img{
        width: 260px;
        display: block;          /* block-level */
        margin: 20px auto 0; 
    }
    
    .contact_info { 
        text-align: left;
        padding-left: 20px;
    }   

    .form_container{
        padding-left: 20px;
    }

    #message {
        width: 90%;  /* or any size you want */
        max-width: 100%; /* makes it responsive */
        height: 150px;
    }

    .cf-turnstile.cloudflare {
        padding-right: 20px;
    }

    .main_chemistry h1{
        font-size: 1.2rem;
    }

    .footer_container{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mission_vision{
        flex-direction: column;
        width: 100%;
    }

    .mission_text, .vision_text {
        width: 100%;
    }
    
    .finder_container{
        padding: clamp(12px, 3.5vw, 20px);
    }

    .casdiscour_img .top-images {
        flex-direction: column;  /* Stack vertically on mobile */
        align-items: center;     /* Center horizontally */
    }
    
}