/* Paleta de Colores (Rediseño) */
:root {
    --primary-blue: #212121;    /* Azul Medianoche (Principal Oscuro) */
    --accent-red: #EE3233;      /* Rojo (Acento Fuerte) */
    --accent-gold: #f3c940;     /* Dorado (Detalles y Hover) */
    --light-bg: #F5F5F5;        /* Fondo Claro/Gris suave */
    --text-dark: #212121;       /* Texto Oscuro */
    --text-light: #9E9E9E;      /* Texto Gris Suave */
    --white: #ffffff;
}

/* Estilos Generales y Tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 15px;
}

.placeholder {
    background: var(--light-bg);
    border: 1px dashed var(--text-light);
    padding: 60px 20px;
    text-align: center;
    color: var(--text-light);
    border-radius: 8px;
    font-style: italic;
    width: 100%;
}

/* Botones (Rediseño) */
.btn-primary-redesign {
    display: inline-block;
    background: var(--accent-red);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.btn-primary-redesign:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-secondary-redesign {
    display: inline-block;
    background: transparent;
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-secondary-redesign:hover {
    background: var(--accent-gold);
    color: var(--text-dark);
    border-color: var(--accent-gold);
}


/* Header */
.menu-icon,
.menu-toggle {
    display: none; /* Ocultar por defecto en escritorio */
}

.main-header {
    background: var(--accent-gold); /* CAMBIO: Fondo Dorado */
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 120px;
    height: auto;
    filter: none; /* CAMBIO: Se remueve el filtro para que el logo se vea oscuro en el fondo claro */
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

.main-nav ul li a {
    color: var(--primary-blue); /* CAMBIO: Texto oscuro para contraste en fondo dorado */
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.95rem;
    display: block;
}

.main-nav ul li a:hover {
    background-color: var(--primary-blue); /* CAMBIO: Fondo oscuro al hacer hover */
    color: var(--white); /* CAMBIO: Texto blanco al hacer hover */
}

.main-nav ul li a.nav-active {
    background-color: var(--accent-red);
    color: var(--white);
}

main{
    margin-top: 40px;
}

.hero-redesign {
    position: relative;
    padding: 150px 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)); /* Fondo oscuro para el texto */
    text-align: center;
}

.hero-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2; /* Reduce la opacidad para que el texto sea legible */
    background: url('') no-repeat center center/cover;
    border: none; /* Eliminar el borde del placeholder en el hero */
    padding: 0;
    border-radius: 0;
}

#Video-hero{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    opacity: 0.8; /* Reduce la opacidad para que el texto sea legible */
}

.hero-content-redesign {
    color: var(--white);
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-content-redesign h1 {
    color: var(--accent-gold);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-content-redesign p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions a {
    margin: 0 10px;
} 

/* SECCIÓN DE SERVICIOS REDISEÑADA */
.featured-services-redesign {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.featured-services-redesign h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--accent-red);
}

.services-grid-redesign {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card-redesign {
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 5px solid var(--primary-blue);
    text-align: center;
}

.service-card-redesign:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-bottom: 5px solid var(--accent-red);
}

.service-card-redesign i {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 15px;
}

.service-card-redesign h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.service-card-redesign p {
    color: var(--text-dark);
    margin-bottom: 20px;
}

.service-card-redesign img{
    width: 140px;
    display: block;
    margin: auto;
    margin-bottom: 12px;
}

/* Estilos Específicos para el Badge ISO */
.iso-badge-container {
    margin: 20px auto;
    padding: 15px;
    background-color: var(--white);
    border: 1px dashed var(--accent-gold);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 180px;
}

.iso-badge-img {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
    border: 1px solid var(--light-bg);
}

.iso-badge-container .placeholder-text {
    font-size: 0.8rem;
    color: var(--accent-red);
    font-weight: 600;
}

/* Footer */
.main-footer {
    background: var(--text-dark);
    color: var(--light-bg);
    padding: 40px 0 0;
}

.footer-grid-redesign {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 30px;
}

.footer-contact h3,
.footer-links h3 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-contact p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-contact strong {
    font-weight: 500;
}

.footer-contact i {
    color: var(--accent-red);
    margin-right: 10px;
    width: 15px;
    text-align: center;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li a {
    color: var(--light-bg);
    text-decoration: none;
    line-height: 2.2;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--accent-gold);
}

.footer-logo-area {
    text-align: right;
}

.footer-logo img {
    width: 150px;
    height: auto;
}

.footer-bottom-redesign {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Media Queries para Responsividad */
/* Media Queries para Responsividad */
/* Media Queries para Responsividad */
@media (max-width: 992px) {
    /* ... (Mismo código que tenías) ... */
    .hero-content-redesign h1 {
        font-size: 2.5rem;
    }
    .footer-grid-redesign {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo-area {
        text-align: center;
        order: -1;
    }
    .footer-contact p {
        text-align: center;
    }
}

@media (max-width: 767px) {
    #Video-hero{
      
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        /* 🛠️ MODIFICACIONES PARA COBERTURA */
        height: 100%; 
        object-fit: cover; /* Asegura que el video cubra el área sin distorsionarse */
        /* --------------------------------- */
        z-index: -1;
        opacity: 0.8;

    }

    h1,h2,h3{
        text-align: center;
    }

    p{
        text-align: justify;
    }

    .header-grid {
        /* Asegura que el logo y el botón estén en la misma línea */
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    /* Mostrar el icono de hamburguesa */
    .menu-icon {
        display: block;
        color: var(--primary-blue);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 10px;
    }

    /* Ocultar el checkbox de control */
    .menu-toggle {
        display: none;
    }

    /* Ocultar la navegación por defecto */
    .main-nav {
        /* Estilos para el menú desplegable */
        position: absolute;
        top: 100%; /* Colocar debajo del header */
        left: 0;
        width: 100%;
        background-color: var(--primary-blue); /* Fondo oscuro para el menú */
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        max-height: 0; /* Ocultar el contenido */
        overflow: hidden; /* Ocultar lo que se sale del límite */
        transition: max-height 0.4s ease-out; /* Animación de despliegue */
        z-index: 900;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch; /* Estirar los elementos al 100% */
        padding: 10px 0;
    }
    
    .main-nav ul li a {
        color: var(--white); /* Texto claro en el fondo oscuro del menú */
        padding: 15px 25px;
        border-radius: 0;
        font-size: 1rem;
    }

    .main-nav ul li a:hover {
        background-color: var(--accent-red);
    }
    
    /* LÓGICA DE VISIBILIDAD: Muestra el menú cuando el checkbox está marcado */
    .menu-toggle:checked ~ .main-nav {
        max-height: 500px; /* Suficiente altura para mostrar todo el menú */
        border-top: 2px solid var(--accent-red);
    }

    /* Otros estilos de media query */
    .hero-content-redesign h1 {
        font-size: 2rem;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}


/* Hero Section (Rediseño) */
.hero-redesign {
    position: relative;
    padding: 150px 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)); /* Fondo oscuro para el texto */
    text-align: center;
}

.hero-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2; /* Reduce la opacidad para que el texto sea legible */
    background: url('') no-repeat center center/cover;
    border: none; /* Eliminar el borde del placeholder en el hero */
    padding: 0;
    border-radius: 0;
}

.hero-content-redesign {
    color: var(--white);
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-content-redesign h1 {
    color: var(--accent-gold);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-content-redesign p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions a {
    margin: 0 10px;
}