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

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: #e5e5e5;
}

/* ==== HEADER GENERAL ==== */
.header {
    width: 100%;
    background-color: #e6e6e6;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 55px;
    width: auto;
    display: block;
}

/* Navegación */
.navigation {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-button {
    padding: 8px 18px;
    background-color: #00797c;
    border-radius: 4px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 3px rgba(0,0,0,0.25);
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.2s ease;
}

.nav-button:hover {
    background-color: #009196;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

/* Botón de idioma */
.lang-btn {
    padding: 8px 14px;
    border: 1px solid #00797c;
    background: transparent;
    color: #00797c;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.lang-btn:hover {
    background: #00797c;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 3px rgba(0,0,0,0.25);
}


/* ===== SECCIÓN NOSOTROS – 3 COLUMNAS SIMÉTRICAS ===== */
.nosotros-section {
    display: grid;
    grid-template-columns: 8% 84% 8%;
    width: 100%;
    padding: 40px 0;
}

.col-side {
    background-color: #005f73;
}

.col-center {
    background: rgba(217, 237, 247, 0.96);
    padding: 40px 50px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.nosotros-content {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.6;
    color: #003f52;
}

/* Título */
.nosotros-title {
    font-size: 26px;
    line-height: 1.3;
    margin: 0 0 24px;
    color: #006b7e;
    font-weight: 700;
}

/* Párrafos */
.nosotros-text p {
    margin: 0 0 14px;
}

/* Cita final */
.nosotros-quote {
    margin-top: 22px;
    font-style: italic;
    color: #005f73;
}

/* 2 columnas tipo brochure en pantallas grandes */
@media (min-width: 1200px) {
    .nosotros-text {
        column-count: 2;
        column-gap: 40px;
    }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .logo {
        height: 48px;
    }

    .navigation {
        justify-content: flex-start;
        gap: 8px;
    }

    .nav-button {
        font-size: 13px;
        padding: 6px 14px;
    }
    
    .nosotros-section {
        grid-template-columns: 1fr;
    }
    
    .col-center {
        padding: 30px 25px;
    }
    
    .nosotros-content {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-button {
        width: 100%;
        text-align: center;
    }
}

/* Hero - imagen limpia */
.hero-image-container {
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Sección Servicios */
.servicios-section {
    width: 100%;
}

.servicios-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Scroll suave y compensación para header sticky */
html {
    scroll-behavior: smooth;
}

/* Separación para TODAS las secciones */
#inicio,
#servicios,
#productos,
#prensa,
#contacto {
    scroll-margin-top: 90px;
}

/* Separación especial para NOSOTROS */
#nosotros {
    scroll-margin-top: 140px;
}

/* ===== SECCIÓN PRODUCTOS ===== */
.productos-section {
    width: 100%;
    background-color: #f5f5f5;
    padding: 60px 0;
}

.productos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.productos-text {
    flex: 0 0 60%;
}

.productos-content {
    font-size: 14px;
    line-height: 1.6;
    color: #003f52;
}

.productos-title {
    font-size: 26px;
    line-height: 1.3;
    margin: 0 0 24px;
    color: #006b7e;
    font-weight: 700;
}

.productos-subtitle {
    font-size: 20px;
    color: #005f73;
    margin: 25px 0 15px;
    font-weight: 600;
}

.productos-paragraph {
    margin: 20px 0 10px;
    font-weight: 500;
}

.productos-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.productos-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.productos-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #005f73;
    font-weight: bold;
    font-size: 18px;
}

.productos-list li strong {
    color: #005f73;
    font-weight: 600;
}

.productos-image {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.productos-image-circle {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.productos-img {
    width: 100%;
    height: auto;
    display: block;
}

.productos-cta {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-btn {
    display: inline-block;
    padding: 10px 16px;
    background-color: #006b7e;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0px 3px 6px rgba(0,0,0,0.15);
    width: 100%;
}

.cta-btn:hover {
    background-color: #0091a5;
    transform: translateY(-2px);
    box-shadow: 0px 6px 10px rgba(0,0,0,0.20);
}

/* Responsive Productos */
@media (max-width: 768px) {
    .productos-container {
        flex-direction: column;
        padding: 0 25px;
        gap: 30px;
    }
    
    .productos-text,
    .productos-image {
        flex: 1 1 100%;
    }
    
    .productos-image-circle {
        max-width: 300px;
    }
}

/* RESET anti-borrosidad para imágenes grandes */
.hero-image,
.servicios-image,
.productos-img,
.masonry-item img,
.hero-image-container img,
.servicios-section img,
.productos-image-circle img,
.productos-section img,
.prensa-section img,
.masonry-grid img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    image-rendering: auto !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    mix-blend-mode: normal !important;
    transform: none !important;
    -webkit-transform: none !important;
    -webkit-backface-visibility: visible !important;
    backface-visibility: visible !important;
}

/* Quitar cualquier fondo encima o debajo */
.hero-image-container,
.servicios-section,
.productos-image-circle {
    background: none !important;
}

/* Evitar que reglas globales afecten las imágenes */
img {
    image-rendering: auto !important;
    filter: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
}

/* ===== SECCIÓN PRENSA ===== */
.prensa-section {
    padding: 60px 20px;
    background: #00556b;
    text-align: center;
}

.prensa-title {
    font-size: 2.4rem;
    margin-bottom: 40px;
    color: white;
    font-weight: 700;
}

/* MASONRY GRID */
.masonry-grid {
    column-count: 3;
    column-gap: 25px;
    max-width: 1500px;
    margin: 0 auto;
}

/* ITEM INDIVIDUAL */
.masonry-item {
    width: 100%;
    margin-bottom: 25px;
    display: block;
    break-inside: avoid;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out forwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* Animación fade + desplazamiento */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ESTILO DE IMAGEN */
.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease;
    border-radius: 12px;
    image-rendering: auto !important;
    filter: none !important;
}

/* EFECTO HOVER */
.masonry-item:hover img {
    transform: scale(1.05);
}

/* Columnas responsivas */
@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* ===== SECCIÓN CONTACTO ===== */
.contacto-section {
    width: 100%;
    background-color: #005f73;
    padding: 60px 20px;
}

.contacto-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.contacto-title {
    font-size: 26px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #006b7e 0%, #005f73 100%);
    border: none;
    border-radius: 8px;
    color: #d9edf7;
    font-size: 14px;
    font-family: inherit;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #a8d5e2;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #006b7e 0%, #005f73 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.submit-btn:active {
    transform: translateY(0);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #006b7e 0%, #005f73 100%);
    border-radius: 8px;
    text-decoration: none;
    color: #d9edf7;
    font-size: 14px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #006b7e 0%, #005f73 100%);
    border-radius: 8px;
    color: #8b5cf6;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

/* Responsive Contacto */
@media (max-width: 992px) {
    .contacto-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== CINTILLO CON BANDERAS ===== */
.cintillo {
    width: 100%;
    background-color: #e6e6e6;
    padding: 35px 50px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cintillo-flags {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 1 auto;
}

.cintillo-flags-left {
    justify-content: flex-end;
}

.cintillo-flags-right {
    justify-content: flex-start;
}

.cintillo-flags img {
    width: 56px;
    height: 42px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.cintillo-flags img:hover {
    transform: scale(1.1);
}

.cintillo-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cintillo-logo img {
    height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Responsive Cintillo */
@media (max-width: 768px) {
    .cintillo {
        padding: 25px 30px;
        gap: 20px;
    }
    
    .cintillo-flags {
        gap: 12px;
    }
    
    .cintillo-flags img {
        width: 42px;
        height: 32px;
    }
    
    .cintillo-logo img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .cintillo {
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px;
    }
    
    .cintillo-flags {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cintillo-flags img {
        width: 36px;
        height: 27px;
    }
    
    .cintillo-logo {
        order: -1;
        padding: 0;
    }
    
    .cintillo-logo img {
        height: 35px;
    }
}

