/* public/css/styles.css - Estilos globales */

:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 10px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    transition: var(--transition);
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #222;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Navbar */
.navbar {
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.75rem;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    margin: 0 0.25rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Main content */
main {
    min-height: calc(100vh - 140px);
}

/* Secciones */
section {
    position: relative;
}

section.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-text {
    color: #666;
    line-height: 1.5;
}

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    border-radius: 20px;
    font-size: 0.85rem;
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: #333;
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

/* Botones */
.btn {
    font-weight: 500;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-light:hover {
    background-color: #f0f0f0;
}

.btn-outline-light {
    color: white;
    border: 2px solid white;
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn i {
    font-size: 1rem;
}

/* Hero Section */
section[style*="gradient"] {
    position: relative;
    overflow: hidden;
}

section[style*="gradient"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
}

.display-4 {
    font-weight: 700;
    line-height: 1.2;
}

.display-5 {
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Tables */
.table {
    border-collapse: collapse;
}

.table thead th {
    border-top: none;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding-bottom: 1rem;
}

.table tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Forms */
.form-control,
.form-select,
textarea {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.75rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 3rem 0 1rem;
    margin-top: 0rem;
    border-top: 1px solid #333;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    color: #ccc;
    transition: var(--transition);
}

footer a:hover {
    color: white;
}

footer p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

footer .btn-outline-light {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
}

footer .btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Utilidades */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-muted {
    color: #999 !important;
}

.fw-bold {
    font-weight: 700;
}

.fw-semibold {
    font-weight: 600;
}

.fst-italic {
    font-style: italic;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-grow-1 {
    flex-grow: 1;
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.z-1 {
    position: relative;
    z-index: 1;
}

.overflow-hidden {
    overflow: hidden;
}

.rounded-3 {
    border-radius: 0.5rem;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.hover-card {
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 992px) {
    .navbar-collapse {
        padding-top: 1rem;
        border-top: 1px solid #dee2e6;
    }

    .nav-link {
        padding: 0.5rem 0;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    main {
        min-height: auto;
    }

    section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 0rem !important;
    }

    .card {
        margin-bottom: 1.5rem;
    }

    .card-img-top {
        height: 150px;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }

    .d-flex.flex-wrap {
        flex-direction: column;
    }

    .d-flex.flex-wrap > * {
        width: 100%;
    }

    .text-end {
        text-align: left !important;
    }

    footer {
        padding: 2rem 0 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    h1, .display-4, .display-5 {
        margin-bottom: 1rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    .card-body {
        padding: 1rem;
    }

    table {
        font-size: 0.9rem;
    }

    .table thead th {
        padding: 0.5rem;
    }

    .table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print */
@media print {
    .navbar,
    footer,
    .btn {
        display: none;
    }

    body {
        background-color: white;
    }

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}
/* Footer Links - hover effects */
.footer-link {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #007bff !important;
    transform: translateX(5px);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #007bff !important;
}

footer .btn-outline-light:hover {
    background-color: #007bff;
    border-color: #007bff;
    transform: translateY(-2px);
}

.parallax-mains {
    position: relative;
    /*background-image: url('https://ia.oficinavirtualmx.com/public/images/bg-main3.png');*/
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: #fff;
    padding:1px 0;
}

.parallax-main {
    position: relative;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    min-height: 100vh;
    color: #fff;
    padding:1px 0;
}
/* Overlay encima de la imagen, detrás del contenido */
.parallax-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

/* Asegura que el contenido vaya sobre el overlay */
.parallax-main > * {
    position: relative;
    z-index: 1;
}

.navbar .nav-link.btn.btn-primary {
    color: #fff !important;
}

.navbar .nav-link.btn.btn-primary i {
    color: #fff !important;
}

.bg-gradient-testimonials {
    background: linear-gradient(
        to top,
        rgba(0, 0, 255, 0.9) 0%,
        rgba(0, 0, 255, 0.0) 100%
    ) !important;
}

.navbar .btn.btn-primary {
    color:#fff !important;
}

.navbar .btn.btn-primary i {
    color:#fff !important;
}

h1 {
    text-transform: uppercase;
}

.bg-gradient-testimonials {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.0) 100%
    ) !important;
}

/* Asegurar mismo tamaño de botones en detalle de producto */
@media (max-width: 768px) {
    .product-actions .btn {
        width: auto;
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
}
/* Utilidades para ancho según breakpoint */
.w-100 {
    width: 100% !important;
}

@media (min-width: 768px) {
    .w-md-auto {
        width: auto !important;
    }
    .flex-md-grow-0 {
        flex-grow: 0 !important;
    }
}
/* Centrar texto de botones de acción en detalle de producto */
.product-actions .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
/* Botones de acción en detalle de producto */
.product-actions .btn {
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap;
}

/* En móviles: ambos botones ancho completo, misma altura visual */
@media (max-width: 767.98px) {
    .product-actions .btn {
        width: 100% !important;
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
}

/* En desktop: permitir ancho automático si prefieres más compacto */
@media (min-width: 768px) {
    .product-actions form {
        margin-bottom: 0;
    }
}
/* Botones detalle de producto: mismo tamaño y texto centrado */
.product-actions .btn {
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* En móvil: ambos a ancho completo y misma altura visual */
@media (max-width: 767.98px) {
    .product-actions .btn {
        width: 100% !important;
        font-size: 1rem;
        padding: 0.7rem 1.1rem;
    }
}

/* En desktop: botones lado a lado con ancho automático pero coherente */
@media (min-width: 768px) {
    .product-actions {
        align-items: center;
    }
    .product-actions .btn {
        width: auto !important;
        min-width: 180px;
    }
}
