/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
} 

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* Header */
header {
    background: linear-gradient(260deg, #360d0e 0%, #AB2328 170%);
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height:100px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li {
    display: inline-block;
}

nav ul li:last-child {
    display: flex;
    align-items: center;
}


nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #f0f0f0;
}

.btn-login {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    margin-right: 0px;
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Sección Hero */
.hero {
    background-image: url('../img/hero-bg.jpg');
    background-size: 100% 120%;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}
/* Opcional: agregar overlay para mejor legibilidad */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Ajusta la opacidad según necesites */
}
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #AB2328 0%, #000000 180%);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Secciones generales */
.section {
    padding: 80px 0;
}

.section_mission {
    padding: 55px 0;
}

.section_vision {
    padding: 30px 0;
    padding-bottom: 20px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #222;
}

.section-subtitle {
    text-align: center;
    color: black;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* Sección Misión */
.stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stage-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

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

.stage-card i {
    font-size: 2.5rem;
    color: #AB2328;
    margin-bottom: 20px;
}

.stage-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.stage-card p {
    color: #666;
}

/* Sección Valores */
.values {
    background-color: #f5f7fa;
}

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

.value-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #AB2328 0%, #000000 180%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon i {
    color: white;
    font-size: 1.5rem;
}

.value-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.value-card p {
    color: #666;
}

/* Sección Trabaja con Nosotros */
.work-with-us {
    background-color: white;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.cv-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.cv-form .form-row .form-group {
    flex: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #AB2328;
    box-shadow: 0 0 0 3px rgba(171, 35, 40, 0.2);
}

/* Sección Contacto */
.combined-section {
        padding: 60px 0;
        background: #f9f9f9; /* Color de fondo opcional */
    }
    
    .two-column-layout {
        display: flex;
        gap: 40px;
    }
    
    .column {
        flex: 1;
    }
    
    .contact-column {
        background: white;
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    }
    
    .work-column {
        background: white;
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    }
    
    .info-item {
        margin-bottom: 20px;
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }
    
    .info-item i {
        font-size: 1.2rem;
        color: #AB2328; /* Color corporativo */
        margin-top: 3px;
    }
    
    @media (max-width: 768px) {
        .two-column-layout {
            flex-direction: column;
        }
    }

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

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: #AB2328;
    margin-top: 5px;
}

.info-item h3 {
    margin-bottom: 10px;
    color: #333;
}

.info-item p {
    color: #666;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

/* Sección Catálogo */
.catalog-section {
    background-color: #f5f7fa;
    padding: 80px 0;
}

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

.catalog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding-bottom: 20px;
}

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

.catalog-image {
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.catalog-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.catalog-title {
    color: #AB2328;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.catalog-date {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para el botón de descarga */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #AB2328 0%, #000000 180%);
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.download-btn i {
    margin-left: 8px;
    font-size: 0.9rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Ajustar el espaciado en las tarjetas de catálogo */
.catalog-card {
    padding-bottom: 30px; /* Aumentamos el padding para acomodar el botón */
}

/* Footer */
footer {
    background: #222;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-logo p {
    color: #aaa;
    line-height: 1.6;
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.recs {
    max-width: 9%;
    height: auto;
}

.recsa {
    max-width: 20%;
    height: auto;
}

.recsb {
    max-width: 11.5%;
    height: auto;
}

.recsba {
    position: absolute;
    max-width: 11.5%;
    height: auto;
    top: 30px;
    right: 0;
    max-width: 11.5%;
    height: auto;
}

.recsc {
    max-width: 9.5%;
    height: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .cv-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}
/* Contenedor del login */
.login-container {
    background-color: white;
    width: 100%;
    overflow: hidden;
}

/* Estilos para el carrusel de imágenes */
.image-carousel {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.carousel-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-position: center;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(171, 35, 40, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-button:hover {
    background-color: rgba(171, 35, 40, 1);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.carousel-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}

.dot.active, .dot:hover {
    background-color: #AB2328;
}

/* Encabezado */
.login-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #AB2328 0%, #000000 170%);
    color: white;
}

.logis {
    max-width: 70%;
    height: auto;
}

.logisf {
    width: 80%;
    max-width: 150%;
    height: auto !important;
}

.login-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    opacity: 0.9;
}

/* Formulario */
.login-form {
    padding: 30px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i.fa-lock {
    position: absolute;
    left: 15px;
    color: #a0aec0;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    color: #a0aec0;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: #f8fafc;
    padding-right: 45px; /* Espacio para el icono de ojo */
}

.input-with-icon input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    outline: none;
    background-color: white;
}


.toggle-password {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #667eea;
}

.toggle-password i {
    font-size: 1rem;
}
/* Opciones del formulario */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
    accent-color: #667eea;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Botón de login */
.login-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #AB2328 0%, #000000 180%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.error-message {
    color: #e53e3e;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Cambiar contraseña */
.password-change-container {
    max-width: 500px;
    margin: 80px auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.password-change-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #AB2328 0%, #000000 170%);
    color: white;
}

.password-change-header h1 {
    font-size: 1.8rem;
    margin: 20px 0 10px;
}

.password-change-header p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.password-change-form {
    padding: 30px;
}

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

.password-change-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.password-change-form .input-with-icon {
    position: relative;
}

.password-change-form .input-with-icon i:first-child {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.password-change-header .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: fit-content;
}

.password-change-header .logo img {
    width: 135px;
    max-width: 100%;
    height: auto;
    display: block;
}

.logo-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
}

.password-change-form input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: #f8fafc;
    padding-right: 45px;
}

.password-change-form input:focus {
    border-color: #AB2328;
    box-shadow: 0 0 0 3px rgba(171, 35, 40, 0.2);
    outline: none;
    background-color: white;
}

.password-change-form .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-change-form .toggle-password:hover {
    color: #AB2328;
}

.password-change-form .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 600px) {
    .password-change-container {
        margin: 40px 20px;
    }
    
    .password-change-header {
        padding: 20px;
    }
    
    .password-change-header h1 {
        font-size: 1.5rem;
    }
    
    .password-change-form {
        padding: 20px;
    }
}

/* Sweetalerts */
.swal2-container {
  z-index: 2001 !important;
}

.swal2-popup {
  z-index: 2002 !important;
}

/* Media queries para header en móvil */
@media (max-width: 768px) {
    header {
        padding: 10px 0; /* Reduce el padding vertical */
    }
    
    .logo img {
        height: 60px; /* Reduce el tamaño del logo */
    }
    
    nav ul {
        gap: 15px; /* Reduce el espacio entre elementos del menú */
    }
    
    .btn-login {
        padding: 6px 12px; /* Reduce el tamaño del botón */
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 8px 0; /* Aún más pequeño en móviles muy pequeños */
    }
    
    .logo img {
        height: 50px; /* Logo aún más pequeño */
    }
    
    nav ul {
        gap: 10px; /* Menos espacio entre elementos */
    }
    
    nav a {
        font-size: 0.9rem; /* Texto más pequeño */
    }
    
    .btn-login {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}