/*
Theme Name: GARRCAN LEGAL
Description: Tema profesional para estudio jurídico GARRCAN LEGAL - Completamente personalizable desde WordPress
Version: 1.1
Author: GARRCAN LEGAL
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #1e3a8a;
}

/* Header */
.site-header {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
}

.logo-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
}

.logo-text p {
    font-size: 14px;
    color: #2563eb;
    margin: 0;
}

/* Custom Logo Styles */
.custom-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.main-nav a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #2563eb;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 16px;
}

.mobile-menu a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8, #2563eb);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

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

.hero-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-highlight {
    color: #93c5fd;
}

.hero-content p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 32px;
    color: #bfdbfe;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Stats Section */
.stats-section {
    padding: 64px 0;
    background-color: #f9fafb;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-item h3 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 8px;
}

.stat-item p {
    color: #6b7280;
    font-weight: 500;
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
}

.section-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: #dbeafe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #2563eb;
    font-size: 32px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #1d4ed8;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: #f9fafb;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
}

.about-content > p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    color: #2563eb;
    font-size: 24px;
    margin-top: 4px;
}

.feature-text h4 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.feature-text p {
    color: #6b7280;
    font-size: 14px;
}

.award-card {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 16px;
    padding: 32px;
    color: white;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.award-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.9;
}

.award-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.award-card p {
    color: #bfdbfe;
    margin-bottom: 24px;
    line-height: 1.6;
}

.award-quote {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
}

.award-quote p {
    font-size: 14px;
    color: #bfdbfe;
    margin-bottom: 8px;
}

.award-quote cite {
    font-size: 12px;
    color: #93c5fd;
    font-style: normal;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.contact-info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background-color: #dbeafe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 24px;
}

.contact-item-content h4 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.contact-item-content p {
    color: #6b7280;
    margin: 0;
}

/* Contact Form */
.contact-form-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.contact-form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
}

/* Contact Form 7 Styles */
.wpcf7 {
    margin: 0;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wpcf7-form-control-wrap {
    position: relative;
    width: 100%;
}

.wpcf7-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.wpcf7-submit {
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wpcf7-submit:hover {
    background-color: #1d4ed8;
}

.wpcf7-response-output {
    margin: 16px 0 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.wpcf7-mail-sent-ok {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}

/* Fallback Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-submit {
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit:hover {
    background-color: #1d4ed8;
}

/* Footer */
.site-footer {
    background-color: #1e3a8a;
    color: white;
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-brand .logo-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.footer-brand p {
    color: #93c5fd;
    margin: 0;
}

.footer-brand .custom-logo {
    max-height: 50px;
    width: auto;
}

.footer-description {
    color: #bfdbfe;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    margin: 0;
}

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

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

.footer-links a:hover {
    color: white;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #bfdbfe;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact-icon {
    color: #60a5fa;
    font-size: 20px;
}

.footer-bottom {
    border-top: 1px solid #1d4ed8;
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    color: #bfdbfe;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav,
    .header-contact {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-logo {
        max-height: 45px;
    }
    
    .footer-brand .custom-logo {
        max-height: 40px;
    }
    
    .logo-text h1,
    .logo-text h3 {
        font-size: 20px;
    }
    
    .logo-text p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .services-section,
    .about-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .service-card,
    .contact-info-card,
    .contact-form-card {
        padding: 24px;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .footer-brand .custom-logo {
        max-height: 35px;
    }
}

/* WordPress Specific */
.wp-block-group {
    margin: 0;
}

.alignwide {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* Customizer Styles */
.customize-partial-edit-shortcut {
    position: relative;
}

/* Admin Bar Compatibility */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}