* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00020A;
    --secondary-color: rgba(70, 90, 120, 0.8);
    --accent-color: rgba(70, 90, 120, 0.9);
    --text-color: #f0f0f0;
    --light-text: #e0e0e0;
    --muted-text: #a0a0a0;
    --light-bg: #00020A;
    --card-bg: #050A14;
    --border-color: #1a1a2a;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.7);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --rating-color: #FFD700; /* Color amarillo para las estrellas */
    --reviews-bg: #050A14; /* Fondo oscuro para la sección inferior */
    --reviews-text: #f0f0f0; /* Texto claro para secciones con fondo oscuro */
    --reviews-border: #1a1a2a; /* Bordes sutiles para elementos en sección oscura */
    --reviews-shadow: 0 4px 6px rgba(0, 0, 0, 0.7); /* Sombra para elementos */
    --reviews-accent: rgba(70, 90, 120, 0.9); /* Color de acento para elementos en sección oscura */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

a:hover {
    color: rgba(70, 90, 120, 1);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: rgba(70, 90, 120, 0.8);
    color: var(--text-color);
    border: 1px solid rgba(70, 90, 120, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(70, 90, 120, 0.3);
}

.btn-primary:hover {
    background-color: rgba(70, 90, 120, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(70, 90, 120, 0.5);
    border-color: rgba(70, 90, 120, 1);
}

.btn-secondary {
    background-color: rgba(70, 90, 120, 0.2);
    color: rgba(70, 90, 120, 0.9);
    border: 1px solid rgba(70, 90, 120, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(70, 90, 120, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(70, 90, 120, 0.8);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(70, 90, 120, 0.4);
    border-color: rgba(70, 90, 120, 0.8);
}

.btn-footer {
    background-color: var(--text-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.btn-footer:hover {
    background-color: #e0e0e0;
}

.btn-footer::after {
    content: "→";
    margin-left: 10px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: #00020A;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 10px;
    transition: all 0.4s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.4s ease;
    color: var(--text-color);
}

.header-icons {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-notification, .icon-search, .icon-profile {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.icon-profile img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--accent-color);
}

.profile-dropdown:hover .dropdown-content {
    display: block;
}

nav {
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

/* Empresa Banner */
.empresa-banner {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 0;
    margin-bottom: 20px; /* Añadir espacio inferior para evitar superposición */
    display: flex;
    align-items: flex-end;
    animation: fadeIn 1s ease;
    overflow: hidden;
    transition: all 0.5s ease;
    z-index: 1; /* Establecer z-index base */
}

.empresa-banner:hover {
    height: 530px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    transition: all 0.5s ease;
    z-index: 2; /* Asegurar que esté por encima del banner pero por debajo de los elementos de información */
}

.empresa-info {
    position: relative;
    z-index: 5; /* Aumentar z-index para estar por encima del overlay */
    display: flex;
    align-items: flex-end;
    padding-bottom: 30px;
    color: white;
    width: 100%;
    flex-wrap: wrap; /* Permitir que los elementos se envuelvan en pantallas pequeñas */
}

.empresa-logo {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 30px;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    background-color: white;
    transition: all 0.3s ease;
}

.empresa-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.empresa-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.empresa-logo:hover img {
    transform: scale(1.1);
}

.empresa-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.empresa-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    position: relative;
    z-index: 10; /* Asegura que esté por encima de otros elementos */
}

.industria {
    background-color: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.ubicacion {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 40px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    position: relative;
    z-index: 15; /* Mayor z-index para asegurar que esté por encima de otros elementos */
}

.rating-summary:hover {
    background-color: rgba(255,255,255,0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.35);
}

.stars {
    color: var(--rating-color);
    display: flex;
    gap: 4px;
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

.rating-value {
    font-weight: bold;
    margin-right: 5px;
    font-size: 1.3rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.rating-count {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Main Content */
main {
    min-height: 100vh;
    background-color: var(--primary-color);
    padding: 30px 0;
    position: relative;
}



.empresa-content {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 2fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1.5fr 1fr;
        gap: 25px;
    }
}

.empresa-main {
    animation: fadeIn 1s ease;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.empresa-sidebar {
    animation: fadeIn 1.2s ease;
    grid-column: 1 / -1; /* Ocupa todo el ancho */
}

section {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 40px 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

/* Secciones que ocupan todo el ancho */
.empresa-descripcion, .empresa-reviews, .sidebar-section {
    grid-column: 1 / -1; /* Ocupa todo el ancho */
}

.empresa-galeria, .empresa-servicios {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Descripción */
.empresa-descripcion {
    margin-top: 20px; /* Añadir espacio superior para evitar superposición con el banner */
    position: relative;
    z-index: 5; /* Menor z-index que los elementos del banner */
}

.empresa-descripcion p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.empresa-detalles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.detalle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detalle i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Galería */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.galeria-item {
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: var(--card-shadow);
    position: relative;
    border: 1px solid var(--border-color);
}

.galeria-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.galeria-item:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
}

.galeria-item:hover::before {
    opacity: 1;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.galeria-item:hover img {
    transform: scale(1.1);
}

/* Modal para galería */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 5px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-secondary);
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s;
}

/* Reviews */
.empresa-reviews {
    margin-bottom: 0;
    width: 100%;
}

.galeria-servicios-container,
.ofertas-reviews-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    margin-bottom: 30px;
}

/* Aseguramos que las reseñas aparezcan a la derecha de las ofertas */
.empresa-ofertas {
    grid-column: 1;
    grid-row: 1;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.empresa-reviews {
    grid-column: 2;
    grid-row: 1;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1.2rem;
    position: relative;
}

.reviews-header h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
}

.reviews-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, rgba(70, 90, 120, 0.9), transparent);
}

.review-form {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    animation: fadeIn 0.5s ease-out;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.review-form:hover {
    box-shadow: var(--reviews-shadow);
    transform: translateY(-3px);
    border-color: var(--reviews-accent);
}

.review-form h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.rating-input {
    margin-bottom: 1.5rem;
}

.rating-input p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Estilos para la sección de servicios */
.empresa-galeria {
    margin-bottom: 0;
    animation: fadeIn 0.8s ease-in-out;
    width: 100%;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.servicio-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.servicio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    background-color: rgba(5, 10, 20, 0.9);
    border-color: var(--accent-color);
}

.servicio-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--light-text);
    font-size: 24px;
    transition: all 0.3s ease;
}

.servicio-item:hover .servicio-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.servicio-item h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--text-color);
}

.servicio-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Estilos para la sección de ofertas laborales */
.empresa-servicios {
    margin-bottom: 0;
    animation: fadeIn 0.8s ease-in-out;
    width: 100%;
}

.empresa-ofertas {
    margin-bottom: 0;
    animation: fadeIn 0.8s ease-in-out;
    width: 100%;
}

.ofertas-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.oferta-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0; /* Evita que el contenido haga que la tarjeta crezca */
}

.oferta-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    background-color: rgba(5, 10, 20, 0.9);
    border-color: var(--accent-color);
}

.oferta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.oferta-header h3 {
    font-size: 20px;
    color: var(--text-color);
    margin: 0;
    font-weight: 600;
    max-width: 65%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oferta-tipo {
    background: linear-gradient(135deg, rgba(70, 90, 120, 0.9), rgba(70, 90, 120, 1));
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(70, 90, 120, 0.3);
    letter-spacing: 0.5px;
}

.oferta-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

.oferta-details span i {
    margin-right: 5px;
    color: var(--accent-color);
}

.oferta-item p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.oferta-item .btn-secondary {
    padding: 8px 16px;
    font-size: 14px;
}

/* Estilos para el selector de estrellas flotante */
.stars-input-container {
    position: relative;
    display: inline-block;
}

.stars-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.stars-input input {
    display: none;
}

.stars-input label {
    cursor: pointer;
    font-size: 25px;
    color: #ddd;
    padding: 0 2px;
    transition: all 0.2s ease;
}

.stars-input label:hover,
.stars-input label:hover ~ label,
.stars-input input:checked ~ label {
    color: var(--rating-color);
}

.rating-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 10;
}

.rating-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.stars-input:hover + .rating-tooltip,
.stars-input input:focus ~ .rating-tooltip {
    opacity: 1;
    visibility: visible;
}

.stars-input label:hover ~ .rating-tooltip {
    opacity: 1;
    visibility: visible;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--reviews-border);
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    background-color: #FFFFFF;
    color: #333333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.form-group textarea:focus {
    border-color: var(--reviews-accent);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* Mostrar reseñas en 1 columna para mantener la simetría */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    width: 100%;
    max-width: 100%;
    margin-top: 30px;
}

/* Para pantallas medianas, mantener una columna */
@media (max-width: 992px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Para pantallas pequeñas, volver a una columna */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

.review-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    background-color: rgba(5, 10, 20, 0.9);
    border-color: var(--accent-color);
}

.review-item:hover::before {
    color: rgba(52, 152, 219, 0.08);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    border: 2px solid #fff;
    position: relative;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #757575;
    font-size: 1.5rem;
    overflow: hidden;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reviewer-avatar:hover img {
    transform: scale(1.1);
}

.reviewer-meta {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--reviews-text);
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.review-date {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

.review-rating {
    display: flex;
    gap: 5px;
    color: var(--rating-color); /* Usar el color amarillo definido para las estrellas */
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
}

.review-content {
    color: var(--reviews-text);
    line-height: 1.7;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    margin: 10px 0 15px;
    padding-left: 5px;
}

.review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--reviews-border);
    z-index: 10;
    position: relative;
}

.review-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--muted-text);
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 4px;
}

.review-action-btn:hover {
    color: var(--light-text);
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-edit-review,
.btn-delete-review {
    background: rgba(30, 30, 30, 0.7);
    border: 2px solid;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 100px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background-color: rgba(5, 10, 20, 0.5);
    border: 1px solid var(--border-color);
}

.btn-edit-review {
    color: var(--text-color);
    border-color: rgba(70, 90, 120, 0.8);
    background-color: rgba(70, 90, 120, 0.2);
}

.btn-delete-review {
    color: var(--text-color);
    border-color: rgba(70, 90, 120, 0.6);
    background-color: rgba(70, 90, 120, 0.15);
}

.btn-edit-review:hover {
    background-color: rgba(70, 90, 120, 0.4);
    color: rgba(70, 90, 120, 1);
    border-color: rgba(70, 90, 120, 1);
}

.btn-delete-review:hover {
    background-color: rgba(70, 90, 120, 0.3);
    color: rgba(70, 90, 120, 1);
    border-color: rgba(70, 90, 120, 1);
}

/* Modales para editar y eliminar reseñas */
.modal-review {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.4s ease-out;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-review-content {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 3rem;
    width: 95%;
    max-width: 600px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: slideIn 0.4s ease-out;
    transform: translate(0, 0);
    margin: auto;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

@keyframes slideIn {
    from { transform: translate(0, 30px); opacity: 0; }
    to { transform: translate(0, 0); opacity: 1; }
}

.close-modal-review {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(70, 90, 120, 0.8);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: 1px solid rgba(70, 90, 120, 0.6);
}

.close-modal-review:hover {
    color: var(--text-color);
    transform: rotate(90deg);
    background-color: rgba(70, 90, 120, 1);
    box-shadow: 0 6px 15px rgba(70, 90, 120, 0.4);
}

.modal-review h3 {
    margin-top: 0;
    color: rgba(70, 90, 120, 0.9);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    border-bottom: 2px solid rgba(70, 90, 120, 0.9);
    padding-bottom: 1rem;
    display: inline-block;
    font-weight: 700;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.btn-danger,
.btn-secondary,
.btn-primary {
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    min-width: 140px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-secondary {
    background-color: rgba(70, 90, 120, 0.8);
    color: white;
    border: 1px solid rgba(70, 90, 120, 0.9);
}

.btn-primary {
    background-color: rgba(70, 90, 120, 0.9);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(70, 90, 120, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(70, 90, 120, 0.4);
}

.btn-primary:hover {
    background-color: rgba(70, 90, 120, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(70, 90, 120, 0.4);
}

/* Sidebar */
.sidebar-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 12px;
}

.sidebar-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.admin-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.admin-buttons .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.admin-buttons .btn-secondary:nth-child(1) {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.admin-buttons .btn-secondary:nth-child(2) {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.admin-buttons .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.otras-empresas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.empresa-card {
    display: flex;
    flex-direction: column;
    background-color: rgba(40, 40, 40, 0.7);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    color: var(--text-color);
    height: 100%;
    border: 1px solid rgba(60, 60, 60, 0.8);
}

.empresa-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    background-color: rgba(50, 50, 50, 0.9);
}

.empresa-card-img {
    width: 100%;
    height: 140px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.empresa-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.empresa-card:hover .empresa-card-img img {
    transform: scale(1.1);
}

.empresa-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.empresa-card-content h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
}

.empresa-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.industria-tag {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--light-text);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mini-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #000000;
    background-color: rgba(255, 215, 0, 0.9);
    padding: 4px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mini-rating i {
    color: var(--rating-color); /* Color amarillo para las estrellas */
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Ofertas contratadas */
.oferta-item.oferta-contratada {
    opacity: 0.7;
    border: 2px solid #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.oferta-status-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary.disabled {
    background-color: #6c757d !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    pointer-events: none;
    border-color: #6c757d !important;
}

.btn-secondary.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* No content message */
.no-content {
    text-align: center;
    color: #777;
    padding: 20px 0;
}

/* Footer */
footer {
    padding: 80px 0 30px;
    background-color: var(--primary-color);
    background-image: radial-gradient(circle at top center, rgba(41, 52, 92, 0.5), rgba(0, 0, 0, 1) 70%);
    color: var(--text-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
}

.footer-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.italic {
    font-style: italic;
    font-weight: 300;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--text-color);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-cta {
    text-align: right;
}

.triunfaje {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 992px) {
    .empresa-content {
        grid-template-columns: 1fr;
    }
    
    .empresa-banner {
        height: 400px;
    }
    
    .empresa-header h1 {
        font-size: 2.2rem;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    section, .sidebar-section {
        padding: 35px 20px;
    }
    
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ofertas-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .otras-empresas {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .empresa-banner {
        height: 350px;
        margin-bottom: 30px; /* Aumentar el margen inferior en pantallas pequeñas */
    }
    
    .empresa-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 20px;
    }
    
    .empresa-meta {
        justify-content: center;
        margin-bottom: 10px; /* Añadir espacio inferior */
    }
    
    .empresa-logo {
        margin-right: 0;
        margin-bottom: 25px;
        width: 130px;
        height: 130px;
    }
    
    .empresa-header h1 {
        font-size: 2rem;
    }
    
    .empresa-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .reviews-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-columns {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-cta {
        text-align: left;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .review-form {
        padding: 2rem;
    }
    
    section, .sidebar-section {
        padding: 30px 15px;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    
    .ofertas-list {
        grid-template-columns: 1fr;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
    }
    
    .otras-empresas {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .empresa-banner {
        height: 300px;
    }
    
    .empresa-header h1 {
        font-size: 1.8rem;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .empresa-logo {
        width: 110px;
        height: 110px;
    }
    
    .rating-summary {
        padding: 8px 15px;
    }
    
    .industria {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    section, .sidebar-section {
        padding: 25px 10px;
    }
    
    .servicio-item, .oferta-item {
        padding: 20px;
    }
}

/* Estilos específicos para las nuevas tarjetas de servicios */
.servicio-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    background-color: rgba(5, 10, 20, 0.9);
    border-color: var(--accent-color);
}

.servicio-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.servicio-imagen {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.servicio-card:hover .servicio-imagen {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.servicio-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), rgba(70, 90, 120, 0.6));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 24px;
    transition: all 0.3s ease;
}

.servicio-card:hover .servicio-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 8px 20px rgba(70, 90, 120, 0.4);
}

.servicio-title {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 75px);
}

.servicio-title h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.servicio-categoria {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.servicio-descripcion {
    margin-bottom: 15px;
    flex-grow: 1;
}

.servicio-descripcion p {
    color: var(--muted-text);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.servicio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.servicio-precio {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-color);
}

.servicio-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    color: var(--rating-color);
    font-size: 12px;
}

.rating-number {
    font-size: 12px;
    color: var(--muted-text);
    margin-left: 3px;
}

.no-rating {
    font-size: 12px;
    color: var(--muted-text);
    font-style: italic;
}

.btn-ver-servicio {
    background-color: var(--accent-color);
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    width: 100%;
    margin-top: auto;
}

.btn-ver-servicio:hover {
    background-color: rgba(70, 90, 120, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(70, 90, 120, 0.3);
}

/* Responsive para servicios */
@media (max-width: 768px) {
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .servicio-header {
        gap: 10px;
    }
    
    .servicio-imagen,
    .servicio-icon {
        width: 50px;
        height: 50px;
    }
    
    .servicio-title h4 {
        font-size: 16px;
    }
    
    .servicio-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}