:root {
    --primary: #0056a6;
    --primary-light: #3678b5;
    --primary-dark: #004385;
    --secondary: #58b947;
    --secondary-light: #7bc96e;
    --secondary-dark: #469a38;
    --light: #f5f9ff;
    --dark: #1a1a1a;
    --gray: #f0f0f0;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--dark);
    max-width: 700px;
    margin: 20px auto 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 86, 166, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--white);
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.qr-container {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    padding: 3px;
    background: white;
    border-radius: 5px;
}

.qr-code {
    width: 60px;
    height: 60px;
    display: block;
}

.footer-links .valora-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-contact-icon {
    margin-right: 15px;
    color: var(--secondary);
    font-size: 1.2rem;
}

.footer-contact-text {
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .contacto-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .soluciones-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
    }
    
    .info-icon {
        margin-bottom: 10px;
    }
    
    .delegaciones {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* Animaciones */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animated-pulse {
    animation: pulse 2s infinite;
}

/* Mejoras de accesibilidad */
:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

/* Estilos para elementos de la infografía */
.infografia-item {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.infografia-item:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    opacity: 0.3;
    border-radius: 10px;
}

.infografia-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 200px;
    text-align: center;
    z-index: 10;
}

.infografia-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--primary) transparent transparent transparent;
}

.infografia-item:hover .infografia-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

/* Estilos para la sección SXR */
.sxr-section {
    position: relative;
    overflow: hidden;
    background-color: var(--white);
}

.sxr-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/sxr-bg.jpg') center/cover no-repeat;
    opacity: 0.05;
    z-index: 0;
}

.sxr-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.sxr-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.sxr-text {
    flex: 1;
}

.sxr-features {
    margin-top: 30px;
}

.sxr-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.sxr-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sxr-feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary);
}

/* Estilos específicos para los diferentes tipos de instalaciones */
.installation-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.installation-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.installation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.installation-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.installation-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.installation-body {
    padding: 25px;
}

.installation-features {
    list-style: none;
    margin-bottom: 25px;
}

.installation-features li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.installation-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Estilos para la sección de certificaciones */
.certification-section {
    background-color: var(--light);
}

.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.certification-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.certification-image {
    height: 200px;
    overflow: hidden;
}

.certification-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.certification-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.certification-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.certification-content p {
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Estilos adicionales para mejorar la accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Estilos para elementos interactivos de la infografía de cadena alimentaria */
.chain-process {
    position: relative;
    margin: 50px 0;
}

.chain-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--primary-light);
    transform: translateY(-50%);
    z-index: 0;
    border-radius: 4px;
}

.chain-stages {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.chain-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.chain-stage:hover {
    transform: translateY(-10px);
}

.chain-node {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 4px solid var(--primary);
    position: relative;
    z-index: 2;
}

.chain-node img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.chain-stage-name {
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    margin-bottom: 10px;
}

.chain-stage-desc {
    text-align: center;
    font-size: 0.9rem;
    max-width: 200px;
    color: #666;
}
.chain-stage {
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-item.valora-nav {
    display: flex;
    align-items: center;
}

.nav-qr {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    margin-left: 5px;
    padding: 2px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 3px;
    vertical-align: middle;
    object-fit: contain;
    display: inline-block;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 86, 166, 0.8), rgba(88, 185, 71, 0.8)), url('../img/hero-bg.jpg') center/cover no-repeat;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    color: var(--white);
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Infografía Section */
.infografia {
    background-color: var(--white);
    overflow: hidden;
}

.infografia-img {
    text-align: center;
    position: relative;
}

.infografia-img img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Cadena Alimentaria Section */
.cadena-alimentaria {
    background-color: var(--light);
}

.chain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.chain-item {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.chain-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.chain-img {
    height: 200px;
    overflow: hidden;
}

.chain-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.chain-item:hover .chain-img img {
    transform: scale(1.1);
}

.chain-content {
    padding: 25px;
}

.chain-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary);
}

.chain-content p {
    margin-bottom: 20px;
    color: #666;
}

/* Sectores Section */
.sectores {
    background-color: var(--white);
}

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

.sector-card {
    background-color: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.sector-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.sector-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 20px;
}

.sector-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.sector-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary);
}

.sector-card p {
    padding: 0 20px 30px;
    color: #666;
}

/* Soluciones Section */
.soluciones {
    background-color: var(--light);
}

.soluciones-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    padding: 12px 25px;
    background-color: var(--white);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.solucion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.solucion-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.solucion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.solucion-img {
    height: 200px;
    overflow: hidden;
}

.solucion-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.solucion-card:hover .solucion-img img {
    transform: scale(1.1);
}

.solucion-content {
    padding: 25px;
}

.solucion-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary);
}

.solucion-content p {
    margin-bottom: 20px;
    color: #666;
}

/* Clientes Section */
.clientes {
    background-color: var(--white);
    padding: 60px 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.client-logo {
    text-align: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 15px;
}

.client-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
}

/* Contacto Section */
.contacto {
    background-color: var(--light);
    position: relative;
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contacto-info {
    background-color: var(--primary);
    padding: 40px;
    border-radius: 10px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contacto-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.info-item {
    display: flex;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.info-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--secondary);
}

.info-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-text p {
    opacity: 0.9;
}

.contacto-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contacto-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
    color: var(--primary);
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 166, 0.2);
}

textarea.form-control {
    border-radius: 15px;
    min-height: 150px;
}

/* Delegaciones */
.delegaciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.delegacion-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.delegacion-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.delegacion-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary);
}

.delegacion-item p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding-top: 70px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
}

.footer-info p {
    margin-bottom: 20px;
    opacity: 0.9;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}