/* ============================================
   MAIN STYLESHEET - Juan&Carlos Abogados
   Mobile-First, Fully Responsive Design
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #fafbfc;
    letter-spacing: 0.3px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1a2332;
    letter-spacing: -0.5px;
    margin-bottom: 1.2rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.8rem;
    color: #003d82;
    line-height: 1.3;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #1a2332;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.2rem;
    color: #4a5568;
    line-height: 1.8;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: #003d82;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 61, 130, 0.15);
}

.btn-primary:hover {
    background-color: #002555;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 61, 130, 0.25);
}

.btn-secondary {
    background-color: #00a8e8;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 168, 232, 0.15);
}

.btn-secondary:hover {
    background-color: #0089ba;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 168, 232, 0.25);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
    padding: 0;
    border-bottom: 2px solid transparent;
}

.btn-link:hover {
    border-bottom-color: var(--primary-color);
    color: var(--primary-dark);
}

/* Links */
a {
    color: #003d82;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00a8e8;
}

/* Main Layout */
main {
    min-height: 60vh;
}

/* Sections */
section {
    padding: 60px 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    section {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-light {
    color: #666;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lists */
ul, ol {
    margin-left: 20px;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Forms */
form {
    max-width: 500px;
    margin: 0 auto;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #003d82;
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #003d82;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #002555;
}