/* Estilos principales para Optisense Industrial */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #1a2a3a, #000);
    color: white;
    text-align: center;
}

header {
    background: #1a2a3a;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

header img {
    height: 50px;
    margin-right: 15px;
    max-width: 100%;
    height: auto;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: #0f1a25;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: white;
    margin: 10px;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

nav a:hover {
    color: #4db8ff;
}

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

.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/optisense-background.jpg') center center no-repeat;
    background-size: cover;
    margin-bottom: 40px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: #0078d4;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    border: 1px solid #0091ff;
}

.cta-button:hover {
    background: #0091ff;
}

.gallery, .portfolio, .services-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.gallery-item, .portfolio-item, .service-card {
    margin: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #0078d4;
    box-shadow: 2px 2px 10px rgba(0, 150, 255, 0.1);
    width: 100%;
    max-width: 300px;
    transition: transform 0.3s;
}

.gallery-item:hover, .portfolio-item:hover, .service-card:hover {
    transform: translateY(-5px);
}

.gallery-item img, .portfolio-item img, .container img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.gallery-item h3, .portfolio-item h3, .service-card h3 {
    color: #4db8ff;
    margin-top: 15px;
}

.video-container {
    text-align: center;
    margin: 40px 0;
}

.video-container iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border: none;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #4db8ff;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: #0078d4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stats-section {
    background: rgba(10, 30, 50, 0.7);
    padding: 60px 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    width: 200px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #4db8ff;
}

.testimonials-section {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.3);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 250px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-content {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #0078d4;
    padding: 20px;
    border-radius: 5px;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.testimonial-prev, .testimonial-next {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

.testimonial-dots {
    display: flex;
    margin: 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: #4db8ff;
}

.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.contact-info, .contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form-container {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #0078d4;
    padding: 20px;
    border-radius: 5px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #0078d4;
    border-radius: 5px;
    color: white;
}

.submit-button {
    padding: 10px 20px;
    background: #0078d4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #0091ff;
}

footer {
    background: #0f1a25;
    color: white;
    text-align: center;
    padding: 40px 20px 20px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info, .footer-links, .footer-newsletter {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

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

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

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    color: #4db8ff;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #0078d4;
    border-radius: 5px 0 0 5px;
    color: white;
}

.newsletter-form button {
    padding: 10px 15px;
    background: #0078d4;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

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

.footer-bottom-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
}

.footer-bottom-links a:hover {
    color: #4db8ff;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.video-section {
    padding: 60px 0;
    text-align: center;
}

.video-container {
    max-width: 900px;
    margin: 0 auto 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 150, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.video-container video {
    display: block;
    width: 100%;
    height: auto;
}

.video-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.main-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 150, 0.2);
}
/* Estilos para el contenedor del formulario de contacto */
.contact-form-container {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #0078d4;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Estilos para los campos del formulario */
.contact-form .form-group {
    margin-bottom: 20px;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0078d4;
    background-color: rgba(255, 255, 255, 0.15);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.3);
}

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

.contact-form .submit-button {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 10px;
}

.contact-form .submit-button:hover {
    background-color: #0056b3;
}

/* Estilos para la sección de contacto */
.contact-section {
    background-color: #1a2a3a;
    color: #fff;
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info p {
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.6;
}

.contact-details {
    display: grid;
    gap: 25px;
}

.contact-item h3 {
    color: #0078d4;
    margin-bottom: 10px;
}

/* Media queries para hacer el formulario responsive */
@media screen and (max-width: 1024px) {
    .contact-grid {
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 25px;
    }
}

@media screen and (max-width: 480px) {
    .contact-section {
        padding: 50px 0;
    }
    
    .contact-form-container {
        padding: 20px;
    }
    
    .contact-form .submit-button {
        padding: 12px 20px;
    }
    
    .contact-details {
        gap: 20px;
    }
}

/* Estilos para mensajes de error y éxito */
.form-message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.form-message.success {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #fff;
}

.form-message.error {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #fff;
}
/* Estilos para la sección de publicaciones */
.publicaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.publicacion-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publicacion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.publicacion-destacada {
    border: 2px solid #0078d4;
    position: relative;
}

.publicacion-destacada::before {
    content: "Destacado";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #0078d4;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 1;
}

.publicacion-imagen {
    height: 200px;
    overflow: hidden;
}

.publicacion-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.publicacion-item:hover .publicacion-imagen img {
    transform: scale(1.05);
}

.publicacion-contenido {
    padding: 20px;
}

.publicacion-contenido h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #1a2a3a;
    font-size: 1.3em;
}

.publicacion-fecha {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.publicacion-contenido p {
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-leer-mas {
    display: inline-block;
    padding: 8px 15px;
    background-color: #0078d4;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.btn-leer-mas:hover {
    background-color: #0056b3;
}

.ver-todas-publicaciones {
    text-align: center;
    margin-top: 20px;
}

.no-publicaciones {
    text-align: center;
    padding: 40px;
    color: #666;
    grid-column: 1 / -1;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    grid-column: 1 / -1;
}

/* Estilos responsive para publicaciones */
@media screen and (max-width: 768px) {
    .publicaciones-grid {
        grid-template-columns: 1fr;
    }
