html {
    scroll-behavior: smooth;
}

/* Base Styles */
:root {
    --primary-blue: #2a3c5a;
    --title-blue: #1491ce;
    --separator-blue: #10447e;
    --text-dark: #333333;
    --text-gray: #777777;
    --bg-light: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--primary-blue);
    padding: 15px 0;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    min-width: 150px;
    object-fit: contain;
}

.menu-toggle {
    display: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--title-blue);
}

.nav-links a.active {
    font-weight: 600;
    border-bottom: 2px solid var(--title-blue);
    padding-bottom: 3px;
}

/* Subheader */
.subheader {
    padding: 20px 0;
    text-align: center;
}

.subheader h1 {
    font-size: 24px;
    color: var(--text-gray);
    font-weight: 300;
}

.subheader h1 span {
    color: var(--title-blue);
    font-family: 'Anta', sans-serif;
    font-weight: 700;
}

.subheader h1 small {
    font-size: 16px;
    color: var(--text-gray);
}

/* Hero Image & Carousel */
.hero {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    overflow: hidden;
    position: relative;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    background-color: var(--title-blue);
    transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.carousel-dot.active,
.carousel-dot:hover {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

/* Section Titles */
.section-title {
    text-align: center;
    color: var(--title-blue);
    font-family: 'Anta', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    line-height: 1.2;
}

.section-title span {
    color: var(--text-gray);
    font-size: 18px;
    font-weight: 300;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 2px;
    background-color: var(--separator-blue);
}

/* Fibras Intro */
.fibras-intro {
    padding: 80px 0 60px;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.service-item {
    text-align: center;
}

a.service-item {
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
}

a.service-item:hover {
    transform: translateY(-5px);
    filter: brightness(1.15);
}

.service-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.service-item p {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

/* Banner */
.banner {
    position: relative;
    height: 300px;
    background-color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Overlay oscuro para que resalte el texto */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.banner-content h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Products */
.products {
    padding: 60px 0;
}

.subsection-title {
    text-align: center;
    color: var(--text-gray);
    font-family: 'Anta', sans-serif;
    font-size: 22px;
    margin-bottom: 40px;
    font-weight: 700;
}

.mt-5 {
    margin-top: 60px;
}

.products-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.product-item {
    text-align: center;
    max-width: 250px;
}

.product-img-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background-color: #e2e8f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-item h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.ficha-btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: white;
    font-size: 13px;
    text-decoration: none;
    padding: 8px 24px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.ficha-btn:hover {
    background-color: var(--title-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Applications */
.applications {
    padding: 60px 0;
    margin-top: 20px;
    position: relative;
}
.applications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    max-width: 90%;
    height: 2px;
    background-color: var(--separator-blue);
}

.app-columns {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.app-col {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.app-col h4 {
    color: var(--title-blue);
    font-family: 'Anta', sans-serif;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.app-col ul {
    list-style-type: none;
    padding-left: 0;
    color: var(--text-dark);
    font-size: 13px;
}

.app-col ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.app-col ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-dark);
}

.app-col ul ul {
    margin-top: 8px;
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 60px 0 40px;
}

.footer-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 13px;
}

.contact-item i {
    font-size: 20px;
    margin-top: 3px;
}

.footer-links {
    text-align: center;
    font-size: 13px;
    padding-top: 20px;
}

.footer-links a {
    display: inline-block;
    margin-bottom: 10px;
    color: white;
}

.footer-links a:hover {
    color: var(--title-blue);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        justify-content: space-between;
        position: relative;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.35);
        color: #ffffff;
        width: 42px;
        height: 42px;
        border-radius: 6px;
        font-size: 20px;
        cursor: pointer;
        position: relative;
        z-index: 1002;
        transition: background-color 0.2s ease, border-color 0.2s ease;
    }

    .menu-toggle:hover,
    .menu-toggle.active {
        background-color: rgba(255, 255, 255, 0.12);
        border-color: var(--title-blue);
        color: var(--title-blue);
    }

    .menu-toggle.active i::before {
        content: "\f00d";
    }

    .menu-toggle.active::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: calc(100vw - 260px);
        height: 100vh;
        background: rgba(0, 0, 0, 0.45);
        cursor: default;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -280px;
        width: 260px;
        height: 100vh;
        background-color: var(--primary-blue);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 85px 0 30px;
        box-shadow: -6px 0 25px rgba(0, 0, 0, 0.35);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1001;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        text-align: left;
        padding: 15px 28px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a.active {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-left: 4px solid var(--title-blue);
        background-color: rgba(20, 145, 206, 0.15);
        padding-left: 24px;
    }
    
    .services-grid {
        gap: 30px;
    }
    
    .app-columns {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-contact {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
    }
}

/* =========================================
   SOBRE NOSOTROS PAGE STYLES
   ========================================= */

.subheader-subtitle {
    margin-top: 10px;
    font-size: 16px;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
}

.about-content {
    padding: 60px 0;
}

.about-block {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    gap: 40px;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-title {
    color: var(--title-blue);
    font-family: 'Anta', sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-text p {
    font-size: 14px;
    color: var(--text-dark);
    text-align: justify;
    line-height: 1.6;
}

.mt-4 {
    margin-top: 30px;
}

.otros-servicios {
    padding: 60px 0;
    text-align: center;
}

.section-title-gray {
    color: var(--text-gray);
    font-family: 'Anta', sans-serif;
    font-size: 24px;
    margin-bottom: 40px;
}

.servicios-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.servicios-icon img {
    width: 120px;
    height: auto;
}

.servicios-list {
    text-align: left;
    color: var(--text-dark);
}

.servicios-list li {
    margin-bottom: 10px;
    font-size: 14px;
    list-style-type: disc;
    margin-left: 20px;
}

.distribuidores {
    padding: 40px 0 80px;
    text-align: center;
}

.distribuidores-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.distribuidores-logos img {
    max-height: 70px;
    max-width: 200px;
    object-fit: contain;
}

.banner-excelencia {
    display: flex;
    background-color: #f2f2f2;
    align-items: stretch;
}

.excelencia-text {
    flex: 1;
    padding: 60px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.excelencia-text h2 {
    color: var(--text-dark);
    font-family: 'Anta', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
}

.excelencia-text p {
    color: var(--text-dark);
    font-size: 15px;
    margin-bottom: 30px;
    text-align: justify;
}

.btn-dark {
    display: inline-block;
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-dark:hover {
    background-color: var(--title-blue);
    color: white;
}

.excelencia-img {
    flex: 1;
}

.excelencia-img img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .about-block {
        flex-direction: column;
    }
    .servicios-content {
        flex-direction: column;
    }
    .banner-excelencia {
        flex-direction: column-reverse;
    }
    .excelencia-text {
        padding: 40px 20px;
    }
}

/* =========================================
   PRODUCTOS PAGE STYLES
   ========================================= */

.text-center { text-align: center; }
.text-left { text-align: left; }
.d-inline-block { display: inline-block; }
.text-blue { color: var(--title-blue); }
.text-gray { color: var(--text-gray); }

.subtitle-text {
    color: var(--text-gray);
    font-size: 15px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.fibras-header {
    padding: 60px 0 20px;
}

.productos-page-list {
    padding: 40px 0;
}

.productos-page-list .subsection-title small {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    display: block;
    margin-top: 10px;
}

.product-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #cbd5e1;
    padding: 40px 0;
}

.product-category:last-child {
    border-bottom: none;
}

.category-text {
    flex: 1;
}

.category-title {
    color: var(--text-gray);
    font-family: 'Anta', sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
}

.category-text ul {
    list-style-type: disc;
    margin-left: 20px;
    color: var(--text-dark);
}

.category-text ul li {
    margin-bottom: 8px;
}

.category-text ul li a {
    color: var(--text-dark);
    font-weight: 600;
}

.category-text ul li a:hover {
    color: var(--title-blue);
    text-decoration: underline;
}

.category-images {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.circle-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e2e8f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ventajas {
    padding: 60px 0;
}

.ventajas-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.ventajas-lists {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ventaja-group {
    display: flex;
    align-items: stretch;
}

.ventaja-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    color: var(--title-blue);
    font-family: 'Anta', sans-serif;
    font-size: 20px;
    letter-spacing: 2px;
    padding: 0 10px;
    border-right: 2px solid var(--separator-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ventaja-ul {
    padding-left: 20px;
    color: var(--text-dark);
    font-size: 13px;
    list-style-type: none;
}

.ventaja-ul li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 12px;
}

.ventaja-ul li::before {
    content: '»';
    position: absolute;
    left: 0;
    color: var(--title-blue);
    font-weight: bold;
}

.ventajas-img img {
    max-width: 350px;
    height: auto;
}

.corte-planta {
    padding: 60px 0;
}

.corte-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    padding-right: 60px; /* Increased padding to make room for vertical text */
    max-width: 900px;
    margin: 0 auto;
}

.corte-item {
    flex: 1;
}

.corte-item h4 {
    color: var(--title-blue);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    min-height: 40px;
}

.corte-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background-color: #ffffff;
}

.corte-label {
    position: absolute;
    right: -80px; /* Desplazamos el texto hacia la derecha para que caiga en el área blanca */
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
    color: var(--separator-blue);
    font-family: 'Anta', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.label-with-title {
    top: calc(50% + 27px); /* Compensamos exactamente la altura del título para centrar sobre la imagen */
}

.calculos {
    padding: 60px 0;
}

.calculos-list {
    margin: 20px auto 40px;
    list-style-type: disc;
    color: var(--text-dark);
}

.table-responsive {
    overflow-x: auto;
    margin-top: 30px;
}

.calculos-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 13px;
}

.calculos-table th {
    background-color: var(--title-blue);
    color: white;
    padding: 12px;
    border: 1px solid white;
    font-weight: 600;
}

.calculos-table td {
    padding: 10px;
    border: 1px solid #cbd5e1;
    color: var(--text-dark);
}

.calculos-table .table-subhead td {
    color: var(--title-blue);
    font-weight: bold;
    border: none;
    border-bottom: 1px solid var(--title-blue);
    padding-top: 20px;
    text-align: left;
}

.calculos-table .table-subhead td:first-child {
    border-left: 1px solid #cbd5e1;
}
.calculos-table .table-subhead td:last-child {
    border-right: 1px solid #cbd5e1;
}

.guia {
    padding: 60px 0;
}

.guia-list {
    max-width: 900px;
    margin: 0 auto;
    list-style-type: none;
    color: var(--text-dark);
    font-size: 14px;
}

.guia-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    text-indent: -20px;
}

.bullet-icon {
    font-weight: bold;
    margin-right: 5px;
}

.banner-bottom {
    background-color: var(--bg-light);
    padding: 60px 0;
    text-align: center;
}

.banner-bottom h3 {
    color: var(--text-dark);
    font-size: 24px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .product-category {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .category-images {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .category-text ul {
        list-style-type: none;
        margin-left: 0;
    }
    
    .ventajas-content {
        flex-direction: column;
    }
    
    .corte-grid {
        flex-direction: column;
        align-items: center;
        padding-right: 0;
        gap: 35px;
    }

    .corte-item {
        flex: none;
        width: 100%;
        max-width: 420px;
    }

    .corte-item h4 {
        min-height: auto;
        margin-bottom: 12px;
    }

    .corte-item img {
        height: auto;
    }
    
    .corte-label {
        position: static;
        transform: none;
        margin-top: 10px;
        text-align: center;
    }
}

/* =========================================
   BENTO DASHBOARD STYLES
   ========================================= */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.bento-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bento-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.bento-span-3 {
    grid-column: span 3;
}

.bento-span-4 {
    grid-column: span 4;
}

.bento-span-1 {
    grid-column: span 1;
}

.bento-title {
    color: var(--text-gray);
    font-family: 'Anta', sans-serif;
    font-size: 18px;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 15px;
}

.bento-products-row {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    flex: 1;
}

.bento-products-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.bento-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.bento-img-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f8fafc;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.bento-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.bento-item h5 {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-span-3, .bento-span-4 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-span-3, .bento-span-4, .bento-span-1 {
        grid-column: span 1;
    }
    .bento-products-row {
        flex-direction: column;
        gap: 30px;
    }
}

/* =========================================
   CONTACTO PAGE STYLES
   ========================================= */

.contacto-header {
    padding: 60px 0 20px;
}

.contacto-subtitle {
    color: var(--title-blue);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: underline;
    letter-spacing: 1px;
}

.contacto-content {
    padding: 40px 0 80px;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

/* Modern Form Styles */
.modern-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.form-group {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.form-group label {
    width: 100px;
    font-size: 14px;
    color: var(--text-dark);
    margin-top: 10px;
    font-weight: 600;
}

.required {
    color: red;
}

.modern-form input[type="text"],
.modern-form input[type="email"],
.modern-form textarea {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #f8fafc;
}

.modern-form input[type="text"]:focus,
.modern-form input[type="email"]:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--title-blue);
    box-shadow: 0 0 0 3px rgba(20, 145, 206, 0.1);
    background-color: #ffffff;
}

.file-group {
    display: flex;
}

.file-input-wrapper {
    flex: 1;
}

.custom-file-input {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.custom-file-input::file-selector-button {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: #f1f5f9;
    color: var(--text-dark);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s;
    margin-right: 15px;
}

.custom-file-input::file-selector-button:hover {
    background-color: #e2e8f0;
}

.file-info {
    font-size: 12px;
    color: var(--text-dark);
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    width: auto;
    font-size: 14px;
    margin-top: 0;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group label a {
    color: var(--title-blue);
    text-decoration: underline;
}

.form-actions {
    text-align: right;
    margin-top: 30px;
}

.btn-submit {
    background-color: #ffffff;
    color: var(--text-dark);
    border: 1px solid #cbd5e1;
    padding: 10px 30px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--title-blue);
    color: #ffffff;
    border-color: var(--title-blue);
}

/* Info container */
.contacto-info-container {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
}

.contacto-info-container .info-block p {
    margin-bottom: 5px;
}

.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .form-group {
        flex-direction: column;
    }
    .form-group label {
        width: 100%;
        margin-bottom: 5px;
    }
    .modern-form {
        padding: 20px;
    }
}

/* =========================================
   MODERN FOOTER & MODAL STYLES
   ========================================= */

.modern-footer {
    background-color: var(--primary-blue);
    color: #ffffff;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    font-family: 'Anta', sans-serif;
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 25px;
}

.btn-aviso {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-aviso:hover {
    background: #ffffff;
    color: var(--primary-blue);
}

.footer-col-menu ul {
    list-style: none;
    padding: 0;
}

.footer-col-menu ul li {
    margin-bottom: 12px;
}

.footer-col-menu ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col-menu ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-col-contact p {
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}

.footer-col-contact p i {
    margin-top: 4px;
    margin-right: 12px;
    color: var(--title-blue);
}

.footer-bottom {
    background-color: #1a2536; /* Tono más oscuro de azul marino */
    padding: 20px 0;
    font-size: 13px;
    color: #94a3b8;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.7); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 40px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #333;
    text-decoration: none;
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.modal-logo {
    max-width: 250px;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: var(--title-blue);
    font-family: 'Anta', sans-serif;
    font-size: 24px;
}

.modal-body {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.8;
}

.modal-body h4 {
    color: var(--primary-blue);
    margin: 25px 0 10px;
    font-size: 16px;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.btn-accept-aviso {
    background-color: var(--title-blue);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.btn-accept-aviso:hover {
    background-color: var(--primary-blue);
}

.contact-icon-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}
.contact-icon-item i {
    color: var(--title-blue);
    font-size: 22px;
    margin-right: 18px;
    margin-top: 2px;
}
.contact-icon-item .contact-text {
    flex: 1;
}
.contact-icon-item .contact-label {
    color: var(--title-blue);
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}
.contact-icon-item p {
    margin: 0;
    line-height: 1.6;
}
.contact-icon-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}
.contact-icon-item a:hover {
    color: var(--title-blue);
}

.descarga-formato {
    width: 100%;
    margin: 0 auto;
    background-color: #f8fafc;
    padding: 30px 40px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--title-blue);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 30px;
}

.descarga-formato p {
    font-size: 16px;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

.btn-download {
    display: inline-block;
    background-color: var(--title-blue);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-download:hover {
    background-color: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-download i {
    margin-right: 8px;
    font-size: 18px;
}

/* Servicios Page */
.servicio-bloque {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    scroll-margin-top: 100px;
}
.servicio-img {
    flex: 1;
}
.servicio-img img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
}
.servicio-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}
.servicio-grid-2x2 img {
    aspect-ratio: 1;
    object-fit: cover;
    box-shadow: none;
    border-radius: 2px;
}
.servicio-texto {
    flex: 1;
}
.servicio-texto h3 {
    color: var(--title-blue);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}
.servicio-texto ul {
    list-style-type: none;
    padding-left: 0;
}
.servicio-texto ul li {
    font-size: 17px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
    color: var(--text-dark);
}
.servicio-texto ul li::before {
    content: "•";
    color: var(--title-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .corte-planta {
        overflow-x: hidden;
    }
    .corte-grid {
        padding-right: 0;
        flex-wrap: wrap;
    }
    .corte-label {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 260px;
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .carousel-prev {
        left: 10px;
    }
    .carousel-next {
        right: 10px;
    }

    .subheader h1 {
        font-size: 20px;
        line-height: 1.4;
    }
    .subheader h1 small {
        display: block;
        font-size: 14px;
        margin-top: 4px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .section-title span {
        font-size: 15px;
    }
    .section-title::before {
        width: 200px;
        max-width: 80%;
        top: -20px;
    }

    .fibras-intro {
        padding: 55px 0 40px;
    }

    .banner {
        background-attachment: scroll;
        height: auto;
        min-height: 220px;
        padding: 40px 20px;
    }
    .banner-content h2 {
        font-size: 20px;
        line-height: 1.4;
    }
    .banner-content p {
        font-size: 15px;
    }

    .about-img,
    .about-text,
    .servicio-img,
    .servicio-texto,
    .excelencia-text,
    .excelencia-img,
    .app-col {
        flex: none;
        width: 100%;
    }

    .distribuidores-logos {
        gap: 40px;
    }

    .ventajas-img img {
        width: 100%;
        max-width: 320px;
    }

    .calculos-table th,
    .calculos-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .servicio-bloque {
        flex-direction: column;
        text-align: left;
        gap: 30px;
        margin-bottom: 50px;
    }
    .servicio-texto h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    .servicio-texto ul li {
        font-size: 15px;
    }

    .descarga-formato {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .modern-form input[type="text"],
    .modern-form input[type="email"],
    .modern-form textarea,
    .file-input-wrapper,
    .custom-file-input {
        width: 100%;
        max-width: 100%;
    }

    .form-actions {
        text-align: center;
    }
    .btn-submit {
        width: 100%;
    }

    .modal-content {
        width: 94%;
        padding: 25px 18px;
        margin: 8% auto;
    }
    .modal-logo {
        max-width: 180px;
    }
    .close-modal {
        top: 12px;
        right: 18px;
    }

    .fichas-modal-content {
        width: 92% !important;
        padding: 22px 16px !important;
        margin: 15% auto !important;
    }
    .fichas-modal-title {
        font-size: 20px !important;
        padding-right: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-col-logo {
        align-items: center;
    }
    .footer-col-contact p {
        justify-content: center;
        text-align: center;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 200px;
    }
    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 15px;
    }
    .bento-box {
        padding: 20px 15px;
    }
    .pdf-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    .pdf-name {
        margin-right: 0 !important;
    }
    .pdf-btn {
        align-self: stretch;
        text-align: center;
    }
}
