
/* Contact Page Modern Styles */

:root {
    --primary-blue: #15274d;
    --primary-green: #36A415;
    --light-bg: #fdfdfd;
    --card-shadow: 0 10px 40px rgba(0,0,0,0.06);
    --hover-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.contact-section {
    background: var(--light-bg);
    padding: 30px 0;
}

/* Contact Hero aligned with modern banners */
.contacto-hero {
    background: #031233;
    color: #ffffff;
    padding: 95px 0 46px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 300px;
}

.contacto-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: contactHeroPulse 8s ease-in-out infinite;
}

@keyframes contactHeroPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.contacto-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    text-align: center;
    margin: 0 auto;
}

.contacto-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #ffffff;
}

.contacto-hero .hero-description {
    font-size: 1.16rem;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.95);
}

/* Contact Info Cards */
.modern-contact-card {
    background: white;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
}

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

.contact-icon-wrapper {
    width: 45px;
    height: 45px;
    background: rgba(137, 180, 27, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.contact-icon-wrapper svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-green);
}

.contact-info-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.contact-info-text {
    color: #666;
    line-height: 1.6;
}

/* Search Bar Styles */
.search-container {
    max-width: 600px;
    margin: 20px auto;
    position: relative;
}

.modern-search-input {
    width: 100%;
    padding: 15px 25px;
    padding-left: 55px;
    border-radius: 50px;
    border: 2px solid transparent;
    background: white;
    box-shadow: var(--card-shadow);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modern-search-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(137, 180, 27, 0.15);
}

.search-icon-fixed {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #ccc;
}

/* Agency/Agent Grid */
.agencies-container, #agencies, #agents {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
    list-style: none;
}

/* Agency Card Styles */
.agency-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.agency-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.agency-image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.agency-img-fluid {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.agency-card:hover .agency-img-fluid {
    transform: scale(1.05);
}

.agency-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-green);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(137, 180, 27, 0.4);
}

.agency-overlay {
    position: absolute;
    inset: 0;
    background: rgba(21, 39, 77, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.agency-card:hover .agency-overlay {
    opacity: 1;
}

.waze-btn {
    background: white;
    color: var(--primary-blue);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.agency-card:hover .waze-btn {
    transform: translateY(0);
}

.agency-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.agency-card-body .title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .contacto-hero {
        min-height: 260px;
        padding: 78px 0 36px;
    }

    .contacto-hero .hero-title {
        font-size: 2.2rem;
    }

    .contacto-hero .hero-description {
        font-size: 1.02rem;
        line-height: 1.6;
    }
}

.info-group {
    margin-bottom: 15px;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-label svg {
    width: 16px;
    height: 16px;
    fill: var(--primary-green);
}

.info-value {
    color: #555;
    font-size: 0.95rem;
    padding-left: 24px;
}

.schedule-section {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 24px;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.schedule-list li .day {
    color: #888;
}

.schedule-list li .hours {
    font-weight: 700;
    color: #444;
}

.schedule-list li .hours.closed {
    color: #e74c3c;
}

/* Tabs Navigation */
.modern-tabs-container {
    display: flex;
    justify-content: center;
    margin: 15px 0 25px;
    border-bottom: 2px solid #eee;
    position: relative;
}

.modern-tabs {
    display: flex;
    position: relative;
    gap: 0;
}

.tab-link {
    background: none;
    border: none;
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: 800;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.tab-link:hover {
    color: var(--primary-blue);
}

.tab-link.active {
    color: var(--primary-green);
}

.tab-indicator {
    position: absolute;
    bottom: -2px;
    height: 4px;
    background: var(--primary-green);
    border-radius: 10px 10px 0 0;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: 2;
}

/* Tab Panels */
.tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
}

.tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Divider Images */
.section-divider-img {
    display: block;
    margin: 30px auto 15px !important;
    width: 250px !important;
    max-width: 90% !important;
}

.icons-agents-img {
    display: block;
    margin: 0 auto 40px !important;
    max-width: 100%;
}
