/*
Theme Name: Impulsa Contadores
Theme URI: https://impulsacontadores.cl
Author: Antigravity
Description: Tema personalizado para Impulsa Contadores - Capacitación e información para contadores.
Version: 1.0.0
Text Domain: impulsa-contadores
*/

:root {
    --primary-color: #0a6d7a;
    --secondary-color: #eaa064;
    --text-color: #333333;
    --light-gray: #f4f7f8;
    --white: #ffffff;
    --section-bg-alt: #f8fafb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* Layout Utilities */
.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.btn-login {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--secondary-color);
}

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

.social-icons a {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.social-icons a:hover {
    color: var(--secondary-color);
}

/* Hero Slider */
.hero-slider {
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.main-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1.1);
    transition: transform 10s ease-out;
}

.swiper-slide-active .slide-bg {
    transform: scale(1);
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding-top: 80px;
    /* Desplaza el contenido un poco más abajo */
}

.slide-label {
    display: inline-block;
    background: rgba(10, 109, 122, 0.2);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary-color);
    padding: 8px 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transform: translateX(-20px);
}

.slide-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    color: rgba(255, 255, 255, 0.9);
}

.slide-actions {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
}

/* Animations */
.swiper-slide-active .slide-label {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.6s ease-out 0.2s;
}

.swiper-slide-active .slide-content h1 {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out 0.4s;
}

.swiper-slide-active .slide-content p {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out 0.6s;
}

.swiper-slide-active .slide-actions {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out 0.8s;
}

/* Premium Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(10, 109, 122, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(234, 160, 100, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Services Carousel Overlay Card */
.gallery-swiper {
    padding: 20px 0;
    /* Add padding to prevent clipping on hover */
    margin: -20px 0;
}

.service-slide-card {
    display: block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: var(--light-gray);
    /* Fallback */
}

.service-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pastel Variations based on Corporate Colors */
.bg-pastel-primary-1 {
    background: #e0f7f9;
}

.bg-pastel-primary-2 {
    background: #b2ebf2;
}

.bg-pastel-secondary-1 {
    background: #fff3e0;
}

.bg-pastel-secondary-2 {
    background: #ffe0b2;
}

.bg-pastel-accent {
    background: #f1f8e9;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-image i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: var(--white);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
}

.service-overlay h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

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

.service-slide-card:hover .service-image img {
    transform: scale(1.1);
}

.service-slide-card:hover .service-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Actions Section (Interactive Promo Cards) */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.action-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-card:nth-child(4),
.action-card:nth-child(5) {
    grid-column: span 1;
}

/* Adjusting grid for 5 items to look centered on bottom row if possible */
@media (min-width: 992px) {
    .actions-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .action-card:nth-child(1),
    .action-card:nth-child(2),
    .action-card:nth-child(3) {
        grid-column: span 2;
    }

    .action-card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .action-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

.action-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.action-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 109, 122, 0.9) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.action-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    z-index: 3;
    color: var(--white);
    transition: transform 0.5s ease;
}

.action-card-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.action-description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
    margin-bottom: 25px;
}

.action-description p {
    font-size: 1rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

/* Hover Effects */
.action-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(10, 109, 122, 0.3);
}

.action-card:hover .action-image img {
    transform: scale(1.15);
}

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

.action-card:hover .action-description {
    max-height: 100px;
    opacity: 1;
}

.action-card:hover .action-btn {
    transform: translateY(0);
    opacity: 1;
}

.action-card:hover::before {
    opacity: 0.95;
    background: linear-gradient(to top, var(--primary-color) 20%, rgba(0, 0, 0, 0.4) 100%);
}

@media (max-width: 991px) {
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-card:nth-child(5) {
        grid-column: span 2;
    }
}

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

    .action-card:nth-child(5) {
        grid-column: span 1;
    }

    .action-card {
        height: 320px;
    }
}

/* News Section */
.section-title {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.news-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    border: 1px solid #eee;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.news-content p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
    color: var(--secondary-color);
}

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

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

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

.social-icons-footer a {
    font-size: 1.4rem;
    color: var(--white);
}

.social-icons-footer a:hover {
    color: var(--secondary-color);
}

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

/* WhatsApp Bubble */
.whatsapp-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.whatsapp-bubble:hover {
    transform: scale(1.1);
}

/* Swiper Navigation Customization */
.main-swiper .swiper-button-next,
.main-swiper .swiper-button-prev {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: var(--transition);
}

.main-swiper .swiper-button-next::after,
.main-swiper .swiper-button-prev::after {
    font-size: 1.5rem;
    font-weight: bold;
}

.main-swiper .swiper-button-next:hover,
.main-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
}

.main-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.main-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 10px;
}

/* Section Backgrounds for Separation */
.services-carousel {
    background-color: var(--white);
}

.actions-section {
    background-color: var(--section-bg-alt);
    border-top: 1px solid rgba(10, 109, 122, 0.05);
    border-bottom: 1px solid rgba(10, 109, 122, 0.05);
}

.news-section {
    background-color: var(--white);
}

/* Responsive */
@media (max-width: 992px) {
    .buttons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-left,
    .header-right {
        order: 2;
    }

    .header-center {
        order: 1;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .slide-content h1 {
        font-size: 2.2rem;
    }

    .buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Single Post Styles */
.single-hero {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    margin-bottom: 50px;
}

.single-hero.no-thumbnail {
    background-color: #0a6d7a;
    background-image: linear-gradient(135deg, #0a6d7a 0%, #064e57 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.post-title {
    font-size: 42px;
    font-weight: 700;
    margin: 15px 0;
    line-height: 1.2;
}

.post-meta,
.post-date {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-meta i,
.post-date i {
    color: #eaa064;
    margin-right: 5px;
}

.post-meta span {
    margin: 0 10px;
}

/* Content Wrapper */
.single-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.single-article {
    background: #fff;
    padding: 0;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.entry-content p {
    margin-bottom: 25px;
}

.entry-content h2,
.entry-content h3 {
    color: #0a6d7a;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.entry-content blockquote {
    border-left: 4px solid #eaa064;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
    background: #f9f9f9;
    padding: 20px 20px 20px 30px;
    border-radius: 0 8px 8px 0;
}

/* Tags */
.post-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.post-tags a {
    background: #f1f5f6;
    color: #0a6d7a;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    margin-left: 5px;
    transition: all 0.3s;
}

.post-tags a:hover {
    background: #0a6d7a;
    color: #fff;
}

/* Post Navigation */
.post-navigation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a:hover {
    color: #eaa064;
}

/* Related Posts */
.related-posts {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

@media (max-width: 768px) {
    .single-hero {
        height: 250px;
    }

    .post-title {
        font-size: 28px;
    }

    .entry-content {
        font-size: 16px;
    }
}
/* Archive & Page Heroes */
.archive-hero, 
.page-hero {
    background-color: #0a6d7a;
    background-image: linear-gradient(135deg, #0a6d7a 0%, #064e57 100%);
    color: #fff;
    padding: 80px 0;
    margin-bottom: 50px;
    text-align: center;
}

.archive-hero h1, 
.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.archive-description, 
.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.page-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
}

/* News Grid (Archives) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: #0a6d7a;
    color: #fff;
    border-color: #0a6d7a;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 50px 0;
}

.no-results h2 {
    font-size: 2rem;
    color: #0a6d7a;
    margin-bottom: 15px;
}

.no-results p {
    color: #666;
    margin-bottom: 30px;
}

/* Related Posts Grid (No Swiper) */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Remove default styles we no longer want if they persist */
.entry-content {
    border-bottom: none !important;
}

/* Ensure related posts section has proper spacing from content */
.related-posts {
    margin-top: 0;
    padding-top: 60px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

/* Developer Attribution in Footer */
.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.developed-by {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.developed-by:hover {
    opacity: 1;
}

.developed-by img {
    height: 25px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
}
