/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    color: #091B26;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #FFFFFF;
    padding-top: 100px; /* Espacio para el header fijo */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header fijo */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo img {
    height: 70px;
    vertical-align: middle;
}

/* Navegación principal */
.nav-links ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links ul li a {
    text-decoration: none;
    color: #142F40;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links ul li a:hover,
.nav-links ul li a.active {
    color: #03A696;
}

.nav-links ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #03A696;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #FFFFFF;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 5px;
    padding: 10px 0;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    display: block;
    padding: 8px 15px;
    color: #142F40;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #F3F3F4;
    color: #03A696;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Botón de contacto */
.contact-button a {
    background-color: #03A696;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-right: 20px;
}

.contact-button a:hover {
    background-color: #026873;
}

.contact-button a i {
    font-size: 16px;
    margin-left: 5px;
}

/* Menú de hamburguesa */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #142F40;
    margin: 2px 0;
    transition: 0.3s;
}

/* Estilos para el menú móvil */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #FFFFFF;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 999;
    padding: 80px 20px 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-menu ul li {
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #E6E8E9;
}

.mobile-menu ul li:last-child {
    border-bottom: none;
}

.mobile-menu ul li a {
    color: #142F40;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px 0;
}

.mobile-menu ul li a:hover {
    background-color: #F3F3F4;
}

.contact-button-mobile {
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.contact-button-mobile a {
    background-color: #03A696;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-button-mobile a:hover {
    background-color: #026873;
}

/* Hero Section para blog */
.hero-blog {
    position: relative;
    width: 100%;
    height: 350px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../Imagenes/18.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    margin-top: 0;
}

.hero-blog h1 {
    position: relative;
    z-index: 1;
    font-size: 3.5em;
    margin: 0 0 20px 0;
    color: #FFFFFF;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-blog p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Sección Blog */
.blog-content {
    padding: 80px 0;
    background-color: #F8F9FA;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #03A696;
    color: #FFFFFF;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    line-height: 1.2;
}

.blog-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.blog-date .month {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
}

.blog-date .year {
    display: block;
    font-size: 12px;
}

.blog-info {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6C757D;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    color: #03A696;
}

.blog-info h3 {
    font-size: 20px;
    color: #142F40;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-info h3 a:hover {
    color: #03A696;
}

.blog-info p {
    color: #6C757D;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #03A696;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 12px;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 2px solid #E9ECEF;
    border-radius: 5px;
    color: #6C757D;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    border-color: #03A696;
    color: #03A696;
}

.page-link.active {
    background-color: #03A696;
    border-color: #03A696;
    color: #FFFFFF;
}

.page-link.prev,
.page-link.next {
    gap: 8px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #026873 0%, #03A696 100%);
    color: #FFFFFF;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.newsletter-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.newsletter-form button {
    background-color: #142F40;
    color: #FFFFFF;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #091B26;
}

/* Estilos específicos para la página de Noticias */

.newsletter .alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.newsletter .alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.newsletter .hidden {
    display: none;
}

/* Footer */
.main-footer {
    background-color: #142F40;
    color: #FFFFFF;
    padding: 60px 0 20px;
    font-size: 15px;
}

.main-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 280px;
}

.footer-logo img {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer-column p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #B0BEC5;
}

.social-icons {
 display: flex;
 gap: 15px;
 margin-top: 20px;
 }

 .social-icon {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 40px;
 height: 40px;
 background-color: #026873;
 border-radius: 50%;
 transition: all 0.3s ease;
 text-decoration: none;
 color: white;
 }

 .social-icon:hover {
 transform: translateY(-5px);
 }

 .social-icon:hover i {
 animation: rotate360 0.5s ease forwards;
 }

 @keyframes rotate360 {
 from {
 transform: rotate(0deg);
 }
 to {
 transform: rotate(360deg);
 }
 }

 .social-icon i {
 font-size: 18px;
 }

 .social-icon.facebook:hover {
 background-color: #3b5998;
 }

 .social-icon.linkedin:hover {
 background-color: #0077b5;
 }

 .social-icon.instagram:hover {
 background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
 }

 .social-icon.youtube:hover {
 background-color: #ff0000;
 }

.footer-column h3 {
    font-size: 18px;
    color: #03A696;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #03A696;
}

.footer-column ul {
    list-style: none;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #B0BEC5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #03A696;
}

.recent-post {
    margin-bottom: 20px;
}

.recent-post a {
    display: block;
    color: #B0BEC5;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.recent-post a:hover {
    color: #03A696;
}

.recent-post span {
    font-size: 13px;
    color: 6C757D;
}

.footer-bottom {
    border-top: 1px solid #37474F;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: #B0BEC5;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

/* WhatsApp Floating Button - MEJORADO */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.whatsapp-main-button {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    z-index: 1002;
}

.whatsapp-main-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-main-button i {
    font-size: 42px;
}

/* Efecto de notificación pulsante */
.notification-pulse {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    background-color: #FF4081;
    border-radius: 50%;
    animation: pulse 2s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 15px;
    font-weight: bold;
}

.notification-pulse::before {
    content: "3";
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 64, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 64, 129, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 64, 129, 0);
    }
}

.whatsapp-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.whatsapp-buttons-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-button {
    background: white;
    color: #333;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    width: 160px;
    border: 2px solid transparent;
}

.whatsapp-button i {
    font-size: 18px;
    min-width: 20px;
}

.whatsapp-button.sales {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
}

.whatsapp-button.operations {
    background: linear-gradient(135deg, #28A745, #20C997);
    color: white;
}

.whatsapp-button.support {
    background: linear-gradient(135deg, #007BFF, #0056B3);
    color: white;
}

.whatsapp-button:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Animación de aparición escalonada para los botones */
.whatsapp-buttons-container.active .whatsapp-button:nth-child(1) {
    transition-delay: 0.1s;
}

.whatsapp-buttons-container.active .whatsapp-button:nth-child(2) {
    transition-delay: 0.2s;
}

.whatsapp-buttons-container.active .whatsapp-button:nth-child(3) {
    transition-delay: 0.3s;
}

/* Tooltip para el botón principal */
.whatsapp-main-button::after {
    content: "Contáctanos por WhatsApp";
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-main-button:hover::after {
    opacity: 1;
    visibility: visible;
    right: 85px;
}

/* Responsive para WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-main-button {
        width: 60px;
        height: 60px;
    }

    .whatsapp-main-button i {
        font-size: 28px;
    }

    .notification-pulse {
        width: 22px;
        height: 22px;
        font-size: 15px;
    }

    .whatsapp-button {
        width: 140px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .whatsapp-button i {
        font-size: 16px;
    }

    .whatsapp-main-button::after {
        content: "WhatsApp";
        right: 70px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .whatsapp-main-button:hover::after {
        right: 75px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-main-button {
        width: 55px;
        height: 55px;
    }

    .whatsapp-main-button i {
        font-size: 35px;
    }

    .whatsapp-buttons-container {
        gap: 10px;
    }

    .whatsapp-button {
        width: 130px;
        padding: 8px 14px;
        font-size: 12px;
    }

    .whatsapp-main-button::after {
        display: none; /* Ocultar tooltip en móviles muy pequeños */
    }
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links,
    .contact-button {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header {
        padding: 10px 20px;
    }

    .header .logo img {
        height: 60px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
    }

    .header .logo img {
        height: 50px;
    }
    
    .hero-blog h1 {
        font-size: 2.5em;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .main-footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 40px;
        width: 100%;
    }

    .footer-column:last-child {
        margin-bottom: 0;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-icons {
        justify-content: center;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 80px;
    }

    .header {
        padding: 8px 10px;
    }

    .header .logo img {
        height: 70px;
    }
    
    .hero-blog {
        height: 250px;
    }
    
    .hero-blog h1 {
        font-size: 2em;
    }
    
    .hero-blog p {
        font-size: 1em;
        padding: 0 20px;
    }
    
    .blog-content {
        padding: 40px 0;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .main-footer {
        padding: 40px 0 15px;
    }

    .footer-logo img {
        max-width: 250px;
    }

    .footer-column h3 {
        font-size: 16px;
    }

    .footer-column p, 
    .footer-column ul li a, 
    .footer-bottom p {
        font-size: 15px;
    }
}

/* Transiciones para elementos del footer */
.footer-column {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Estilo para mensajes de error */
.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}