/* ============================================
   JULYMAG - PROFESSIONAL BUSINESS STYLES
   Based on SORK COM Design System
   ============================================ */

:root {
    --primary-color: #00A651;
    --primary-dark: #008A3D;
    --dark-bg: #1A1A1A;
    --light-bg: #F5F5F5;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #E5E5E5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--text-light);
    overflow-x: hidden;
}

/* ============================================
   TOP HEADER
   ============================================ */

.top-header {
    background-color: var(--light-bg);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.header-info {
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-info i {
    color: var(--primary-color);
    font-weight: bold;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar-custom {
    background: var(--text-light);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--light-bg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

.logo-box {
    width: 45px;
    height: 45px;
    background: var(--dark-bg);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: 4px;
    border: 2px dashed var(--primary-color);
}

.brand-text {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.brand-text small {
    font-size: 0.7rem;
    font-weight: 500;
    color: #999;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.75rem;
    position: relative;
    transition: color 0.3s ease;
    border-bottom: 2px dashed transparent;
    padding-bottom: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
}

.nav-icons {
    display: flex;
    gap: 1rem;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.btn-icon:hover {
    color: var(--primary-color);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: var(--text-light);
    padding: 2rem 0;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-bg);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-badge i {
    color: var(--primary-color);
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.hero-image {
    position: relative;
}

.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.image-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.image-offer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 6px;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features-section {
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    color: var(--dark-bg);
    margin-bottom: 1rem;
}

.feature-card h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.servicios-section {
    background: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--light-bg);
}

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

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

.service-body {
    padding: 2rem;
}

.service-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.service-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.service-features i {
    color: var(--primary-color);
    font-weight: bold;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */

.categorias-section {
    background: var(--light-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--text-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px dashed var(--border-color);
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.category-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.category-card p {
    font-size: 0.9rem;
    color: #666;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.nosotros-section {
    background: var(--text-white);
}

.nosotros-section img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-dark);
}

.about-feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contacto-section {
    background: var(--light-bg);
}

.contact-card {
    background: var(--text-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-form-container {
    background: var(--text-white);
    padding: 3rem;
    border-radius: 12px;
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-control {
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
    background: #fafafa;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #ccc;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 4rem 0 1rem;
    border-top: 2px solid var(--primary-color);
}

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

.footer-section h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 2rem 1rem;
    }

    .nav-link {
        margin: 0.5rem 0;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .scroll-top-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-white {
    color: var(--text-light);
}

.text-dark {
    color: var(--text-dark);
}

.text-center {
    text-align: center;
}

.rounded {
    border-radius: 12px;
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}


/* ============================================
   SERVICE DETAIL PAGE STYLES
   ============================================ */

.service-detail-section {
    background-color: var(--text-light);
    min-height: 100vh;
}

.service-detail-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-detail-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-detail-list {
    list-style: none;
    padding: 0;
}

.service-detail-list li {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-detail-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.service-contact-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.service-contact-box h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-contact-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-contact-box .btn {
    background-color: var(--text-light);
    color: var(--primary-color);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-contact-box .btn:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   FORM IMPROVEMENTS
   ============================================ */

.form-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 166, 81, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

/* ============================================
   CATEGORY CARD LINK STYLES
   ============================================ */

.category-card {
    text-decoration: none;
    color: inherit;
}


/* ============================================
   MISSION VISION VALUES SECTION
   ============================================ */

.mvv-section {
    background-color: #f9f9f9;
    padding: 4rem 0;
}

.mvv-card {
    background-color: var(--text-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.mvv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.mvv-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.mvv-card h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.mvv-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.values-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.values-list li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-bottom: 1px solid #eee;
}

.values-list li:last-child {
    border-bottom: none;
}


/* ============================================
   FORM LABELS & IMPROVEMENTS
   ============================================ */

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
}

.form-group {
    gap: 0.75rem !important;
}

.form-row .form-group:last-child {
    grid-column: 1 / -1;
}

.form-row .form-group:nth-child(5) {
    grid-column: 1 / -1;
}

.form-row .form-group:nth-child(6) {
    grid-column: 1 / -1;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: 'Lato', sans-serif;
}

.contact-form .btn {
    margin-top: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1.05rem;
}
