/* =========================================================
   SACATUSCUENTASMX
   Global Styles
   ========================================================= */

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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --background: #f6f8fc;
    --surface: #ffffff;
    --text: #172033;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    --radius: 16px;
}

/* =========================================================
   BODY & BASE STYLES
   ========================================================= */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================================
   HEADER & NAVBAR
   ========================================================= */

.site-header {
    height: 72px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1180px;
    height: 100%;
    margin: auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO FIXES */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    height: 100%;
}

/* Constrains logo image height so it never bleeds out of header */
.logo img, 
.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-icon {
    font-size: 23px;
}

.logo-highlight {
    color: var(--primary);
}

/* NAVIGATION */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary);
}

.mobile-menu-button {
    display: none;
    border: none;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
}

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

.hero {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.hero-container {
    max-width: 1180px;
    margin: auto;
    padding: 75px 24px 80px;
}

.hero-content {
    max-width: 760px;
    margin: auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #dbeafe;
    padding: 7px 14px;
    border-radius: 30px;
    font-size: 20mpx;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -2.5px;
    margin-bottom: 22px;
    font-weight: 800;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    max-width: 620px;
    margin: auto;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* SEARCH */
.search-box {
    max-width: 570px;
    height: 60px;
    margin: auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10), 0 10px 30px rgba(15, 23, 42, 0.08);
}

.search-icon {
    font-size: 27px;
    color: var(--text-secondary);
    margin-right: 12px;
    transform: rotate(-20deg);
}

.search-box input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text);
}

.search-box input::placeholder {
    color: #94a3b8;
}

/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section-container {
    max-width: 1180px;
    margin: auto;
    padding: 75px 24px;
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading.centered {
    text-align: center;
}

.section-label {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-bottom: 7px;
}

.section-heading h2 {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}

.section-heading p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* =========================================================
   CALCULATOR CARDS
   ========================================================= */

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.calculator-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.calculator-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: var(--shadow);
}

.calculator-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
}

/* Icon Background Variants */
.money-icon { background: #dcfce7; color: #15803d; }
.vacation-icon { background: #fef3c7; color: #b45309; }
.weight-icon, .area-icon, .speed-icon, .time-icon, .data-icon, .power-icon, .pressure-icon { background: #f1f5f9; color: #475569; }
.salary-icon { background: #dbeafe; color: #1d4ed8; }
.percentage-icon { background: #fce7f3; color: #be185d; }
.date-icon { background: #ede9fe; color: #7c3aed; }

.calculator-category {
    display: block;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.calculator-info h3 {
    font-size: 20px;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.calculator-info p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    max-width: 90%;
}

.card-arrow {
    position: absolute;
    right: 23px;
    bottom: 21px;
    color: var(--primary);
    font-size: 20px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.calculator-card:hover .card-arrow {
    transform: translateX(4px);
}

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

.categories-section {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 35px;
}

.category-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
    border-color: #bfdbfe;
    transform: translateY(-2px);
}

.category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #f1f5f9;
    font-size: 23px;
}

.category-card h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 13px;
}

.category-card > span:last-child {
    color: var(--primary);
    font-size: 19px;
}

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

.about-section {
    background: var(--background);
}

.about-container {
    max-width: 900px;
    margin: auto;
    padding: 80px 24px;
}

.about-content {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 45px;
    text-align: center;
    box-shadow: var(--shadow);
}

.about-content h2 {
    font-size: 34px;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.about-content p {
    max-width: 650px;
    margin: 0 auto 10px;
    color: var(--text-secondary);
    font-size: 15px;
}

/* =========================================================
   CALCULATOR PAGE & FORM STYLES
   ========================================================= */

.calculator-page {
    padding: 60px 20px 80px;
    background: #f8fafc;
}

.calculator-container {
    max-width: 760px;
    margin: 0 auto;
}

.calculator-header {
    text-align: center;
    margin-bottom: 35px;
}

.calculator-header h1 {
    margin: 0 0 12px;
    font-size: 2.2rem;
}

.calculator-header p {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.calculator-form {
    padding: 35px;
}

.calculator-page .calculator-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 35px;
    min-height: auto;
    transform: none !important;
}

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

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
}

.conversion-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 18px;
    margin-top: 25px;
}

.conversion-arrow {
    font-size: 1.6rem;
    padding-bottom: 10px;
    text-align: center;
    color: var(--text-secondary);
    font-weight: bold;
}

.calculate-button {
    display: block;
    width: 180px;
    margin: 30px auto 0;
    padding: 13px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: #2563eb;
    color: white;
    transition: background 0.2s ease, transform 0.1s ease;
}

.calculate-button:hover { background: #1d4ed8; }
.calculate-button:active { transform: translateY(1px); }

.calculator-result {
    margin-top: 30px;
    padding: 22px;
    text-align: center;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

.result-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.calculator-error {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
}

.hidden { display: none; }

/* NAVIGATION / BUTTON UTILITIES */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.back-link:hover {
    background: #eff6ff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #64748b;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-secondary:hover {
    background: #475569;
    color: #ffffff;
}

.btn-secondary:active {
    transform: translateY(1px);
}

/* =========================================================
   BANNERS & ADVERTISEMENTS
   ========================================================= */

.banner-container {
    clear: both;
    width: 100%;
    max-width: 970px;
    margin: 15px auto;
    text-align: center;
    background-color: #f5f5f5;
    padding: 10px 0;
}

.banner-container a,
.banner-container picture {
    display: block;
    width: 100%;
}

.banner-link {
    display: inline-block;
    width: 100%;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

/* =========================================================
   CONTACT PAGE STYLES
   ========================================================= */

.main-content {
    padding: 60px 20px;
    background-color: #f8fafc;
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
}

.contact-card {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 45px 35px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.contact-badge {
    display: inline-block;
    background-color: #e0f2fe;
    color: #0369a1;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 9999px;
    text-transform: uppercase;
}

.contact-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 15px 0 10px 0;
}

.contact-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-box {
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 35px;
}

.email-details {
    text-align: left;
}

.email-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 3px;
}

.email-link {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

.btn-copy {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-copy:hover {
    background-color: #1d4ed8;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: left;
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
}

.info-item h3 {
    font-size: 1.15rem;
    color: #1e293b;
    margin-bottom: 6px;
}

.info-item p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

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

.site-footer {
    background: #111827;
    color: white;
}

.footer-container {
    max-width: 1180px;
    margin: auto;
    padding: 45px 24px 25px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 7px;
}

.footer-logo span {
    color: #60a5fa;
}

.footer-container > p {
    color: #9ca3af;
    font-size: 13px;
}

.footer-bottom {
    margin-top: 35px;
    padding-top: 18px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 12px;
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================= */

@media (max-width: 850px) {
    .main-nav { display: none; }
    .mobile-menu-button { display: block; }
    .calculator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .banner-image { max-height: 60px; }
}

@media (max-width: 600px) {
    .site-header { height: 64px; }
    .header-container { padding: 0 18px; }
    .logo img, .logo-img { height: 32px; }
    .hero-container { padding: 55px 18px 60px; }
    .hero h1 { font-size: 43px; letter-spacing: -1.8px; }
    .hero p { font-size: 16px; }
    .search-box { height: 56px; }
    .section-container { padding: 55px 18px; }
    .section-heading h2 { font-size: 27px; }
    .calculator-grid { grid-template-columns: 1fr; }
    .calculator-card { min-height: 190px; }
    .category-grid { grid-template-columns: 1fr; }
    .about-container { padding: 55px 18px; }
    .about-content { padding: 32px 22px; }
    .about-content h2 { font-size: 28px; }
    .calculator-page { padding: 40px 15px 60px; }
    .calculator-form { padding: 25px 20px; }
    .calculator-header h1 { font-size: 1.8rem; }
    .conversion-row { grid-template-columns: 1fr; gap: 15px; }
    .conversion-arrow { display: none; }
    .calculate-button { width: 100%; max-width: 220px; }
}

/* Contact Box Grid Alignment */
.contact-box {
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.phone-number {
    display: block;
    font-size: 1.15rem;
    font-weight: bold;
    color: #1e293b;
}

/* WhatsApp Button Styling */
.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.btn-whatsapp:hover {
    background-color: #1da851;
    color: #ffffff !important;
    text-decoration: none;
}

.btn-whatsapp:active {
    transform: translateY(1px);
}

@media (max-width: 600px) {
    .contact-option {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-copy, .btn-whatsapp {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}