/* =========================================
   Variables Globales y Reset
   ========================================= */
:root {
    /* Paleta de colores solicitada */
    --color-primary: #565656;
    /* Gris oscuro para elementos principales y botones */
    --color-primary-dark: #3a3a3a;
    /* Variación más oscura para efectos hover */
    --color-secondary: #6d6f71;
    /* Gris medio para botones secundarios/detalles */
    --color-accent: #565656;
    /* Gris oscuro para fondos con texto blanco (ej. CTA) */

    --color-text: #565656;
    /* Texto principal oscuro */
    --color-text-light: #6d6f71;
    /* Texto secundario medio */
    --color-bg: #ffffff;
    /* Blanco de fondo principal */
    --color-bg-light: #dbd6d9;
    /* Gris muy claro para fondos de secciones alternadas */
    --color-border: #dbd6d9;
    /* Bordes claros */

    --font-main: 'Karla', sans-serif;

    --spacing-1: 0.5rem;
    --spacing-2: 1rem;
    --spacing-3: 1.5rem;
    --spacing-4: 2rem;
    --spacing-5: 3rem;
    --spacing-6: 5rem;

    --border-radius: 8px;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

/* =========================================
   Utilidades (Layouts y Containers)
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-4) 0;
}

.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mt-2 {
    margin-top: var(--spacing-2);
}

.mt-4 {
    margin-top: var(--spacing-4);
}

.bg-accent {
    background-color: var(--color-accent);
    color: #fff;
}

.experience-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-3);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-4);
}

.experience-title .section-title {
    margin-bottom: 0;
}

.experience-logo {
    height: 60px;
    width: auto;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-4);
    color: var(--color-text);
}

.bg-accent h2 {
    color: #fff;
}

.grid {
    display: grid;
    gap: var(--spacing-4);
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.experience-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .experience-grid {
        grid-template-columns: repeat(3, minmax(0, 300px));
        justify-content: center;
    }
}

/* =========================================
   Botones
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.65rem 1.3rem;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 767px) {
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        letter-spacing: 0.03em;
    }
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: #fff;
}

.btn-light {
    background-color: #fff;
    color: var(--color-accent);
}

.btn-light:hover {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

/* =========================================
    Hero Section (video de fondo)
    ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: #1d1d1b;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(29, 29, 27, 0.8) 0%, rgba(29, 29, 27, 0.35) 42%, rgba(29, 29, 27, 0.55) 68%, rgba(29, 29, 27, 0.9) 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-5) 0;
}

.hero-logo {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

@media (max-width: 767px) {
    .hero-logo {
        max-width: 280px;
    }
}

/* =========================================
   About Section
   ========================================= */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-4);
    color: #ffffff;
}

.about-content strong {
    font-weight: 700;
}

/* =========================================
   About + Properties Sections
   ========================================= */
.about-section,
.properties-section {
    background: linear-gradient(180deg, rgba(72,72,72,0.88) 0%, rgba(72,72,72,0.88) 100%),
        url('../assets/Raclas-para-flexografia-3-1.png') center center / cover fixed no-repeat;
    color: #ffffff;
    padding: var(--spacing-3) 0;
}

.properties-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-4);
    color: #ffffff;
    padding-bottom: var(--spacing-3);
    border-bottom: 3px solid #d32f2f;
    display: inline-block;
}

.properties-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.properties-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-4);
    padding: var(--spacing-4) 0;
    border-bottom: 2px solid #d32f2f;
    align-items: start;
}

.properties-row:last-child {
    border-bottom: none;
}

.property-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
}

.property-spec {
    font-size: 0.9rem;
    color: #e0e0e0;
    font-weight: 400;
}

.property-description p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ffffff;
}

@media (max-width: 768px) {
    .properties-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-3);
    }
    
    .properties-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

.card {
    background-color: var(--color-bg);
    padding: var(--spacing-4);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card img {
    margin: 0 auto var(--spacing-3) auto;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.card h3 {
    margin-bottom: var(--spacing-2);
    font-size: 1.3rem;
}

.card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.benefits {
    background: linear-gradient(rgba(235, 235, 235, 0.82), rgba(235, 235, 235, 0.82)),
        url('../assets/fondo_Modelos_Section.jpg') center center / cover fixed no-repeat;
}

.benefit-card,
.exp-card {
    background: rgba(200, 200, 200, 0.84);
    box-shadow: none;
    padding: var(--spacing-3);
}

.benefit-card:hover,
.exp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.card-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto var(--spacing-2) auto;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.benefit-card .card-icon svg {
    stroke: #d32f2f;
}

.exp-card .card-icon svg {
    stroke: #3a3a3a;
    opacity: 0.8;
}

.benefit-card h3,
.exp-card h3 {
    color: #1d1d1b;
    font-size: 1.05rem;
    margin-bottom: var(--spacing-1);
}

.benefit-card p,
.exp-card p {
    color: #3a3a3a;
    font-size: 0.88rem;
}

.benefits .container {
    padding-top: var(--spacing-5);
    padding-bottom: var(--spacing-5);
}

/* =========================================
   Modelos Section
   ========================================= */
.modelos {
    background: linear-gradient(rgba(235, 235, 235, 0.82), rgba(235, 235, 235, 0.82)),
        url('../assets/fondo_Modelos_Section.jpg') center center / cover fixed no-repeat;
}

.experience {
    background: linear-gradient(rgba(235, 235, 235, 0.82), rgba(235, 235, 235, 0.82)),
        url('../assets/fondo_Modelos_Section.jpg') center center / cover fixed no-repeat;
}

.modelos-images {
    display: flex;
    gap: var(--spacing-4);
    justify-content: center;
    align-items: flex-start;
    margin-bottom: var(--spacing-5);
}

.modelo-img {
    max-width: 48%;
    height: auto;
}

.modelos-cta {
    text-align: center;
}

@media (max-width: 767px) {
    .modelos-images {
        flex-direction: column;
        align-items: center;
    }

    .modelo-img {
        max-width: 92%;
    }
}

/* =========================================
   CTA Section
   ========================================= */
.cta {
    padding: var(--spacing-6) 0;
}

.cta-content {
    display: grid;
    grid-template-columns: 35% 1fr;
    grid-template-areas:
        "text map"
        "btn  map";
    align-items: center;
    column-gap: var(--spacing-3);
    row-gap: var(--spacing-3);
}

.cta-text {
    grid-area: text;
    color: #fff;
}

.cta-btn {
    grid-area: btn;
    justify-self: start;
}

.cta-icon {
    margin-bottom: var(--spacing-3);
}

.cta h2 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-3);
    color: #fff;
    padding-bottom: var(--spacing-3);
    border-bottom: 3px solid #d32f2f;
    display: inline-block;
}

.cta p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: var(--spacing-4);
    opacity: 0.85;
    color: #fff;
}

.cta-map {
    grid-area: map;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-map img {
    width: 100%;
    max-width: 820px;
    height: auto;
    opacity: 0.9;
}

@media (max-width: 767px) {
    .cta {
        overflow: hidden;
    }

    .cta-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "map"
            "btn";
    }

    .cta-text {
        text-align: center;
    }

    .cta-btn {
        justify-self: center;
    }

    .cta-icon {
        display: flex;
        justify-content: center;
    }

    .cta h2 {
        font-size: 1.5rem;
    }

    .cta-map img {
        width: 115%;
        max-width: 115%;
        margin-left: -7.5%;
    }
}

/* =========================================
   Social Proof Section
   ========================================= */
.social-proof {
    background: #fff;
    padding: var(--spacing-6) 0;
}

.social-proof-tagline {
    font-style: italic;
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 auto var(--spacing-5) auto;
    line-height: 1.75;
}

.social-proof-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-4);
}

.social-proof-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-5);
}

.social-proof-logos img {
    height: 65px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.social-proof-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.social-proof-cta-text {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.75;
    margin-bottom: var(--spacing-4);
}

.btn-pill {
    border-radius: 50px;
    padding: 0.9rem 2.8rem;
    background-color: #1d1d1b;
}

.btn-pill:hover {
    background-color: #3a3a3a;
    color: #fff;
}

/* =========================================
   Footer & Contacto
   ========================================= */
.footer {
    background-color: var(--color-bg);
    padding: var(--spacing-5) 0 var(--spacing-2) 0;
    border-top: 1px solid var(--color-border);
}

.contact-form-container h2 {
    margin-bottom: var(--spacing-2);
}

.contact-form-container p {
    margin-bottom: var(--spacing-4);
    color: var(--color-text-light);
}

.form-group {
    margin-bottom: var(--spacing-3);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

@media (max-width: 767px) {
    .form-group input,
    .form-group textarea {
        width: 85%;
        padding: 0.65rem;
        font-size: 0.9rem;
    }
}

.submit-btn {
    width: 100%;
}

@media (max-width: 767px) {
    .submit-btn {
        width: 85%;
    }
}

.form-success {
    padding: var(--spacing-4);
    background: rgba(86, 86, 86, 0.08);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-weight: 600;
    font-size: 1.05rem;
}

/* =========================================
   Botón y Modal: Tratamiento de Datos
   ========================================= */
.btn-privacy {
    display: block;
    margin: var(--spacing-2) auto 0;
    padding: 0.45rem 0.9rem;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-light);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-privacy:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.privacy-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.privacy-modal.is-open {
    display: flex;
}

.privacy-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.privacy-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: var(--spacing-5) var(--spacing-4) var(--spacing-4);
    box-shadow: var(--shadow-medium);
}

.privacy-modal-dialog h2 {
    margin-bottom: var(--spacing-3);
    color: var(--color-text);
}

.privacy-modal-dialog h3 {
    margin-top: var(--spacing-3);
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-size: 1.05rem;
}

.privacy-modal-dialog p {
    margin-bottom: 0.75rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.privacy-modal-close {
    position: absolute;
    top: var(--spacing-2);
    right: var(--spacing-2);
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    color: var(--color-text-light);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.privacy-modal-close:hover {
    color: var(--color-primary);
}

.contact-info h3 {
    margin-bottom: var(--spacing-4);
}

@media (max-width: 767px) {
    .contact-info {
        margin-top: var(--spacing-3);
        padding-top: var(--spacing-4);
        border-top: 1px solid var(--color-border);
    }
}

.info-list li {
    margin-bottom: var(--spacing-2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-list li svg {
    flex-shrink: 0;
}

.footer-bottom {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

