/**
 * Pages Styles - Equipo, Publicitate, Legal Pages, Agenda, Empresas
 *
 * @package Tarancon_Digital
 */

/* Utility Classes */
.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prose {
    max-width: 65ch;
    line-height: 1.75;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose ul {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    list-style-type: disc;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose strong {
    font-weight: 600;
    color: #111827;
}

/* Page: Equipo */
.page-equipo .team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .page-equipo .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .page-equipo .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.page-equipo .team-member-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.page-equipo .team-member-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-0.25rem);
}

.page-equipo .team-member-image {
    aspect-ratio: 1 / 1;
    background: linear-gradient(to bottom right, #f3f4f6, #e5e7eb);
    overflow: hidden;
}

.page-equipo .team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-equipo .team-member-info {
    padding: 1.5rem;
}

.page-equipo .team-member-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.page-equipo .team-member-role {
    color: #2563eb;
    font-weight: 600;
}

.page-equipo .team-member-department {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Page: Publicitate */
.page-publicitate .features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .page-publicitate .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.page-publicitate .feature-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.3s;
}

.page-publicitate .feature-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.page-publicitate .feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.page-publicitate .feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.page-publicitate .feature-card p {
    color: #4b5563;
}

/* Page: Legal Pages (Aviso Legal, Política de Cookies) */
.page-legal .legal-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

@media (min-width: 640px) {
    .page-legal .legal-content {
        padding: 2.5rem;
    }
}

@media (min-width: 768px) {
    .page-legal .legal-content {
        padding: 3rem;
    }
}

.page-legal .legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-legal .legal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-legal .legal-content p {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.page-legal .legal-content ul {
    list-style-type: disc;
    list-style-position: inside;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.page-legal .legal-content li {
    padding: 0.5rem 0;
    color: #374151;
}

.page-legal .contact-box {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.page-legal .contact-box p {
    margin-bottom: 0.5rem;
}

.page-legal .contact-box strong {
    color: #111827;
}

/* Page: Agenda */
.page-agenda .calendar-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-agenda .calendar-header {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: white;
    padding: 1rem;
}

.page-agenda .calendar-header button {
    padding: 0.5rem;
    border-radius: 9999px;
    transition: background-color 0.2s;
}

.page-agenda .calendar-header button:hover {
    background-color: #1d4ed8;
}

.page-agenda .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}

.page-agenda .calendar-day {
    aspect-ratio: 1 / 1;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
}

.page-agenda .calendar-day:hover {
    background-color: #eff6ff;
}

.page-agenda .calendar-day.today {
    background-color: #dbeafe;
    font-weight: 700;
}

.page-agenda .calendar-day.selected {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

.page-agenda .event-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    margin: 0.125rem;
}

/* Page: Empresas (Business Directory) */
.page-empresas .business-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.page-empresas .business-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.page-empresas .business-card.featured {
    outline: 2px solid #2563eb;
    outline-offset: 0;
}

.page-empresas .business-card .featured-badge {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    text-align: center;
}

.page-empresas .business-logo {
    width: 5rem;
    height: 5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.page-empresas .business-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-empresas .business-logo-placeholder {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(to bottom right, #dbeafe, #bfdbfe);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Single Business Detail */
.single-empresa .contact-card {
    background: linear-gradient(to bottom right, #2563eb, #1d4ed8);
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.single-empresa .contact-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-empresa .contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.single-empresa .contact-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-empresa .location-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.single-empresa .location-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-empresa .image-gallery {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.single-empresa .gallery-main-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.single-empresa .gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.single-empresa .gallery-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.5rem;
    border-radius: 9999px;
    transition: background-color 0.2s;
}

.single-empresa .gallery-nav-button:hover {
    background: rgba(0, 0, 0, 0.75);
}

.single-empresa .gallery-nav-button.prev {
    left: 1rem;
}

.single-empresa .gallery-nav-button.next {
    right: 1rem;
}

.single-empresa .gallery-thumbnails {
    padding: 1rem;
    background: white;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.single-empresa .gallery-thumbnail {
    width: 5rem;
    height: 5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.2s;
}

.single-empresa .gallery-thumbnail:hover {
    border-color: #60a5fa;
}

.single-empresa .gallery-thumbnail.active {
    border-color: #2563eb;
    outline: 2px solid #bfdbfe;
}

.single-empresa .gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Utilities */
@media (max-width: 640px) {
    .page-equipo .team-member-name {
        font-size: 1.125rem;
    }

    .page-publicitate .feature-card h3 {
        font-size: 1.25rem;
    }

    .page-legal .legal-content h2 {
        font-size: 1.25rem;
    }
}

/* Form Styles */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.2s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form input[type="url"]:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form button[type="submit"] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.contact-form button[type="submit"]:hover {
    background: #1d4ed8;
}

.contact-form button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* Search and Filter */
.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #2563eb;
}

.search-box svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
}

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

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

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background: #eff6ff;
}

/* Cards */
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* Gradient Backgrounds */
.gradient-blue {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
}

.gradient-blue-dark {
    background: linear-gradient(to right, #1e40af, #1e3a8a);
}

.gradient-gray {
    background: linear-gradient(to bottom right, #f3f4f6, #e5e7eb);
}

/* Shadows */
.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-md {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* Transitions */
.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.transition-shadow {
    transition: box-shadow 0.3s ease;
}

/* Hidden */
.hidden {
    display: none !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

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