/*
Theme Name: Ecuapork
Theme URI: https://ecuapork.com.ec
Author: Ecuapork S.A.
Author URI: https://ecuapork.com.ec
Description: Tema personalizado para Ecuapork - Producción de Carne de Cerdo de Calidad en Ecuador. Tema optimizado para edición de contenido desde el panel de WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecuapork
Tags: custom-logo, custom-menu, featured-images, full-width-template, one-column, two-columns, translation-ready
*/

/* ==========================================================================
   CSS Variables / Design Tokens
   ========================================================================== */
:root {
    /* Fonts */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-lobster: 'Lobster', cursive;

    /* Colors */
    --color-dark: #0d141a;
    --color-dark-alt: #0a1015;
    --color-body: #1d1e20;
    --color-white: #ffffff;
    --color-footer-bg: rgb(19, 37, 71);
    --color-btn-primary: rgb(23, 107, 224);
    --color-btn-primary-hover: rgb(29, 30, 32);
    --color-input-bg: rgb(241, 241, 241);
    --color-input-border: rgb(0, 0, 0);
    --color-label: rgb(26, 26, 26);
    --color-input-text: rgb(136, 136, 136);

    /* Spacing */
    --container-width: 1224px;
    --block-padding: 16px 0;
    --block-padding-mobile: 16px;
    --section-padding: 80px 0;
    --section-padding-mobile: 40px 16px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-dark);
    background-color: var(--color-white);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 64px;
}

h2 {
    font-size: 56px;
}

h3 {
    font-size: 48px;
}

h4 {
    font-size: 40px;
}

h5 {
    font-size: 26px;
}

h6 {
    font-size: 18px;
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

.body-large {
    font-size: 18px;
    line-height: 1.5;
}

.body-small {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-transform: uppercase;
}

@media (max-width: 919px) {
    h1 { font-size: 40px; }
    h2 { font-size: 36px; }
    h3 { font-size: 32px; }
    h4 { font-size: 24px; }
    h5 { font-size: 20px; }
    h6 { font-size: 18px; }
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

.section {
    padding: var(--section-padding);
}

@media (max-width: 919px) {
    .section {
        padding: var(--section-padding-mobile);
    }
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    padding-bottom: 30px;
}

.site-logo img {
    width: 241px;
    height: auto;
}

/* Main Navigation */
.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-navigation a {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: var(--color-btn-primary);
}

.main-navigation .current-menu-item a::after,
.main-navigation .current_page_item a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-btn-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-dark);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 919px) {
    .site-header .container {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .site-logo img {
        width: 98px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 20px 16px;
        gap: 20px;
        align-items: flex-end;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
    display: inline-block;
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 999px;
}

.btn-primary,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
    background-color: rgb(0, 0, 0);
    color: var(--color-white);
    padding: 16px 40px;
}

.btn-primary:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: var(--color-btn-primary-hover);
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-white);
    color: rgb(0, 0, 0);
    padding: 16px 40px;
}

.btn-secondary:hover {
    background-color: rgb(240, 240, 240);
}

.btn-contact {
    background-color: var(--color-btn-primary);
    color: var(--color-white);
    padding: 16px 40px;
}

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

@media (max-width: 919px) {
    .btn-primary,
    .btn-secondary,
    .btn-contact,
    .wp-block-button__link,
    input[type="submit"],
    button[type="submit"] {
        padding: 14px 36px;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 742px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.43);
    z-index: 2;
}

.hero-section .hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--color-white);
    padding: 40px 16px;
    max-width: 800px;
}

.hero-section .hero-content h1 {
    margin-bottom: 24px;
    color: var(--color-white);
}

.hero-section .hero-content p {
    font-size: 18px;
    margin-bottom: 32px;
    color: var(--color-white);
}

@media (max-width: 919px) {
    .hero-section {
        min-height: 400px;
    }
}

/* Hero without image fallback */
.hero-no-image {
    background: linear-gradient(135deg, var(--color-footer-bg) 0%, #1b6be0 100%);
}

.hero-no-image .hero-overlay {
    background-color: rgba(0, 0, 0, 0.15);
}

.hero-small {
    min-height: 320px;
}

@media (max-width: 919px) {
    .hero-small {
        min-height: 200px;
    }
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background-color: #f9f9f9;
}

.content-section .container {
    display: flex;
    align-items: center;
    gap: 48px;
}

.content-section .section-text {
    flex: 1;
}

.content-section .section-image {
    flex: 1;
}

.content-section .section-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

@media (max-width: 919px) {
    .content-section {
        padding: 40px 0;
    }

    .content-section .container {
        flex-direction: column;
        gap: 24px;
    }

    .content-section .container.reverse-mobile {
        flex-direction: column-reverse;
    }
}

/* ==========================================================================
   Two Column Grid
   ========================================================================== */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 919px) {
    .two-col-grid {
        grid-template-columns: 1fr;
    }
}

.three-col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 919px) {
    .three-col-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form-section {
    padding: 40px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-top: 32px;
}
.contact-layout__form {
    min-width: 0;
}
.contact-layout__image img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .contact-layout__image {
        order: -1;
    }
}

.contact-form {
    max-width: 100%;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 22px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-label);
    margin-bottom: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-secondary);
    font-size: 16px;
    color: var(--color-dark);
    background-color: var(--color-input-bg);
    border: 1px solid transparent;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--color-btn-primary);
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-input-text);
}

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

.contact-form .form-submit {
    text-align: center;
    margin-top: 24px;
}

.contact-form .form-submit .btn-contact {
    min-width: 200px;
}

/* Contact Info */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px 0;
}

.contact-info-item h6 {
    margin-bottom: 16px;
    color: var(--color-dark-alt);
}

.contact-info-item p {
    color: var(--color-dark-alt);
    margin-bottom: 8px;
}

.contact-info-item a {
    color: var(--color-dark-alt);
}

.contact-info-item a:hover {
    color: var(--color-btn-primary);
}

/* Map & Image Grid */
.map-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 40px 0;
}

.map-image-grid iframe {
    width: 100%;
    height: 424px;
    border: 0;
    border-radius: 4px;
}

.map-image-grid img {
    width: 100%;
    height: 424px;
    object-fit: cover;
    border-radius: 4px;
}

@media (max-width: 919px) {
    .contact-info-grid,
    .map-image-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .map-image-grid iframe,
    .map-image-grid img {
        height: 300px;
    }
}

/* ==========================================================================
   Social Icons
   ========================================================================== */
.social-icons {
    display: flex;
    align-items: center;
    gap: 32px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: var(--color-btn-primary);
}

.social-icons a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-icons--white a {
    color: var(--color-white);
}

.social-icons--white a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.social-icons--white a svg {
    width: 24px;
    height: 24px;
}

/* Social Follow Section */
.social-follow-section {
    padding: 40px 0;
    text-align: center;
}

.social-follow-section h6 {
    margin-bottom: 24px;
}

.social-follow-section .social-icons {
    justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-footer-bg);
    color: var(--color-white);
    padding: 40px 0 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-col h5 {
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
    color: var(--color-white);
    font-size: 16px;
    line-height: 1.5;
}

.footer-col a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    max-width: 305px;
    margin-bottom: 16px;
}

.footer-slogan {
    font-family: var(--font-lobster);
    font-size: 18px;
    color: var(--color-white);
    text-align: center;
    line-height: 1.3;
    margin-bottom: 16px;
}

.footer-certifications {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
}

.footer-certifications img {
    height: 86px;
    width: auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--color-white);
    margin: 0;
}

.footer-bottom a {
    font-size: 18px;
    color: var(--color-white);
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.footer-address p {
    margin-bottom: 0;
}

@media (max-width: 919px) {
    .site-footer {
        padding: 40px 0 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-col .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-certifications img {
        height: 60px;
    }
}

/* ==========================================================================
   WhatsApp Bubble
   ========================================================================== */
.whatsapp-bubble {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 19;
    display: flex;
    cursor: pointer;
    border-radius: 100px;
    box-shadow: rgba(0, 0, 0, 0.15) 0 4px 12px;
    transition: transform 0.3s ease;
}

.whatsapp-bubble:hover {
    transform: scale(1.1);
}

.whatsapp-bubble img,
.whatsapp-bubble svg {
    width: 56px;
    height: 56px;
}

/* ==========================================================================
   WordPress Gutenberg Block Styles
   ========================================================================== */
.wp-block-group {
    padding: 40px 0;
}

.wp-block-image img {
    border-radius: 4px;
}

.wp-block-columns {
    gap: 48px;
}

.wp-block-cover {
    min-height: 500px;
}

.alignwide {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* WordPress Editor Content */
.entry-content > * {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.entry-content > .alignfull {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.entry-content > .alignwide {
    max-width: calc(var(--container-width) + 32px);
}

/* ==========================================================================
   Page Templates
   ========================================================================== */
.page-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-dark);
}

.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.57;
}

.page-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 60px 16px;
}

.page-hero .hero-content h1 {
    color: var(--color-white);
}

/* Cards */
.card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-content {
    padding: 24px;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: var(--color-white); }
.bg-dark { background-color: var(--color-footer-bg); }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0 ,0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ================================================
   Hero Parallax & Slogan
   ================================================ */
.hero-parallax .hero-bg {
    transition: transform 0.3s ease-out;
}
.hero-slogan {
    font-family: 'Lobster', cursive;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
@media (min-width: 769px) {
    .hero-slogan {
        font-size: 1.5rem;
    }
}

/* ================================================
   Section Titles & Subtitles
   ================================================ */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark, #003366);
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 16px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary, rgb(23, 107, 224));
    border-radius: 2px;
}
.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    line-height: 1.6;
}

/* ================================================
   Counters Section
   ================================================ */
.counters-section {
    background: var(--color-dark, #003366);
    padding: 48px 0;
    color: #fff;
}
.counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.counter-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.counter-number {
    font-size: 2.75rem;
    font-weight: 700;
    color: #f9a825;
    line-height: 1;
    font-family: 'Outfit', 'Inter', sans-serif;
}
.counter-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}
@media (max-width: 768px) {
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .counter-number {
        font-size: 2rem;
    }
}

/* ================================================
   About Grid (Nosotros Preview)
   ================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-text .section-title {
    text-align: left;
}
.about-text .section-title::after {
    left: 0;
    transform: none;
}
.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}
.about-image img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-text .section-title {
        text-align: center;
    }
    .about-text .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ================================================
   Section Background Alternating
   ================================================ */
.section-bg-light {
    background-color: #f7f9fc;
}

/* ================================================
   Production Cards Grid
   ================================================ */
.produccion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}
.produccion-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.produccion-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.produccion-card__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.produccion-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.produccion-card:hover .produccion-card__image img {
    transform: scale(1.05);
}
.produccion-card__placeholder {
    background: linear-gradient(135deg, #e8edf5, #d4dce8);
}
.produccion-card__icon {
    color: var(--color-primary, rgb(23, 107, 224));
    margin-bottom: 20px;
}
.produccion-card__icon svg {
    width: 48px;
    height: 48px;
}
.produccion-card h3,
.produccion-card h6 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark, #003366);
    margin-bottom: 12px;
    padding: 0 24px;
    padding-top: 20px;
}
.produccion-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    padding: 0 24px;
    padding-bottom: 24px;
}
@media (max-width: 992px) {
    .produccion-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ================================================
   Product Detail Sections (Producción page)
   ================================================ */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.product-detail-grid--reverse {
    direction: rtl;
}
.product-detail-grid--reverse > * {
    direction: ltr;
}
.product-detail-image img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.product-detail-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark, #003366);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-detail-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}
@media (max-width: 768px) {
    .product-detail-grid,
    .product-detail-grid--reverse {
        grid-template-columns: 1fr;
        gap: 24px;
        direction: ltr;
    }
}

/* ================================================
   Beneficios Section
   ================================================ */
.beneficios-list {
    max-width: 700px;
    margin: 32px auto 0;
    list-style: none;
    padding: 0;
}
.beneficios-list li {
    position: relative;
    padding: 16px 0 16px 40px;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    border-bottom: 1px solid #eee;
}
.beneficios-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 16px;
    width: 28px;
    height: 28px;
    background: var(--color-primary, rgb(23, 107, 224));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}
.beneficios-list li:last-child {
    border-bottom: none;
}

/* ================================================
   Propósito Section (Nosotros)
   ================================================ */
.proposito-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 40px;
}
.proposito-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--color-primary, rgb(23, 107, 224));
}
.proposito-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-dark, #003366);
    margin-bottom: 16px;
}
.proposito-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}
.proposito-card__image {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 12px;
    margin: 24px auto 0;
}
@media (max-width: 768px) {
    .proposito-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ================================================
   Valores Section (Nosotros)
   ================================================ */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.valor-card {
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: 32px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.valor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}
.valor-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}
.valor-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark, #003366);
    margin: 0;
}
@media (max-width: 992px) {
    .valores-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 576px) {
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ================================================
   Gallery Section
   ================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}
.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   News Cards Grid
   ================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.news-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.news-card__body {
    padding: 20px;
}
.news-card__date {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.news-card__body h3 {
    font-size: 1.1rem;
    margin: 8px 0 12px;
    line-height: 1.4;
}
.news-card__body h3 a {
    color: var(--color-dark, #003366);
    text-decoration: none;
}
.news-card__body h3 a:hover {
    color: var(--color-primary, rgb(23, 107, 224));
}
.news-card__body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ================================================
   CTA Section
   ================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--color-dark, #003366), var(--color-primary, rgb(23, 107, 224)));
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}
.cta-section p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.cta-section .btn-primary {
    background: #fff;
    color: var(--color-primary, rgb(23, 107, 224));
    font-weight: 700;
}
.cta-section .btn-primary:hover {
    background: #f0f0f0;
}

/* ================================================
   Button Outline Variant
   ================================================ */
.btn-outline {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid var(--color-primary, rgb(23, 107, 224));
    color: var(--color-primary, rgb(23, 107, 224));
    background: transparent;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
}
.btn-outline:hover {
    background: var(--color-primary, rgb(23, 107, 224));
    color: #fff;
}

/* =============================================
   Elementor Compatibility
   ============================================= */

/* Let Elementor control full-width layout on its pages */
body.elementor-page .site-main,
body.elementor-page #main-content {
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Remove theme hero/section spacing on Elementor pages */
body.elementor-page .hero-section,
body.elementor-page .content-section,
body.elementor-page .page-header {
    display: none;
}

/* Ensure Elementor editor canvas has no theme interference */
body.elementor-editor-active .site-header {
    position: relative;
    z-index: 999;
}

/* Allow Elementor sections to stretch full width */
body.elementor-page .elementor-section.elementor-section-stretched {
    max-width: 100vw;
}

/* Keep footer visible on Elementor pages */
body.elementor-page .site-footer {
    display: block;
}
